I have a list populated from a sqlite database with data values ranging from -1 to 1. Is there any way to set the background color for the negative items to red and the positive items to green? A similar effect could be had by adding a green up arrow to the item view for positive and a red down arrow image for negative values. Another example might be a to-do list with items color coded by a priority value. In ios this would occur in cellforrowat indexpath and on windows phone/silverlight it would be done by binding a dependency property to the data. Can this be achieved with Android?
Share
Try like this.. in getView method