Android ListView

Android RecyclerView Example

RecyclerView can be used to implement ListView, GridView and Staggered GridView. It is more powerful because it is just like a framework, you can use your preferred layout manager to layout the data in RecyclerView. And specify the scroll orientation as you like. It is highly decoupling and flexible.

Android ExpandableListView Example

android.widget.ExpandableListView is a subclass of ListView. It divides the list items into several groups, each group contains multiple list items. To display data in it, you need to create an ExpandableListAdapter, and then override it’s several methods to provide group view item an child view item.