My goal is to animate certain ListView items without having to worry about getView messing with the animations by replacing list items with newly inflated ones in the custom ArrayAdapter.
If I use convertView to avoid inflating new items the order of the animations changes randomly.
Caching the views manually works fine but I doubt that it is a good solution. Better ideas?
What I do is to set animation at convertview and then I stop animation on each convertview. This way the animation is stopped and then played if the convertview is new and continue until end if it isn’t recycled before it ends.
Edit I can’t seem to find an example so it will be partly pseudo code.
In your adapter you’ll have something like following: