Animate newly added items in ListView

后端 未结 3 1996
梦如初夏
梦如初夏 2020-12-28 08:21

How can I animate newly added items in ListView?

I have a adapter and when I add new items in my list I say adapter.notifyDataSetChan

3条回答
  •  滥情空心
    2020-12-28 09:02

    The official docs about animation in Android say that you can set an animation to trigger whenever the layout is changed, using android:animateLayoutChanges="true".

    Taken from: http://developer.android.com/training/animation/layout.html

提交回复
热议问题