I wish to be able to remove items from a listview in a way that will animate both the removed item and the items beneath it, in a similar way shown for the layoutAnimations demo in the API demos.
For example:
Here, I wish to remove item 1. The first animation will smoothly move item 1 to the right, and upon completion will smoothly animate all of the items below this item (including more items if exist) to the empty space that item 1 used.
The first animation was quite easy:
final TranslateAnimation animation = new TranslateAnimation(TranslateAnimation.RELATIVE_TO_SELF, 0.0f,
TranslateAnimation.RELATIVE_TO_SELF, 1.0f, TranslateAnimation.RELATIVE_TO_SELF, 0.0f,
TranslateAnimation.RELATIVE_TO_SELF, 0.0f);
animation.setDuration(500);
view.startAnimation(animation);
But how would I achieve the nice effect of the other items where I actually use a listView which recycles its items?
In the demo I've mentioned, they don't even use a listView. In my case it's quite problematic since I have a lot of items.
I've also noticed a similar post about this matter, but all I found about it is that you need to modify the listView code, but no real solution.
Incidentally, the minimal sdk is 9.