title: RecyclerView onclick listener fires before click animation completes
body: <p>I was playing with the new <code>RecyclerView</code>. and ran into a few issues:</p>
  
  <ol>
  <li>I noticed that it didnt support a click listener; I fixed that by adding a click listener to each list item. (<a href="https://stackoverflow.com/questions/24471109/recyclerview-onclick">RecyclerView onClick</a>)</li>
  <li>When a list item is clicked, it doesnt show lolipop's nice clicking animation; I fixed that by adding the following attribute to the listitem XML:    <code>android:background="?android:attr/selectableItemBackground"</code> (<a href="https://stackoverflow.com/questions/24958257/recyclerview-onitemclick-effect-in-l">RecyclerView onItemClick effect in L</a>)</li>
  <li><strong>My actual problem:</strong> when I click a list item in the RecyclerView, the listener is notified immediately; I don't like this, because the user is not able to see the click animation complete before the click listener goes to the next activity or something.</li>
  </ol>
  
  <p><strong>How can I make the RecyclerView behave more like the ListView when being clicked such that the user is able to see the click animation complete before the click listener is notified?</strong></p>
  
  <p>I understand that I can simply fix this, by using <code>View.postDelayed</code>, but this doesn't seem like the best solution, because during the delay, the user may be able to click on more list items.</p>
  
  <p>Below is a link to a repository of an android studio project that has a <code>ListView</code> and <code>RecyclerView</code> side by side to help demonstrate the issue: <a href="https://github.com/ericytsang/question.listview-vs-recyclerview" rel="nofollow noreferrer">https://github.com/ericytsang/question.listview-vs-recyclerview</a></p>
  
  <p>Thanks a lot!</p>