I have the following code to load an image in Picasso, using a drawable for the placeholder to display while the image is downloading. What I want though is an animated spin
Just add shape attribute in DBragion's answer as like below and it will work like charm. Happy coding.
You can use Glide too:
Glide.with(activity).load(url) .apply(RequestOptions.centerInsideTransform()) .placeholder(R.drawable.progress_animation) .into(imageview);