I am trying to implement ExpandableListView in android. But I did not find any good tutorial.
I have to draw a check box and a textview on my parent view. On child view the first item contains a checkbox an image view and the last three are text views. Can any one please help me how to extend SimpleExpandableListAdapter?
The first place to look for an example on customizing the adapter of an
ExpandableListViewis the samples application provided with the SDK that you can find at:For the question’s case(the same layout for all groups followed by two types of layouts for the children rows)below you can find an example of a custom adapter. Notice that I extended
BaseExpandableListAdapter, I’ve done this because extendingSimpleExpandableListAdaptermakes sense only for small changes(as its name suggest is designed to tackle basic usage scenarios).The full sample can be found here.