title: How to animate item in ListView when being clicked?
body: <p>I want to have one ListView that when I click on the item the view slide out to the left.</p>
  
  <p>So I have:</p>
  
  <pre><code>listView.setOnItemClickListener(new OnItemClickListener() {
          @Override
          public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1,
                  int arg2, long arg3) {
              arg1.startAnimation(openAnimation);
          }
      });
  </code></pre>
  
  <p>However, animation applied to the different item in the list instead of the one being clicked on. The behavior seems to be random as sometime it happened to more than one item at the same time. </p>
  
  <p>As I suspected this is because of the way Adapter reuse it's view to create item. I went to modify the getView method in my Adapter to inflate new view every time it's being called. Then the animation doesn't happen any more.</p>
  
  <p>Is there a way to resolve this? I tried to move the animation to inside my Adapter but then I can not associate it with other action on the Listview. </p>
  
  <p>Ultimately, I want the item to be clickable but when swipe left/right reveal delete button (iOS delete behavior). Am I on the wrong track here? This should be possible though as Android can implement swipe to remove in the Notification bar.</p>