If I am reading up about AdapterView, and want to find out which sample project(s) use this AdapterView class - how do I find this quickly?
If you are using Chrome or Chromium for a Web browser, install the Android SDK Samples Search extension. This will add a "(sample code)" link after the big bold class name at the top of each class' JavaDocs page. That link will then conduct a search on GitHub for references to that class in:
That's the easiest way that I know of to find sample code that specifically references certain classes.
Note, though, that this is a fairly simplistic search. Notably, it does not search up and down class hierarchies. So, the search will find samples that refer to AdapterView
, but not ListView
-- you would need to go to the ListView
JavaDocs page and use its sample-code link to find ListView
references.
This extension also works nicely with the Android SDK Search extension, which:
Adds an
ad
search to the "omnibox" (a.k.a., address/search bar in Chrome), soad AdapterView
would take you right to theAdapterView
documentationAdds a "(view source)" link to the JavaDocs for each class, next to the "(sample code)" link, that brings up the source code to that class