2

enter image description here

I want to create an animation like this in android. The problem is if I use anim from resources, I need to set visible my view first… and when I do that, the view at the bottom of the animated views are not sliding down like this, rather they just appears down.

Please help.

srv242
  • 105
  • 10
  • refer http://stackoverflow.com/questions/19765938/show-and-hide-a-view-with-a-slide-up-down-animation – sasikumar Nov 19 '16 at 04:27
  • if your root layout is a linear layout, you can set `android:animateLayoutChanges="true"` in it and change the visibility for the layout you want to appear, to visible in code. – Sony Nov 19 '16 at 04:30
  • http://stackoverflow.com/questions/19765938/show-and-hide-a-view-with-a-slide-up-down-animation – Quick learner Nov 19 '16 at 07:09

1 Answers1

4

You can use expandablelistview for your purpose...You can get the sample in the below link https://github.com/AAkira/ExpandableLayout

Nilabja
  • 4,206
  • 5
  • 27
  • 45
Jayamurugan
  • 542
  • 2
  • 10