A view that shows items in a vertically scrolling two-level list. This differs from the ListView by allowing two levels: groups which can individually be expanded to show its children. The items come from the ExpandableListAdapter associated with this view.
The following shows an example of how to create a custom ExpandableListView in an activity
1, Create a main.xml to provide a ListView control .