Android - what busy marker for individual rows in ListView

861 Views Asked by At

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.

3

There are 3 best solutions below

2
On BEST ANSWER

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

0
On

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.

1
On

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