title: How to change background of a textview in a custom listview for each row
body: <p>I created an application for chat between two person</p>
  
  <ul>
  <li><p>first of all i have to fetch all data from server by Jsonparser</p></li>
  <li><p>there is a custom listview each row contains "shop,painter,datetime,comment,id"</p></li>
  <li><p>if yourname is not empty means comment is yours and viseversa</p></li>
  <li><p>i want to put a bubble background for comment that indicate the painter or shop</p></li>
  </ul>
  
  <p>i dont know how to use getview when i have a custom listview with more than one textview and because my resource data that is contain all information comes from server and store it to the hashmap array... hashmap doesnt have position as it is in getview method...</p>
  
  <p>.........some code .....</p>
  
  <pre><code>// adding HashList to ArrayList
  AllCommentsList.add(map);
  
  
  
  adapter = new SimpleAdapter(getApplicationContext(),
                          AllCommentsList, R.layout.list_row_order_comments,
                          new String[] { TAG_COMMENT_ID, TAG_SHOP, TAG_PAINTER,TAG_COMMENT, TAG_DATETIME },
                          new int[] { R.id.tvIdComments, R.id.tvShopSender,R.id.tvPainterSender, R.id.tvComment,R.id.tvDateTimeComments });
                  // updating listview
                  listViewComment.setAdapter(adapter);
  </code></pre>
  
  <p>this is my code but i want to dynamically change the background of Comment textview</p>
  
  <p>how to put some code like this????</p>
  
  <pre><code>   if (strPainter.equals("null")) {
      tvComment.setBackgroundResource(R.drawable.bubble_green);
      }
     if (strShop.equals("null")) {
      tvComment.setBackgroundResource(R.drawable.bubble_yellow);
      }
  </code></pre>