Search code examples
androidlistlistviewbusy-cursor

Android - what busy marker for individual rows in ListView


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.


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