title: DropDown value selection using espresso android with dynamic element id's
body: <pre><code>PopupWindow$PopupViewContainer(@xxxxxxxx)
  --ListPopupWindow$DropDownListView(@yyyyyyyy)
    --RelativeLayout(@zzzzzzz)
      ImageView
      TextView
    --RelativeLayout(@aaaaaaaa)
      ImageView
      TextView
    --RelativeLayout(@aaaaaaaa)
      ImageView
      TextView
  </code></pre>
  
  <p>I want to know how to access the the TextView in RelativeLayout 2 using espresso android automation, as <code>@id</code> is not present and values are assigned dynamically.</p>
  
  <p>The above is the dropdown list and I want to click second choice.</p>
  
  <p>e.g like when we search item in any search box we get list populated. And I want to click the second one in the list populated. All the element id's are dynamic.</p>