title: Selecting multiple items in list using setOnItemLongClickListener
body: <p>I have a list of messages in an Android listview. I want to delete the messages from the list on press of Long Click. I have declared all the states in my list-selector but still on long press. The particular item in the list does not remain focused or selected after long press. I tried setting the view.setselected(true), which isn't working either. Am I doing something wrong?</p>
  
  <p>This is my list_selector.</p>
  
  <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item 
   android:state_selected="false"
      android:state_pressed="false" 
      android:drawable="@drawable/row_item_image" /&gt;
  &lt;item android:state_pressed="true" 
      android:drawable="@drawable/row_item_hover_image" /&gt;
  &lt;item android:state_focused="true" 
      android:drawable="@drawable/row_item_hover_image" /&gt;
  &lt;item android:state_selected="true" 
      android:drawable="@drawable/row_item_hover_image" /&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>And this is my listener interface:</p>
  
  <pre><code>listview.setOnItemLongClickListener(new OnItemLongClickListener() 
  {
  
      @Override
      public boolean onItemLongClick(AdapterView&lt;?&gt; parent, View view, int position, long arg3) {
          // TODO Auto-generated method stub
          //view.setSelected(true);
          if(view.isPressed())
          {
          view.setSelected(true);
          }
          return false;
      }
  });
  </code></pre>