how to create listview with categories/segments?

前端 未结 2 1277
情深已故
情深已故 2021-01-05 21:10

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

相关标签:
2条回答
  • 2021-01-05 21:37

    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.

    0 讨论(0)
  • 2021-01-05 21:54

    A part of the answer is there : http://developer.android.com/resources/tutorials/views/index.html

    see also there : Android listview groups

    0 讨论(0)
提交回复
热议问题