It happens to me to declare widgets by id in XML files (@+id/widget) and to forget in which XML file I have declared, especially when I have a lots of ids and XML files.
Usually I look for them in R.java where they are nice sorted. But I see nowhere the XML file where they are declared. And I have to browse through all XML files which is annoying.
On right_click-> Open Declaration, R.java is opened, at line:
public static final int widget=0x7f090012; maybe this is the normal behaviour but
I wander if is there a way to get from R.java in the XML file where I have declared the widget, like @+id/widget. Or any other quick access method.
I’m using Eclipse, downloaded with “ADT Bundle”.
Using Eclipse IDE, Hold
CTRL keyand point the mouse theidin your java code, then a list shown,-Open Deceleration in *, example:hold
ctrland point the mouse ontextView1.if you are using MAC then use
CommandinsteadCtrl