title: How to Change background color of list item in Android?
body: <p>How to change the background color onlongclick of list item in android, now iam getting the position of the list item onlongclick by using below code.</p>
  
  <pre><code> listView.setOnItemLongClickListener(new OnItemLongClickListener() {
  
       public boolean onItemLongClick(AdapterView&lt;?&gt; arg0, View arg1,
               int pos, long id) {
           // TODO Auto-generated method stub
  
           Log.v("long clicked","pos: " + pos);
  
           return true;
       }
   }); 
  </code></pre>
  
  <p>Any help will be appriciated,, thank you</p>