title: Android SimpleCursorAdapter - Adding conditional images
body: <p>So I'm using SimpleCursorAdapter to adapt data from SQLite into ListView. Lets call this database testData. One of my columns in testData records true or false with either 0 or 1. Can I make the listview display a different image for each item according to whether that row has 0 or 1?</p>
  
  <p>This is the adapter that I'm using.</p>
  
  <pre><code>ListAdapter adapter = new SimpleCursorAdapter(
  this, 
  android.R.layout.two_line_list_item,  
  mCursor,                                              
  new String[] {testData.DATE1, testData.NAME1},           
  new int[] {android.R.id.text1, android.R.id.text2}); 
  </code></pre>