title: How to initially hightlight some row items in ListView?
body: <p>I'm populating a <code>ListView</code> with the data from a SQLite database and then I use <code>SimpleAdapter</code> to display it. One of the fields of each row is a <code>String</code> which refers to a color. I want to set the background color of each row according to that <code>String</code>. How can I do that?</p>
  
  <p><strong>Edit:</strong> I added the code I'm using to attach my data to the ListView:</p>
  
  <pre><code>listView_commentaires = (ListView) findViewById(R.id.liste_favoris);
          daofavoris = new DAOFavoris(FavorisActivity.this);
          daofavoris.open();
          List&lt;Commentaire&gt; response = new ArrayList&lt;Commentaire&gt;();
          response = daofavoris.getAllFavoris();
          try {
              favoris = new ArrayList&lt;HashMap&lt;String, Object&gt;&gt;();
              for (Commentaire commentaire : response) {
                  HashMap&lt;String, Object&gt; element;
                  element = new HashMap&lt;String, Object&gt;()
                  byte[] miniature = commentaire.decodeMiniature();
                  Bitmap bitmap = BitmapFactory.decodeByteArray(miniature, 0, miniature.length);
                  element.put("BITMAP", bitmap);
                  element.put("CONTENT", commentaire.getContent());
                  element.put("AUTHOR", commentaire.getAuthor());
                  element.put("DATE", Constantes.getRealDate(commentaire.getDate()));
                  favoris.add(element);
              }
              simpleAdapter = new SimpleAdapter(FavorisActivity.this,
                      favoris, R.layout.favoris_liste, new String[] {
                              "BITMAP", "CONTENT", "AUTHOR", "DATE" },
                      new int[] { R.id.media_favoris,
                              R.id.favoris_content,
                              R.id.favoris_author,
                              R.id.favoris_timestamp });
              simpleAdapter.setViewBinder(new SimpleAdapter.ViewBinder() {
                  @Override
                  public boolean setViewValue(View view, Object data,
                          String textRepresentation) {
                      if ((view instanceof ImageView)
                              &amp; (data instanceof Bitmap)) {
                          ImageView iv = (ImageView) view;
                          Bitmap bm = (Bitmap) data;
                          iv.setImageBitmap(bm);
                          return true;
                      }
                      return false;
                  }
              });
              listView_commentaires.setAdapter(simpleAdapter);
  </code></pre>