Tag Archives: ListView

Android – Applying Alternate Row Color in ListView with SimpleAdapter

We have talked about how to make a ListView in Android Application using SimpleAdapter.

If you want to add different colors to the background of each row, you can create another adapter which extends the SimpleAdapter and overrides the getView() method. For example, create the SpecialAdapter.java as follow.
Continue reading

About these ads