title: Need to identify xpath for android element using appium
body: <p>I am testing my Android application using Appium framework.
  I have an android screen that doesn't have ids for its views (and I don't want to add...), so I thought using Xpath.</p>
  
  <p>This is how the screen looks like in <em>UI Automator Viewer</em>:
  <img src="https://i.stack.imgur.com/DXFmL.png" alt="enter image description here"></p>
  
  <p>I want to get all the relative layouts (marked in red - sixteen items) </p>
  
  <p>I tried the following:</p>
  
  <pre><code> List&lt;WebElement&gt; webElementslist =
   mAppDriver.findElementsByXPath("//android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.widget.RelativeLayout[1]/android.widget.ViewAnimator[1]/android.widget.FrameLayout[1]/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[1]/android.widget.ScrollView[1]/android.widget.LinearLayout[1]/android.widget.LinearLayout[1]/android.widget.LinearLayout[2]");
  </code></pre>
  
  <p>But I didn't get any items.</p>
  
  <p>I searched the web and found the next xpath tutorials, tried more options, but again with no success.</p>
  
  <p><a href="http://www.zvon.org/comp/r/tut-XPath_1.html#intro" rel="noreferrer">http://www.zvon.org/comp/r/tut-XPath_1.html#intro</a></p>
  
  <p><a href="http://www.w3.org/TR/xpath/" rel="noreferrer">http://www.w3.org/TR/xpath/</a></p>
  
  <p>Would appreciate any help.</p>