Sunday, May 29, 2011

[android-developers] Three-level ExpandableListView possible?

I was wondering if there is a way to make a three-level
ExpandableListView?

I successfully made a two-level ExpandableListView with the help of a
tutorial (http://developer.android.com/resources/samples/ApiDemos/src/
com/example/android/apis/view/ExpandableList1.html
)

But what I want to do is to display an object "SystemPlatform" which
contains an array of sub-objects "Game". The sub-objects "Game" also
each can contain sub-objects "Cheat". So I want to display all three
levels in an ExpandableListView. First only displaying the names of
the "SystemPlatform" objects. When clicking on a SystemPlatform the
"Game" sub-objects will be displayed. If clicked on a "Game" then the
"Cheat" objects will be expanded.
Basically I don't have a two-level list (group > children) but a three-
level list (group > child-groups > children).

Any way how I could do such a thing? Thanks a lot for help!

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment