title: Using Espresso to click view inside RecyclerView item
body: <p>How can I use Espresso to click a specific view inside a <strong>RecyclerView</strong> item? I know I can click the item at position 0 using:</p>
  
  <p><code>onView(withId(R.id.recyclerView))
  .perform(RecyclerViewActions.actionOnItemAtPosition(0, click()));</code></p>
  
  <p>But I need to click on a specific view inside that item and not on the item itself.</p>
  
  <p>Thanks in advance.</p>
  
  <p>-- edit --</p>
  
  <p>To be more precise: I have a <strong>RecyclerView</strong> (<code>R.id.recycler_view</code>) which items are <strong>CardView</strong> (<code>R.id.card_view</code>). Inside each <strong>CardView</strong> I have four buttons (amongst other things) and I want to click on a specific button (<code>R.id.bt_deliver</code>).</p>
  
  <p>I would like to use the new features of Espresso 2.0, but I'm not sure that is possible.</p>
  
  <p>If not possible, I wanna use something like this (using Thomas Keller code):</p>
  
  <pre><code>onRecyclerItemView(R.id.card_view, ???, withId(R.id.bt_deliver)).perform(click());
  </code></pre>
  
  <p>but I don't know what to put on the question marks.</p>