I am trying to animate some items in a GridView, when clicking on them.
And, as I want the new position to be kept, I need to have setFillAfter(true).
The problem is that when I am animating an object all the previous animations repeat. By setting setFillAfter(false) I solve this problem, but then I don't keep the new positions. I tried to use clearAnimation before starting a new animation but with no luck.
Here is some code sample
I add the animation by overriding the onClick function:
Do you have any ideas how to work around this problem? Maybe overriding onClick is not the good approach?