title: Change the color of an ExpandableListView item
body: <p>... by using a cursor to select individual (infinite) rows from three different columns in a sql db.<em>The first column contains the id. The second column contains the net weight and the third column contains the actual weight.</em> There are more columns in the db, but the preceding columns are the only relevant ones. </p>
  
  <p>Next I need to take the two numbers and do some simple arithmetic... (Easy, not a problem) then....</p>
  
  <p>If the row contains an actual weight that is less than 15 percent of the net weight, turn this item's expandableListView background red. If not stay green or purple or pink or whatever!</p>
  
  <h2>HERE ARE MY SPECS:</h2>
  
  <p><strong>simpleCursorTreeAdapter</strong> that is linked to a <strong>sql database</strong> and <strong>ExpandableListView.</strong></p>
  
  <h2>HERE IS WHAT I HAVE FOUND:</h2>
  
  <p>I have read several different tutorials, androiddocs, q&amp;a's and they all point to a getGroupView(). The problem with all the tutorials is this: the adapter is extended from <strong>BaseExpandableListAdapter</strong>. Unfortunately, I have been down that road, a few times. I am working with a sql lite database. </p>
  
  <p>However, I noticed that <em>SimpleCursorTreeAdapter extends BaseExpandableAdapter</em>. So, there should be a way to make this work.</p>
  
  <h2>THE PROBLEM:</h2>
  
  <p>I need to find a way to cycle through individual positions using getGroupView(). Unlike the <a href="https://stackoverflow.com/questions/5645104/android-expandablelistview/5645596#5645596">tutorial</a> that is peppered all over the net, my data is coming from a db and I am not using check boxes.</p>
  
  <p>I can use groupView to successfully turn all of the items green or red, but there is no way to do what I need with one return statement.!</p>
  
  <p>Any thoughts where I should look? I want to hold off on posting the code til I get some interest. </p>