Reputation: 28188
Where (preferably in an online-browsable source repository) is the layout defined for PreferenceActivity
? I'd like to copy the different styles for headings, etc.
I see that in android.preference.PreferenceActivity
there is a reference to com.android.internal.R.layout.preference_list_content
, but I don't see an R
directory in [android-sdk]\sources\android-15\com\android\internal
in the source downloaded via the SDK.
I assume that other Android layouts are close by in the source tree.
Upvotes: 3
Views: 1565
Reputation: 63293
Assuming you want this for the latest version of Android, the for PreferenceActivity itself can be found here. You can see from there that the layout used is R.layout.preference_list_content
, which can be found here.
If you use Chrome, this extension will help you greatly as it will apply a "View Source" link next to every class page in the developer docs.
You might also find the Github Mirror helpful if you are looking for versions from an earlier Android release. I've found the Github interface easier to track back to previous branches and tags.
Upvotes: 10