title: Espresso Android: Click on Image under sub Linear Layout
body: <p>I am using Espresso for Android Test and want to click on the imageView under the Linear Layout, the problem is that this Linear Layout do not have Unique ID</p>
  
  <p>Here is the XML:</p>
  
  <pre><code>--LinearLayout (This one have Unique ID)
        --LinearLayout1 (No ID)
               --RelativeLayout (No ID)
                    --TextView
                    --ImageView
               --RelativeLayout (No ID)
                    --TextView
                    --ImageView
        --LinearLayout2 (No ID)
               --RelativeLayout (No ID)
                    --TextView
                    --ImageView
               --RelativeLayout (No ID)
                    --TextView
                    --ImageView
        --LinearLayout3 (No ID)
               --RelativeLayout (No ID)
                    --TextView
                    --ImageView
                -RelativeLayout (No ID)
                    --TextView
                    --ImageView
  </code></pre>
  
  <p>In other words, only the top level LinearLayout have an ID but underneath it there are 3 more LinearLayout which have no ID, so it is difficult to identify this. The text and image view is dynamic. I just want to click on the first or second image.</p>