How do I set a background color for each item in a list view based on content
<p>So I've been modifying the notepad tutorial code: <a href="http://developer.android.com/resources/tutorials/notepad/notepad-ex1.html" rel="nofollow">http://developer.android.com/resources/tutorials/notepad/notepad-ex1.html</a> .  </p>

<p>Basically what I want to do is to create specific layout styles (i.e. background color) for different rows within the ListView based on the content. So for example, the text for the title is "1" so the background of that row will be red.  Or, if the text for the title is "2" then the background of that row (or list item) will be green.</p>

<p>What I'm trying to accomplish is to have a summary of the the rows in the database and color-code each row based upon what category (numerical field) the item is stored as.</p>
