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 …
This example will show you how to add a checkbox to each android listview item. It also demonstrates how to select all, deselect all, reverse select and remove selected listview items programmatically.
This article contains examples of 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 saving the modified result data back to the 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 lay out the data in RecyclerView. And specify the scroll orientation as you like. It is highly decoupling and flexible.
ListView is widely used in android applications. It is used to show a list of data in rows. And the row data is retrieved from the data adapter’s getView() method. You can read the 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 class, you can make it simpler. You just need to make your activity extends the 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.