title: How to change background color of each row in list view?
body: <p>My app contains 1 list view, data source is 1 sqlite table, when i hold long click on any row in listview it will show me 1 menu option to change the color of that row, for this i have used  onContextItemSelected function, on selecting menu option it will call 1 function change_color. What should i write in change_color function so that i can change row bg color.</p>
  
  <pre><code>    public void onCreateContextMenu(ContextMenu menu, View v,
              ContextMenuInfo menuInfo) {
          super.onCreateContextMenu(menu, v, menuInfo);
          menu.add(0, PROCESSED_ID, 0, R.string.menu_processed);
      }
  
  
  
      public boolean onContextItemSelected(MenuItem item) {
          switch (item.getItemId()) {
          case PROCESSED_ID:
              AdapterContextMenuInfo info = (AdapterContextMenuInfo) item
                      .getMenuInfo();
  
              change_color();
              return true;
          }
          return super.onContextItemSelected(item);
      }
  </code></pre>