How to location picture in gallery use appium python?

I use xpath like
self.driver.find_elements_by_xpath( '//android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.GridView/android.widget.RelativeLayout[2]/android.widget.LinearLayout[contains(@index, "1")]').click() self.driver.find_elements_by_xpath( '//android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.GridView/android.widget.RelativeLayout[3]/android.widget.LinearLayout[contains(@index, "1")]').click()

but, it can’t choose them,
somebody,please help me

Try to tap with x and y coordinates. I’m using the below code in Python:
self.driver.tap([(128.90625, 335.90625 )])

in UI Automator click on any checkbox and show it details to us.

en…i give up xpath in this place

I solve the problem using find_element_by_class_name(“android.widget.checkbox”)