title: Android Espresso: click() on a TextView
body: <p>I do have a TextView with an onClick-method defined in xml. In the app everything works fine and as expected, but I don't get it to work via Espresso.</p>
  
  <p>I try</p>
  
  <pre><code>onView(withId(R.id.my_text_view)).perform(click());
  </code></pre>
  
  <p>but the according method is never executed. How can I achieve this?</p>
  
  <p>this is my TextView:</p>
  
  <pre><code>&lt;TextView
      android:id="@+id/letter_personal_data"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_marginTop="25dp"
      android:background="@drawable/letter_border_background"
      android:focusable="true"
      android:focusableInTouchMode="true"
      android:clickable="true"
      android:onClick="showPersonalDataDialog"
      android:padding="@dimen/letter_standard_padding"
      android:text="@string/letter_personal_data"
      android:textAppearance="@style/LetterTextOrange"
      android:textStyle="bold" /&gt;
  </code></pre>
  
  <p>and this is how my test looks like:</p>
  
  <pre><code>@Test
  public void myFirstTest() {
      onView(withId(R.id.letter_personal_data)).check(matches(notNullValue()));
      onView(withId(R.id.letter_personal_data)).perform(click());
      onView(withId(R.id.personal_data_name_text)).check(matches(notNullValue()));
  }
  </code></pre>