Saturday, 16 August 2014

Android: how to Change row color based on specific condition?



I have a listview implemented whenever my application is opened up, my idea is to change each row color based on a condition, which are the following:



if condition = completed (row color is green)
if condition = in Progress (row color is blue)
if condition = pending (row color is red)


How would I implement this in my main activity class? please help!


No comments:

Post a Comment