
Define a model class to use as the data source. Using a RecyclerView has the following key steps: Onclick of the onItemClick function you can change the source of the group_indicator for that you need a uparrow button or else you can rotate the bitmap by some dregree and set it as a source for that ImageView. You have to use Adapter's getChild(groupPosition, childPosition) method to retrieve the instance of child.19-Sept-2013 How do I change the icon on expandable list view? It differs from a ListView by allowing two levels which are groups that can be easily expanded and collapsed by touching to view and their respective children items.0 How to create expandable ListView in android? How do you get a child position in Expandablelistview? 1 What is expandable list view?Īndroid ExpandableListView is a view that shows items in a vertically scrolling two-level list.
Child divider will be draw using the same height as the normal divider or set by setDividerHeight(). If you want to completely remove dividers from ExpandableListView, setDividerHeight is ok for both parent and child items.
How to remove child divider in ExpandableListView android? Are a lot of real-world examples that show how to fix the How To Remove Child Item Line In Expandablelistview issue.