Correctly animate removing row in ListView?

前端 未结 2 1304
有刺的猬
有刺的猬 2021-01-03 15:27

The problem:

(1) add a touch listener to rows in a listview so that on swipe.

(2) swipe animation plays

(3) rows get deleted in the backend, and

2条回答
  •  抹茶落季
    2021-01-03 15:45

    Chet Haase (Google Engineer) put together a really good DevBytes on this topic I'd suggest watching/taking ideas from his source. If you use NineOldAndroids, I think this'll be backwards compatible to GB.

    Check it out here:

    http://graphics-geek.blogspot.com/2013/06/devbytes-animating-listview-deletion.html

提交回复
热议问题