Android Development 
ListView & Adapter 
by Lope Emano
What is a ListView?
It displays a list of scrollable items
ListView in Google Hangouts
ListView Evolution
What is an Adapter?
An adapter acts as a bridge for our 
ListView and our underlying data
“Man in the Middle”
Let’s write our ListView
ListView Overview 
1. Declare our ListView in our layout.xml 
2. Create our Adapter class 
3. Fetch the items for our list 
4. Specify the layout that we want for our list items 
5. Plug our Adapter with our declared Listview
List View 
1. Declare our listview in our layouts.xml
List View 
2. Create our Adapter class
List View 
3. Fetch the items for our list
List View 
4. Specify the layout that we want for our list items
List View 
5. Plug our Adapter with our declared Listview
Done!
Source Code
Philippine Android Developers Community 
facebook 
Introduce yourself, ask questions 
and get updated with new tips and 
best practices in Android 
Development 
meetup 
Join our meetups and talk to 
us with complimentary pizza and 
beer!
References: 
● http://developer.android. 
com/reference/android/widget/Adapter.html 
● http://developer.android. 
com/guide/topics/ui/layout/listview.html 
● http://www.vogella. 
com/tutorials/AndroidListView/article.html

Android development - ListView & Adapter