This example will tell you how to open a popup alert dialog when user click a floating action button, and after user input user name in the dialog, it will save the user name in the list view in the main screen. If the user name exist, it will popup a message use android snackbar.
This example will show you how to add checkbox to each android listview item. It also demonstrate how to select all, disselect all, reverse select and remove selected listview items programmatically.
This article contains examples about how to operate SQLite database table data via android ListView control. It shows how to load, add, edit, delete and refresh rows in android ListView while save the modified result data back to SQLite database table.
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.
ListView is widely used in android application. It is used to show a list of data in rows. And the row data is retrieved from data adapter’s getView() method. You can read article Android ListView Example to learn how to use ListView.
android.widget.GridView is used to display multiple view components on the screen by row and column distribution. It is a subclass of AbsListView. GridView also needs Adapter to provide display data, including SimpleAdapter or BaseAdapter, and the usage is very similar to ListView.
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.
If there is only one ListView in your android activity, you can make it simpler. You just need make your activity extends android.app.ListActivity, then you can manipulate the ListView object in it. This article will show you how to create a single ListView activity.
android.widget.ListView is widely used in android mobile app. It displays all the list items in the form of a vertical list. This article will show you examples about how to create ListView and how to add item data in it.