How to create a list with categories / segments?

I want to create a listview in android with the following script

Category 1 heading

position 1 point 2 point 3

Category 2 Title

position 1 point 2

Category 3 heading 1

etc.

Can someone tell me how to do this? Any help would be appreciated.

+5
source share
2 answers

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.javain the Android SDK.

+1
source

All Articles