Does animateLayoutChanges work in a ListView?

listView is a ViewGroup and seems like a good candidate for changing animated layouts. However, it seems to ignore the flag or create a LayoutTransition manually and configure it that way. What gives? He has never documented that this very important ViewGroup does not support this very attractive animation function.

+5
source share
2 answers

I add that using the android option: animateLayoutChanges = "true" in the ListView layout does not allow you to select any ListView item; you can only do this after doing something like adding a new item and returning to the ListView. I experienced this error using the updated SimpleCursorAdapter, and the one that comes with the v4 support library

Relations FD

+1
source

Unfortunately, no, it ListViewdoes not support android:animateLayoutChanges, at least not in the way you expect. It simply animates the children that it must create ListViewwhen it cannot reuse an existing view.

0
source

All Articles