Recent Changes‎ > ‎

Go To Declaration Hyperlinks

posted Dec 14, 2010, 7:43 AM by Tor Norbye   [ updated Dec 14, 2010, 7:56 AM ]
We've just added hyperlink detectors for Java and XML that allow you to jump to the Android declarations of various resources. For example:
  • In your Java code, if you see a symbol like, you can click on this to jump right to the layout definition of the view which defines id button1 (@+id/button1).
  • In the R file, you can jump right from "public static final int Button01=0x7f050000" to the corresponding button definition
  • In your Manifest file, you can jump from an activity definition (or service definition), such as <activity android:name=".TestActivity", right into the corresponding Java class
  • You can jump to any value definition (e.g. @string:foo), regardless of which XML file "foo" is defined in
  • In addition to values you can also jump to all the file-based declarations (e.g. @layout/bar)
  • You can jump to non-XML resources as well, such as @drawable/icon. This will launch whatever Eclipse opening mechanism exists for the given file type, in this case an image.
  • You can jump into @android namespace resources. This will open the resources found in the SDK install area.
  • From XML layouts, you can jump to custom view classes (e.g. <></> ), or  <view class=""