Alternative for using find by xpath

For the below example we are using the find by xpath mathod.
As can see the xpath is very long.
Can someone suggest a more graceful approach for finding this element?

Find parent element by ID and then find inside element by image classname.

Can you give a code sample?

Till now we were using the find by ID/Xpath/Name very simply but it seems that in some cases it is not enough,
Is there site/guide how to handle the elements?

if you have 1 image element:

((AppiumDriver) driver).findElement(MobileBy.id(“your_id”)).findElement(MobileBy.className(“android.widget.imageview”))

if many e.g. third:

((AppiumDriver) driver).findElement(MobileBy.id(“your_id”)).findElements(MobileBy.className(“android.widget.imageview”)).get(2)

1 Like

thanks Aleksei, I do not think there is any alternative other than Aleksei, If there is any then please update us.