Android: Animating changes to GridView content

前端 未结 4 1807
傲寒
傲寒 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:50

    Chet Haase came out with a nice video on how to handle ListView animations properly. The basic concept can be applied to GridViews. You can find the video here.

    If you're developing for API 1.0+, you won't be able to use the referenced animation features that the video mentions (such as ViewPropertyAnimator) unless you use NineOldAndroids.

提交回复
热议问题