Hi, This is because ListView caches its children in Bitmaps during a scroll to get better performance. You can try turning off the caching (see the documentation for XML attributes in ViewGroup and AbsListView).
On Mon, Apr 7, 2008 at 7:05 AM, wonderoid <[EMAIL PROTECTED]> wrote: > > I have some custom animated icons in a listview. These items are > animated by calling invalidate() on their onDraw() method (Just assume > a simple animation, like setting a different background color on every > draw). Now when i scroll the listview using keys all is fine; however > when i scroll it with the mouse; icons stop animating and not even > explicitly calling invalidate on them starts the animation again. Any > ideas? ( I heard listview will be improved in a more touch-friendly > way, but if anyone can show a dirty&quick fix i'd appreciate that.) > > > -- Romain Guy www.curious-creature.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---