There must be a very easy solution to my question, which i am unable to figure out. UIAutomatorViewer gives information of object, which can be used for Appium.
Following is the example for Appium:
xpath("//android.widget.Button[contains(@resource-id,'digit5')]")
I am using Selendroid, what will be the equivalent format for it to use xpath?