Javatpoint Logo
Javatpoint Logo

Android Custom ListView (Adding Images, sub-title)

After creating simple ListView, android also provides facilities to customize our ListView.

As the simple ListView, custom ListView also uses Adapter classes which added the content from data source (such as string array, array, database etc). Adapter bridges data between an AdapterViews and other Views

Example of Custom ListView

In this custom listview example, we are adding image, text with title and its sub-title.

Structure of custom listview project

android Custom Listview 1


Create an activity_main.xml file in layout folder.

File: activity_main.xml

Create an additional mylist.xml file in layout folder which contains view components displayed in listview.


File: mylist.xml

Place the all required images in drawable folder.

Activity class


Customize Our ListView

Create another java class which extends ArrayAdapter class. This class customizes our listview.


android Custom Listview 2
android Custom Listview 3

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA