Expandable ListView Example

This tutorial shows how to display a HashMap with String and ArrayList<String> as key value pairs, in an ExpandableListView. Step 1: Create a new project with name ExpandableListView and package name com.myexample.listview. Select File/New/New Project. Fill the forms and click “Finish” button. Step 2: Open res/layout/xml (or) main.xml and add following code. Here we add an … Read more