This example will tell you how to open a popup alert dialog when the user clicks a floating action button, and after the user inputs the user name in the dialog, it will save the user name in the list view on the main screen. If the user name exists, it will popup a message …
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 lay out the data in RecyclerView. And specify the scroll orientation as you like. It is highly decoupling and flexible.
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.