Native Preference Controls in Android

Android includes several preference controls to build your Preference Screens:

CheckBoxPreference — A standard preference check box control used to set preferences to true or false.

EditTextPreference — Allows users to enter a string value as a preference. Selecting the preference text at run time will display a text-entry dialog

ListPreference — The preference equivalent of a spinner. Selecting this preference will display a dialog box containing a list of values from which to select. You can specify different arrays to contain the display text and selection values.

MultiSelectListPreference — Introduced in Android 3.0 (API level 11), this is the preference equivalent of a check box list.

RingtonePreference — A specialized List Preference that presents the list of available ringtones for user selection. This is particularly useful when you’re constructing a screen to configure notification settings.

Leave a Comment