0

I need to animate a ListView item by Y axis from 100% to 0% in 3 sec. This animation should indicate that item was deleted. While the animation item content should be changed to undelete note. I can apply my animation to list item content and it is works great, but item itself keeps its height. Any suggestions? Found this, but it seems useless.

Community
  • 1
  • 1
Konstantin Konopko
  • 5,229
  • 4
  • 36
  • 62
  • 2
    have you considered ditching listview altogether for RecyclerView? It's designed to make this type of thing possible and elegant. – Sam Dozor Oct 20 '14 at 21:18
  • if its feasible, you can notifydataset listener after the animation so that the deleted row is 100% gone. – Jimmy Oct 20 '14 at 21:20
  • @SamDozor see my upd: i need some time to show undelete warning – Konstantin Konopko Oct 20 '14 at 21:32
  • check out this tutorial about custom ListView with animations , i hope it helps you http://www.tutozone.info/2014/10/tutoriel-animations-listview-sous.html – Zied R. Oct 21 '14 at 07:26

1 Answers1

0

i dont know which animation u are using,
but maybe u can use animation listener.
when animation-end callback called, delete item from array if undlete flag is not set, then notifyDatasetChanged()

ytRino
  • 1,450
  • 15
  • 28