You can find the ID of an element using android uiautomatorviewer.
just go to your SDK tools folder D:\Android\android-sdk\tools, here you can find uiautomatorviewer.
Open it and take screen shots of your activity and find the id, class, package of any element.