Reputation: 29
I am working on an app and I want to display an image beside text in a Listview
.
My list view is populate by an array adapter and the icon placed beside the text will be the same for every item. I've read around and I have found that I should use a custom adapter and I am new to the android so can anyone give me reference or help me out?
Upvotes: 1
Views: 590
Reputation: 2172
I think this is exactly what you are looking for. http://www.javacodegeeks.com/2012/10/android-listview-example-with-image-and.html
General steps.
getCount()
where you need to return the size of the list of items.getView()
method.Hope this helps!
Upvotes: 1