Home | History | Annotate | Download | only in preference

Lines Matching refs:Preference

17 package android.preference;
34 * Shows a hierarchy of {@link Preference} objects as
38 * preference hierarchy in this fragment will use, call
47 * A {@link PreferenceScreen} object should be at the top of the preference
50 * {@link PreferenceScreen} should be shown on another screen. The preference
51 * framework handles showing these other screens from the preference hierarchy.
53 * The preference hierarchy can be formed in multiple ways:
61 * to actual {@link Preference} subclasses. As mentioned above, subsequent
68 * resource. These XML resources will be inflated into a single preference
75 * preference in the current hierarchy, see
76 * {@link #onPreferenceTreeClick(PreferenceScreen, Preference)}.
88 * <p>The following sample code shows a simple preference fragment that is
97 * {@sample development/samples/ApiDemos/src/com/example/android/apis/preference/FragmentPreferences.java
100 * @see Preference
114 * The starting request code given out to preference framework.
139 * implement to be able to process preference items that wish to
144 * Called when the user has clicked on a Preference that has
149 boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref);
242 * Sets the root of the preference hierarchy that this fragment is showing.
244 * @param preferenceScreen The root {@link PreferenceScreen} of the preference hierarchy.
256 * Gets the root of the preference hierarchy that this fragment is showing.
258 * @return The {@link PreferenceScreen} that is the root of the preference
277 * Inflates the given XML resource and adds the preference hierarchy to the current
278 * preference hierarchy.
293 Preference preference) {
294 if (preference.getFragment() != null &&
297 this, preference);
303 * Finds a {@link Preference} based on its key.
305 * @param key The key of the preference to retrieve.
306 * @return The {@link Preference} with the key, or null.
309 public Preference findPreference(CharSequence key) {
369 if (selectedItem instanceof Preference) {
371 return ((Preference)selectedItem).onKey(