0

Android: Animating changes to GridView content

view story
linux-howto

http://stackoverflow.com – I have a GridView of layouts which can be dynamically added or removed to the grid. In iOS, the native behavior for GridView items is for the other items in the grid to slide into the place of the removed item, or slide to make room when a new item is added. However on Android the behavior is just for the changes to instantly pop in on the screen. I tried adding custom animations to each getView() call using some tricks in the GridView's adapter, but that ended up causing some problems seen here: Android GridView loading the 0 indexed item in a later index's slot when data set changes (HowTos)