I have the following code in Eclipse
View view = inflater.inflate(R.layout.somelayoutfile, parent, false);
I want to perform some action, like CTRL+Click on "R.layout.somelayoutfile" and it jump to that xml file. Instead it takes me to "R.java."
According to this the Android Documentation this should be supported, but it doesn't work. Does anyone know why, and/or how to enable this feature?
The most efficient way.
Eclipse settings - Hyperlinking
- Open Declaration
- uncheck.
CMD+Click will start to navigate you directly to XML instead of R class.
You'll still be able to use the Open Declaration
by pressing F3.
If you hold Ctrl with the pointer over the resource name (somelayoutfile in your example) then a menu should appear, with two options:
That isn't working for you? Or you want the default (direct click on the resource name) to be the second option?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With