Reputation: 77984
i want to create listview in android with following scenario
Heading Category 1
item 1 item 2 item 3
Heading Category 2
item 1 item 2
Heading Category 3 item 1
and so on.
any one guide me how to achieve this? any help would be appreciated.
Upvotes: 5
Views: 7772
Reputation: 579
I believe android.app.ExpandableListActivity is what you are looking for. Check out this sample: samples/android-9/ApiDemos/src/com/example/android/apis/view/ExpandableList3.java
in your Android SDK.
Upvotes: 1
Reputation: 3727
A part of the answer is there : http://developer.android.com/resources/tutorials/views/index.html
see also there : Android listview groups
Upvotes: 1