15 49.0138 8.38624 1 0 4000 1 http://codeisall.com 300
android listview

Android List View

Using Android ListView we can arrange components in a vertically scrollable list. The list items are automatically inserted to the list using an Adapter that pulls content from a source such as an array or database query and converts each item result into a view that’s placed on the list.

Attributes

android:id

Unique ID


android:divider

It separates the items.


android:entries

Defines the reference to an array that will fill the ListView.

Android ListView Example

strings.xml

 

activity_main.xml

 

Output

listview

Share:
PREVIOUS POST
Android Manifest File
NEXT POST
Android Overview