Lines Matching refs:Preference
17 package android.preference;
63 * this class only allowed the display of a single set of preference; this
98 * <p>The following sample code shows a simple preference activity that
100 * of the activity itself as well as its two preference fragments is:</p>
102 * {@sample development/samples/ApiDemos/src/com/example/android/apis/preference/PreferenceWithHeaders.java
115 * <p>Note that this XML resource contains a preference screen holding another
172 // extras that allow any preference activity to be launched as part of a wizard
200 // --- State for old mode when showing a single preference list
211 * The starting request code given out to preference framework.
383 * Intent to launch when the preference is selected.
553 // the currently selected preference fragment.
670 * and a preference fragment.
692 * to show a particular preference activity.
772 if (!"preference-headers".equals(nodeName)) {
774 "XML document must start with <preference-headers> tag; found"
1047 * preference fragment. When launched in this mode, the header list
1048 * will be hidden and the given preference fragment will be instantiated
1153 * preference fragment.
1165 * preference fragment.
1250 * Start a new fragment containing a preference panel. If the prefences
1263 * preference panel is done. The launched panel must use
1291 * Called by a preference panel fragment to finish itself.
1316 public boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref) {
1325 * Binding late is preferred as any custom preference types created in
1367 * Sets the root of the preference hierarchy that this activity is showing.
1369 * @param preferenceScreen The root {@link PreferenceScreen} of the preference hierarchy.
1389 * Gets the root of the preference hierarchy that this activity is showing.
1391 * @return The {@link PreferenceScreen} that is the root of the preference
1421 * Inflates the given XML resource and adds the preference hierarchy to the current
1422 * preference hierarchy.
1444 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
1449 * Finds a {@link Preference} based on its key.
1451 * @param key The key of the preference to retrieve.
1452 * @return The {@link Preference} with the key, or null.
1459 public Preference findPreference(CharSequence key) {