Unable to Inspect Element , as two elements are having same locator value?

Hi guys,
As i am new to appium please me out,Unable to click on search icon as one other element having same locator value,I tried with absolute xpath also but its not working.Screenshot attached below.,


I Use the Below Code , Please correct me if the code is not correct .

With absolute xpath
driver.findElementByXPath("//android.view.FrameLayout[0]/android.view.ViewGroup[2]").click();

With xpath
driver.findElementByXPath("//android.view.ViewGroup[@index=‘3’]").click();