Pages

Friday 3 February 2012

How to change color of alternative row in listview in android?

Hope this will help you...:-)
if(postion%2==0)
            {
                convertView.setBackgroundColor(Color.parseColor("#A9BCF5"));
            }else
            {
                convertView.setBackgroundColor(Color.parseColor("#ffffff"));
            }

Thanks
V.k.Hooda

No comments:

Post a Comment