Skip to content

Commit cdd0c59

Browse files
committed
docs: add links to new Settings dev guide
Change-Id: I04444ec0c4c1c278569b64f15cbbc7e8c1c623cd
1 parent 0334538 commit cdd0c59

File tree

6 files changed

+42
-0
lines changed

6 files changed

+42
-0
lines changed

core/java/android/preference/Preference.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@
5555
* {@link SharedPreferences}. It is up to the subclass to decide how to store
5656
* the value.
5757
*
58+
* <div class="special reference">
59+
* <h3>Developer Guides</h3>
60+
* <p>For information about building a settings UI with Preferences,
61+
* read the <a href="{@docRoot}guide/topics/ui/settings.html">Settings</a>
62+
* guide.</p>
63+
* </div>
64+
*
5865
* @attr ref android.R.styleable#Preference_icon
5966
* @attr ref android.R.styleable#Preference_key
6067
* @attr ref android.R.styleable#Preference_title

core/java/android/preference/PreferenceActivity.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@
8484
* items. Doing this implicitly switches the class into its new "headers
8585
* + fragments" mode rather than the old style of just showing a single
8686
* preferences list.
87+
*
88+
* <div class="special reference">
89+
* <h3>Developer Guides</h3>
90+
* <p>For information about using {@code PreferenceActivity},
91+
* read the <a href="{@docRoot}guide/topics/ui/settings.html">Settings</a>
92+
* guide.</p>
93+
* </div>
8794
*
8895
* <a name="SampleCode"></a>
8996
* <h3>Sample Code</h3>

core/java/android/preference/PreferenceCategory.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424
/**
2525
* Used to group {@link Preference} objects
2626
* and provide a disabled title above the group.
27+
*
28+
* <div class="special reference">
29+
* <h3>Developer Guides</h3>
30+
* <p>For information about building a settings UI with Preferences,
31+
* read the <a href="{@docRoot}guide/topics/ui/settings.html">Settings</a>
32+
* guide.</p>
33+
* </div>
2734
*/
2835
public class PreferenceCategory extends PreferenceGroup {
2936
private static final String TAG = "PreferenceCategory";

core/java/android/preference/PreferenceFragment.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@
7474
* As a convenience, this fragment implements a click listener for any
7575
* preference in the current hierarchy, see
7676
* {@link #onPreferenceTreeClick(PreferenceScreen, Preference)}.
77+
*
78+
* <div class="special reference">
79+
* <h3>Developer Guides</h3>
80+
* <p>For information about using {@code PreferenceFragment},
81+
* read the <a href="{@docRoot}guide/topics/ui/settings.html">Settings</a>
82+
* guide.</p>
83+
* </div>
7784
*
7885
* <a name="SampleCode"></a>
7986
* <h3>Sample Code</h3>

core/java/android/preference/PreferenceGroup.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@
3333
* {@link Preference} objects. It is a base class for Preference objects that are
3434
* parents, such as {@link PreferenceCategory} and {@link PreferenceScreen}.
3535
*
36+
* <div class="special reference">
37+
* <h3>Developer Guides</h3>
38+
* <p>For information about building a settings UI with Preferences,
39+
* read the <a href="{@docRoot}guide/topics/ui/settings.html">Settings</a>
40+
* guide.</p>
41+
* </div>
42+
*
3643
* @attr ref android.R.styleable#PreferenceGroup_orderingFromXml
3744
*/
3845
public abstract class PreferenceGroup extends Preference implements GenericInflater.Parent<Preference> {

core/java/android/preference/PreferenceScreen.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@
7575
* clicked will show another screen of preferences such as "Prefer WiFi" (and
7676
* the other preferences that are children of the "second_preferencescreen" tag).
7777
*
78+
* <div class="special reference">
79+
* <h3>Developer Guides</h3>
80+
* <p>For information about building a settings UI with Preferences,
81+
* read the <a href="{@docRoot}guide/topics/ui/settings.html">Settings</a>
82+
* guide.</p>
83+
* </div>
84+
*
7885
* @see PreferenceCategory
7986
*/
8087
public final class PreferenceScreen extends PreferenceGroup implements AdapterView.OnItemClickListener,

0 commit comments

Comments
 (0)