5

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.

UMAR-MOBITSOLUTIONS
  • 77,236
  • 95
  • 209
  • 278

2 Answers2

1

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

see also there : Android listview groups

Community
  • 1
  • 1
ykatchou
  • 3,667
  • 1
  • 22
  • 27
1

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.

Ozone
  • 579
  • 2
  • 5