Android Listview Custom Row Layout
I need to set a background color and icon image for each item/row in the list view. ArrayAdapter set a single layout to all the items to be added to the list and I tried to catch e
Solution 1:
You need to use "BaseAdapter" for this task, check the link blow, and customize the example according to your need.
http://www.androidhive.info/2012/02/android-custom-listview-with-image-and-text/
you can also check this
http://www.vogella.com/articles/AndroidListView/article.html
Solution 2:
You'll need to define your own custom adapter (look here for info on that) and then you'll be able to do custom layouts for individual list view items
Post a Comment for "Android Listview Custom Row Layout"