Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What does expandable listview do in android app?


Asked by Nalani Schmitt on Nov 29, 2021 Android



In Android application, if you want to show items in a list with expandable feature. The ExpandableListView is a option that show items in a vertically scrolling two level list. It is different from the listview by allowing two level groups which can individually be expanded to show its children.
Subsequently,
Android ExpandableListView. Android ExpandableListView is a view that shows items in a vertically scrolling two-level list. 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. ExpandableListViewAdapter in android loads...
Also, Android and the ListView widget 2.1. Views for handling lists Android provides the ListView and the ExpandableListView classes which are capable of displaying a scrollable list of items.
Also Know,
It is generally orange or Sky blue color mostly but you can also define your own custom color or an image as a list selector as per your design. Below selector color is green, when you select any list item then that item’s background color is green.
And,
Important Note: You cannot use the value wrap_content for the height attribute of a ExpandableListView in XML if the parent’s size is not strictly specified. In other words we mean if the parent were ScrollView then you could not specify wrap_content since it can be of any length.