Android: Animating changes to GridView content

前端 未结 4 1809
傲寒
傲寒 2021-02-01 02:28

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

4条回答
  •  难免孤独
    2021-02-01 02:44

    After you have made any changes to the GridView like .remove() you have to call mGrid.startLayoutAnimation();

    The GridView won't do it automatically for you. You have to trigger it manually ;-)

提交回复
热议问题