0

I would like to build a list like image.

1.

2.

3.

4.

when click on item "1" i would like appear like this (two lists).

1 1.1

2 1.2

3

4

when click on item "2" i would like appear like this (two lists).

1 2.1

2 2.2

3 2.3

4

when click on item "3" i would like appear like this (two lists).

1 3.1

2 3.2

3 3.3

4

and so.

I need help, someone has a suggestion.

G M Ramesh
  • 3,420
  • 9
  • 37
  • 53
  • can't understand...explain more...When item 1 is clicked 2 1.2 appear...When item 2 clicked 3 2.3 appear...then why not 4 3.4 appear on item 3 click...??? – Priyank Patel Sep 28 '12 at 10:40

2 Answers2

1

check the following link, it may help u...

http://android-adda.blogspot.in/2011/06/custom-expandable-listview.html

G M Ramesh
  • 3,420
  • 9
  • 37
  • 53
0

you can create two Listview and put them side by side. 1st list will contains 1,2,3,4...n and when you click on any number for e.g. you clicked on 2 then 2.1,2.2,2.3....2.n will appear on 2nd list.

This might help you to understand how ListView is working in Android http://www.vogella.com/articles/AndroidListView/article.html

kaushal
  • 33
  • 5