title: Animate the removal of a ListView item
body: <p>I'm attempting to animate the removal of a ListView item using this:</p>
  
  <pre><code>    mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
          @Override
          public void onItemClick(AdapterView&lt;?&gt; adapterView, final View view, final int i, long l) {
              view.animate().setDuration(500).x(-view.getWidth()).alpha(0f);
              adapter.remove(tasks.get(i));
              adapter.notifyDataSetChanged();
          }
      });
  </code></pre>
  
  <p>It does not work. I basically followed the advice of the 4th answer from the top of this post: </p>
  
  <p><a href="https://stackoverflow.com/questions/3928193/how-to-animate-addition-or-removal-of-android-listview-rows">How to Animate Addition or Removal of Android ListView Rows</a></p>
  
  <p>However, there's some funny drawing stuff going on, or recycling, or something because while the animation occurs, the item below the one that slides off screen also gets deleted for some reason. The answer that the question asker eventually marked as correct is unfortunately an RTFM towards the whole of Android's source. I've looked through there, and I can't find the notifications pull-down in JellyBean which I'm trying to emulate.</p>
  
  <p>TIA.
  John</p>