I have an android listView
with an image in each item. It takes a while till the image is loaded. How can I add a "loading" animation every time the image is loaded?
Should I use a .gif? Or create my own animation and stop it on onPostExecute()
?
How can I do this if I use "picasso" because there all the async task is black box to the developer and I cannot stop any animation?
Use following code:
MainActivity.java
list_row.xml
ListAdapter.java
Don't forget to add import for Picasso Callback
You can use this library. It work and you can custom your wheels ! :) https://github.com/Todd-Davies/ProgressWheel
I have added this in my xml
I can stop it on PostExecute() but I'm not sure how to make Picasso stop it itself.