Hi Liran
The XPath will be in the form of
//android.widget.FrameLayout//android.widget.RelativeLayout//android.view.View
To break it down
1. // - All children and descendants of the root element
2. android.widget.FrameLayout - class name is - android.widget.FrameLayout
3. / - Only first hand children (just one level)
for more info
https://www.w3schools.com/xml/xpath_syntax.asp
And if you want to iterate on the elements from the tool
List<AndroidElement> webElementList = driver.findElements(By.xpath("//android.widget.FrameLayout//android.widget.RelativeLayout//android.view.View"));
webElementList.forEach(webElement -> System.out.println(webElement.getText()));