0

I am struggling to Android layout animation. The image below tells what I want to do:

There are 3 rows in a layout. Row1 is is at the top, row2 and row3 at the bottom of the layout.

When user clicks row1, row2 will move to the position below row1.

enter image description here

(1) Should I do it with AbsoluteLayout(Which contains the rows) with translation animation?

(2) Is it any other better way? It is not easy to handle the child layout in AbsoluteLayout.

mobile app Beginner
  • 1,651
  • 3
  • 26
  • 40
  • `AbsoluteLayout` is deprecated and do not use it. What kind of views are your rows? – Rajesh May 19 '12 at 03:24
  • The rows are LinearLayout. How can I do without AbsoluteLayout? – mobile app Beginner May 19 '12 at 03:28
  • You can use `RelativeLayout` or `LinearLayout`. You can take a look at [Android Simple Accordion or Collapse Panel](http://android-puremvc-ormlite.blogspot.in/2011/07/android-simple-accordion-panel.html) or this question on SO: [Android - accordion widget](http://stackoverflow.com/q/1161999/1321873) which are close to your requirement – Rajesh May 19 '12 at 03:37
  • Thanks Rajesh, it is a big hints – mobile app Beginner May 19 '12 at 03:52

0 Answers0