(1) just hold down the ctrl key and move the mouse over R.id.xxx. Eclipse will display this option as
open Declaration
open Declaration in Layout/abc.xml
(2) By clicking on the open declaration in the layout /abc.xml, it will lead to the layout file. If you choose an open declaration, it will be sent to part of the declaration in R.java
Hope this helps you.
source
share