Question

I have android application with ListView, where each row has own "refresh" button. Refreshing content is based on asynchronous http call, so until it completes (or timeout) I'd like to display some kind of graphical "busy" marker in each affected (clicked) row. What is best practice to do it? I see animated gifs - i.e. ones with rotating circle - does not animate on Android. So far I tried RotateAnimation on static image, it looks OK but it's not what people are accustomed to.

Is there any better way to mark individual row in ListView as being updated? Target SDK is so far 1.5.

Was it helpful?

Solution

you can do animated gifs

  • Movie.decodeStream if your firmware version supports it

  • or use a Frame Animation as in an <animation-list> on a few images from the image set

OTHER TIPS

I'd just stick with what you have: a RotateAnimation.

How about something simple like "Updating..." Android 1.5 [Settings] [Applications] [Manage Applications] uses this for "Computing..." memory while it builds the list of applications.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top