Search code examples
androidlistexpandable

How do i create a simple expandable list in android


i want to make an expandable list in android ( with only one group ) that has item1, sub-item1, seperator, item2, sub-item2, sperator and so on..., where item1 and item2's values are taken from an array of numbers and sub-item1 and sub-item2's values are taken from an array of strings. I did attempt to find out but im pretty new and dont understand most of it(yet):D.

Thanks in advance.


Solution

  • You can use http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList1.html link for expandable list.

    All The Best