Example usage for Java android.preference PreferenceScreen fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | addPreference(Preference preference) Adds a Preference at the correct position based on the preference's order. |
void | bind(ListView listView) Binds a ListView to the preferences contained in this PreferenceScreen via #getRootAdapter() . |
Preference | findPreference(CharSequence key) Finds a Preference based on its key. |
Context | getContext() Returns the android.content.Context of this Preference. |
Dialog | getDialog() Used to get a handle to the dialog. |
Preference | getPreference(int index) Returns the Preference at a particular index. |
int | getPreferenceCount() Returns the number of children Preference s. |
PreferenceManager | getPreferenceManager() Gets the PreferenceManager that manages this Preference object's tree. |
ListAdapter | getRootAdapter() Returns an adapter that can be attached to a PreferenceActivity or PreferenceFragment to show the preferences contained in this PreferenceScreen . |
SharedPreferences | getSharedPreferences() Returns the SharedPreferences where this Preference can read its value(s). |
CharSequence | getSummary() Returns the summary of this Preference. |
CharSequence | getTitle() Returns the title of this Preference. |
void | onItemClick(AdapterView parent, View view, int position, long id) |
void | removeAll() Removes all Preference Preferences from this group. |
boolean | removePreference(Preference preference) Removes a Preference from this group. |
void | restoreHierarchyState(Bundle container) Restore this Preference hierarchy's previously saved state from the given container. |
void | saveHierarchyState(Bundle container) Store this Preference hierarchy's frozen state into the given container. |
void | setEnabled(boolean enabled) Sets whether this Preference is enabled. |
void | setKey(String key) Sets the key for this Preference, which is used as a key to the SharedPreferences or PreferenceDataStore . |
void | setOnPreferenceClickListener(OnPreferenceClickListener onPreferenceClickListener) Sets the callback to be invoked when this Preference is clicked. |
void | setOrder(int order) Sets the order of this Preference with respect to other Preference objects on the same level. |
void | setPersistent(boolean persistent) Sets whether this Preference is persistent. |
void | setSummary(CharSequence summary) Sets the summary for this Preference with a CharSequence. |
void | setTitle(CharSequence title) Sets the title for this Preference with a CharSequence. |