Android ListView
ListView:
ListView is a view group which display list of items to scroll horizontally also.
It is a UI control that is used to display the collection of the views arranged vertically and where each view corresponds to the list item.
The items in the list are usually loaded on the fly, often from an adapter which has the responsibility of populating the data to the list item view and it also handles the view reusing.
Example:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ListViewExample"
android:orientation="vertical">
<ListView
android:id="@+id/listview"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
Output