Android Custom Listview tutorial helps you to learn how to set data to ListView using adapter class.

Here, i will use a getview interface and will set data to the listview, using setter and getter’s.Here in this tutorial i will be showing android operating system (OS) name & category as fields in listview. Given user a functionality to add these fields dynamically, and also explaining how a custom listview functionality works out.

So, this is a little intro regarding the topic let us get into further details.



First of all we will be seeing Getter and Setter Class, by using this we are fetting data from user and setting to our listview.

I have made an easy to understand interface where user will enter data and this data will be saved into Array List and this array list will be shown in Listview using a adapter i.e., our Custom ListView adapter.

Here, we are getting data form user and setting it to array list as below.After setting data listview will be updated with data.


Now we will be fetching data from array list using getter, Here versionList is array form which data is fetched

And setting it to textview as

Creating Getter and Setter


Creating File


No we will create a Custom Listview adapter class where we will append this data into a list view


Creating a ListAdapter


Creating activity_main.xml


Adding two edittext’s for user input and listview to show data



Now designing listview row.


Share article on

Show Buttons
Hide Buttons

June 25, 2017

Attention Required! | Cloudflare

One more step

Please complete the security check to access

Why do I have to complete a CAPTCHA?


Completing the CAPTCHA proves you are a human and gives you temporary access to the web property.

What can I do to prevent this in the future?

If you are on a personal connection, like at home, you can run an anti-virus scan on your device to make sure it is not infected with malware.

If you are at an office or shared network, you can ask the network administrator to run a scan across the network looking for misconfigured or infected devices.

Clear all
Read previous post:
Android Tutorial on Date Picker