public
static
final
class
R.styleable
extends Object
java.lang.Object | |
↳ | android.support.v7.preference.R.styleable |
Fields | |||||||
---|---|---|---|---|---|---|---|
public
static
final
int[] |
BackgroundStyle
Used to access some android attrs Includes the following attributes:
|
||||||
public
static
int |
BackgroundStyle_android_selectableItemBackground
This symbol is the offset where the |
||||||
public
static
int |
BackgroundStyle_selectableItemBackground
Need a non-android: attr here so that gradle doesn't remove it May be a reference to another resource, in the form
" |
||||||
public
static
final
int[] |
CheckBoxPreference
Base attributes available to CheckBoxPreference. |
||||||
public
static
int |
CheckBoxPreference_android_disableDependentsState
This symbol is the offset where the |
||||||
public
static
int |
CheckBoxPreference_android_summaryOff
This symbol is the offset where the |
||||||
public
static
int |
CheckBoxPreference_android_summaryOn
This symbol is the offset where the |
||||||
public
static
int |
CheckBoxPreference_disableDependentsState
The state (true for on, or false for off) that causes dependents to be disabled. |
||||||
public
static
int |
CheckBoxPreference_summaryOff
The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is unchecked. |
||||||
public
static
int |
CheckBoxPreference_summaryOn
The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is checked. |
||||||
public
static
final
int[] |
DialogPreference
Base attributes available to DialogPreference. |
||||||
public
static
int |
DialogPreference_android_dialogIcon
This symbol is the offset where the |
||||||
public
static
int |
DialogPreference_android_dialogLayout
This symbol is the offset where the |
||||||
public
static
int |
DialogPreference_android_dialogMessage
This symbol is the offset where the |
||||||
public
static
int |
DialogPreference_android_dialogTitle
This symbol is the offset where the |
||||||
public
static
int |
DialogPreference_android_negativeButtonText
This symbol is the offset where the |
||||||
public
static
int |
DialogPreference_android_positiveButtonText
This symbol is the offset where the |
||||||
public
static
int |
DialogPreference_dialogIcon
The icon for the dialog. |
||||||
public
static
int |
DialogPreference_dialogLayout
A layout to be used as the content View for the dialog. |
||||||
public
static
int |
DialogPreference_dialogMessage
The message in the dialog. |
||||||
public
static
int |
DialogPreference_dialogTitle
The title in the dialog. |
||||||
public
static
int |
DialogPreference_negativeButtonText
The negative button text for the dialog. |
||||||
public
static
int |
DialogPreference_positiveButtonText
The positive button text for the dialog. |
||||||
public
static
final
int[] |
ListPreference
Base attributes available to ListPreference. |
||||||
public
static
int |
ListPreference_android_entries
This symbol is the offset where the |
||||||
public
static
int |
ListPreference_android_entryValues
This symbol is the offset where the |
||||||
public
static
int |
ListPreference_entries
The human-readable array to present as a list. |
||||||
public
static
int |
ListPreference_entryValues
The array to find the value to save for a preference when an entry from entries is selected. |
||||||
public
static
final
int[] |
MultiSelectListPreference
Attributes that can be used with a MultiSelectListPreference. |
||||||
public
static
int |
MultiSelectListPreference_android_entries
This symbol is the offset where the |
||||||
public
static
int |
MultiSelectListPreference_android_entryValues
This symbol is the offset where the |
||||||
public
static
int |
MultiSelectListPreference_entries
The human-readable array to present as a list. |
||||||
public
static
int |
MultiSelectListPreference_entryValues
The array to find the value to save for a preference when an entry from entries is selected. |
||||||
public
static
final
int[] |
Preference
Base attributes available to Preference. |
||||||
public
static
final
int[] |
PreferenceFragmentCompat
Base attributes available to PreferenceFragment. |
||||||
public
static
int |
PreferenceFragmentCompat_android_divider
List separator to draw between preference views May be a reference to another resource, in the form
" |
||||||
public
static
int |
PreferenceFragmentCompat_android_dividerHeight
List separator height May be a dimension value, which is a floating point number appended with a
unit such as " |
||||||
public
static
int |
PreferenceFragmentCompat_android_layout
The layout for the PreferenceFragment. |
||||||
public
static
final
int[] |
PreferenceGroup
Base attributes available to PreferenceGroup. |
||||||
public
static
int |
PreferenceGroup_android_orderingFromXml
This symbol is the offset where the |
||||||
public
static
int |
PreferenceGroup_orderingFromXml
Whether to order the Preference under this group as they appear in the XML file. |
||||||
public
static
final
int[] |
PreferenceImageView
Attributes that can be used with a PreferenceImageView. |
||||||
public
static
int |
PreferenceImageView_android_maxHeight
This symbol is the offset where the |
||||||
public
static
int |
PreferenceImageView_android_maxWidth
This symbol is the offset where the |
||||||
public
static
int |
PreferenceImageView_maxHeight
This symbol is the offset where the |
||||||
public
static
int |
PreferenceImageView_maxWidth
This symbol is the offset where the |
||||||
public
static
final
int[] |
PreferenceTheme
Attributes that can be used with a PreferenceTheme. |
||||||
public
static
int |
PreferenceTheme_checkBoxPreferenceStyle
Default style for CheckBoxPreference. |
||||||
public
static
int |
PreferenceTheme_dialogPreferenceStyle
Default style for DialogPreference. |
||||||
public
static
int |
PreferenceTheme_dropdownPreferenceStyle
Default style for DropDownPreference. |
||||||
public
static
int |
PreferenceTheme_editTextPreferenceStyle
Default style for EditTextPreference. |
||||||
public
static
int |
PreferenceTheme_preferenceActivityStyle
Default style for the PreferenceActivity. |
||||||
public
static
int |
PreferenceTheme_preferenceCategoryStyle
Default style for PreferenceCategory. |
||||||
public
static
int |
PreferenceTheme_preferenceFragmentCompatStyle
Default style for Headers pane in PreferenceActivity. |
||||||
public
static
int |
PreferenceTheme_preferenceFragmentListStyle
Preference fragment list style May be a reference to another resource, in the form
" |
||||||
public
static
int |
PreferenceTheme_preferenceFragmentPaddingSide
Preference fragment padding side May be a dimension value, which is a floating point number appended with a
unit such as " |
||||||
public
static
int |
PreferenceTheme_preferenceFragmentStyle
Default style for Headers pane in PreferenceActivity. |
||||||
public
static
int |
PreferenceTheme_preferenceHeaderPanelStyle
Preference headers panel style May be a reference to another resource, in the form
" |
||||||
public
static
int |
PreferenceTheme_preferenceInformationStyle
Default style for informational Preference. |
||||||
public
static
int |
PreferenceTheme_preferenceLayoutChild
The preference layout that has the child/tabbed effect. |
||||||
public
static
int |
PreferenceTheme_preferenceListStyle
Preference list style May be a reference to another resource, in the form
" |
||||||
public
static
int |
PreferenceTheme_preferencePanelStyle
Preference panel style May be a reference to another resource, in the form
" |
||||||
public
static
int |
PreferenceTheme_preferenceScreenStyle
Default style for PreferenceScreen. |
||||||
public
static
int |
PreferenceTheme_preferenceStyle
Default style for Preference. |
||||||
public
static
int |
PreferenceTheme_preferenceTheme
Theme for inflating Preference objects May be a reference to another resource, in the form
" |
||||||
public
static
int |
PreferenceTheme_ringtonePreferenceStyle
Default style for RingtonePreference. |
||||||
public
static
int |
PreferenceTheme_seekBarPreferenceStyle
Default style for seekbar preferences. |
||||||
public
static
int |
PreferenceTheme_switchPreferenceCompatStyle
Default style for switch compat preferences. |
||||||
public
static
int |
PreferenceTheme_switchPreferenceStyle
Default style for switch preferences. |
||||||
public
static
int |
PreferenceTheme_yesNoPreferenceStyle
Default style for YesNoPreference. |
||||||
public
static
int |
Preference_android_defaultValue
This symbol is the offset where the |
||||||
public
static
int |
Preference_android_dependency
This symbol is the offset where the |
||||||
public
static
int |
Preference_android_enabled
This symbol is the offset where the |
||||||
public
static
int |
Preference_android_fragment
This symbol is the offset where the |
||||||
public
static
int |
Preference_android_icon
This symbol is the offset where the |
||||||
public
static
int |
Preference_android_key
This symbol is the offset where the |
||||||
public
static
int |
Preference_android_layout
This symbol is the offset where the |
||||||
public
static
int |
Preference_android_order
This symbol is the offset where the |
||||||
public
static
int |
Preference_android_persistent
This symbol is the offset where the |
||||||
public
static
int |
Preference_android_selectable
This symbol is the offset where the |
||||||
public
static
int |
Preference_android_shouldDisableView
This symbol is the offset where the |
||||||
public
static
int |
Preference_android_summary
This symbol is the offset where the |
||||||
public
static
int |
Preference_android_title
This symbol is the offset where the |
||||||
public
static
int |
Preference_android_widgetLayout
This symbol is the offset where the |
||||||
public
static
int |
Preference_defaultValue
The default value for the preference, which will be set either if persistence is off or persistence is on and the preference is not found in the persistent storage. |
||||||
public
static
int |
Preference_dependency
The key of another Preference that this Preference will depend on. |
||||||
public
static
int |
Preference_enabled
Whether the Preference is enabled. |
||||||
public
static
int |
Preference_fragment
When used inside of a modern PreferenceActivity, this declares a new PreferenceFragment to be shown when the user selects this item. |
||||||
public
static
int |
Preference_icon
The optional icon for the preference May be a reference to another resource, in the form
" |
||||||
public
static
int |
Preference_key
The key to store the Preference value. |
||||||
public
static
int |
Preference_layout
The layout for the Preference in a PreferenceActivity screen. |
||||||
public
static
int |
Preference_order
The order for the Preference (lower values are to be ordered first). |
||||||
public
static
int |
Preference_persistent
Whether the Preference stores its value to the shared preferences. |
||||||
public
static
int |
Preference_selectable
Whether the Preference is selectable. |
||||||
public
static
int |
Preference_shouldDisableView
Whether the view of this Preference should be disabled when this Preference is disabled. |
||||||
public
static
int |
Preference_summary
The summary for the Preference in a PreferenceActivity screen. |
||||||
public
static
int |
Preference_title
The title for the Preference in a PreferenceActivity screen. |
||||||
public
static
int |
Preference_widgetLayout
The layout for the controllable widget portion of a Preference. |
||||||
public
static
final
int[] |
SwitchPreferenceCompat
Attributes that can be used with a SwitchPreferenceCompat. |
||||||
public
static
int |
SwitchPreferenceCompat_android_disableDependentsState
This symbol is the offset where the |
||||||
public
static
int |
SwitchPreferenceCompat_android_summaryOff
This symbol is the offset where the |
||||||
public
static
int |
SwitchPreferenceCompat_android_summaryOn
This symbol is the offset where the |
||||||
public
static
int |
SwitchPreferenceCompat_android_switchTextOff
This symbol is the offset where the |
||||||
public
static
int |
SwitchPreferenceCompat_android_switchTextOn
This symbol is the offset where the |
||||||
public
static
int |
SwitchPreferenceCompat_disableDependentsState
The state (true for on, or false for off) that causes dependents to be disabled. |
||||||
public
static
int |
SwitchPreferenceCompat_summaryOff
The summary for the Preference in a PreferenceActivity screen when the SwitchPreference is unchecked. |
||||||
public
static
int |
SwitchPreferenceCompat_summaryOn
The summary for the Preference in a PreferenceActivity screen when the SwitchPreference is checked. |
||||||
public
static
int |
SwitchPreferenceCompat_switchTextOff
The text used on the switch itself when in the "off" state. |
||||||
public
static
int |
SwitchPreferenceCompat_switchTextOn
The text used on the switch itself when in the "on" state. |
Public constructors | |
---|---|
R.styleable()
|
Inherited methods | |
---|---|
From
class
java.lang.Object
|
int[] BackgroundStyle
Used to access some android attrs
Includes the following attributes:
Attribute | Description |
---|---|
| Need a non-android: attr here so that gradle doesn't remove it |
|
int BackgroundStyle_android_selectableItemBackground
This symbol is the offset where the selectableItemBackground
attribute's value can be found in the BackgroundStyle
array.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int BackgroundStyle_selectableItemBackground
Need a non-android: attr here so that gradle doesn't remove it
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
May be an integer value, such as "100
".
May be a boolean value, such as "true
" or
"false
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
May be a floating point value, such as "1.2
".
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
May be a fractional value, which is a floating point number appended with
either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size;
the optional %p suffix provides a size relative to some parent container.
int[] CheckBoxPreference
Base attributes available to CheckBoxPreference.
Includes the following attributes:
Attribute | Description |
---|---|
| The state (true for on, or false for off) that causes dependents to be disabled. |
| The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is unchecked. |
| The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is checked. |
| |
| |
|
int CheckBoxPreference_android_disableDependentsState
This symbol is the offset where the disableDependentsState
attribute's value can be found in the CheckBoxPreference
array.
May be a boolean value, such as "true
" or
"false
".
int CheckBoxPreference_android_summaryOff
This symbol is the offset where the summaryOff
attribute's value can be found in the CheckBoxPreference
array.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int CheckBoxPreference_android_summaryOn
This symbol is the offset where the summaryOn
attribute's value can be found in the CheckBoxPreference
array.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int CheckBoxPreference_disableDependentsState
The state (true for on, or false for off) that causes dependents to be disabled. By default, dependents will be disabled when this is unchecked, so the value of this preference is false.
May be a boolean value, such as "true
" or
"false
".
int CheckBoxPreference_summaryOff
The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is unchecked. If separate on/off summaries are not needed, the summary attribute can be used instead.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int CheckBoxPreference_summaryOn
The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is checked. If separate on/off summaries are not needed, the summary attribute can be used instead.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int[] DialogPreference
Base attributes available to DialogPreference.
Includes the following attributes:
Attribute | Description |
---|---|
| The icon for the dialog. |
| A layout to be used as the content View for the dialog. |
| The message in the dialog. |
| The title in the dialog. |
| The negative button text for the dialog. |
| The positive button text for the dialog. |
| |
| |
| |
| |
| |
|
See also:
DialogPreference_dialogIcon
DialogPreference_dialogLayout
DialogPreference_dialogMessage
DialogPreference_dialogTitle
DialogPreference_negativeButtonText
DialogPreference_positiveButtonText
DialogPreference_android_dialogTitle
DialogPreference_android_dialogMessage
DialogPreference_android_dialogIcon
DialogPreference_android_positiveButtonText
DialogPreference_android_negativeButtonText
DialogPreference_android_dialogLayout
int DialogPreference_android_dialogIcon
This symbol is the offset where the dialogIcon
attribute's value can be found in the DialogPreference
array.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int DialogPreference_android_dialogLayout
This symbol is the offset where the dialogLayout
attribute's value can be found in the DialogPreference
array.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int DialogPreference_android_dialogMessage
This symbol is the offset where the dialogMessage
attribute's value can be found in the DialogPreference
array.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int DialogPreference_android_dialogTitle
This symbol is the offset where the dialogTitle
attribute's value can be found in the DialogPreference
array.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int DialogPreference_android_negativeButtonText
This symbol is the offset where the negativeButtonText
attribute's value can be found in the DialogPreference
array.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int DialogPreference_android_positiveButtonText
This symbol is the offset where the positiveButtonText
attribute's value can be found in the DialogPreference
array.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int DialogPreference_dialogIcon
The icon for the dialog.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int DialogPreference_dialogLayout
A layout to be used as the content View for the dialog. By default, this shouldn't be needed. If a custom DialogPreference is required, this should be set. For example, the EditTextPreference uses a layout with an EditText as this attribute.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int DialogPreference_dialogMessage
The message in the dialog. If a dialogLayout is provided and contains a TextView with ID android:id/message, this message will be placed in there.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int DialogPreference_dialogTitle
The title in the dialog.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int DialogPreference_negativeButtonText
The negative button text for the dialog. Set to @null to hide the negative button.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int DialogPreference_positiveButtonText
The positive button text for the dialog. Set to @null to hide the positive button.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int[] ListPreference
Base attributes available to ListPreference.
Includes the following attributes:
Attribute | Description |
---|---|
| The human-readable array to present as a list. |
| The array to find the value to save for a preference when an entry from entries is selected. |
| |
|
int ListPreference_android_entries
This symbol is the offset where the entries
attribute's value can be found in the ListPreference
array.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int ListPreference_android_entryValues
This symbol is the offset where the entryValues
attribute's value can be found in the ListPreference
array.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int ListPreference_entries
The human-readable array to present as a list. Each entry must have a corresponding index in entryValues.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int ListPreference_entryValues
The array to find the value to save for a preference when an entry from entries is selected. If a user clicks on the second item in entries, the second item in this array will be saved to the preference.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int[] MultiSelectListPreference
Attributes that can be used with a MultiSelectListPreference.
Includes the following attributes:
Attribute | Description |
---|---|
| The human-readable array to present as a list. |
| The array to find the value to save for a preference when an entry from entries is selected. |
| |
|
int MultiSelectListPreference_android_entries
This symbol is the offset where the entries
attribute's value can be found in the MultiSelectListPreference
array.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int MultiSelectListPreference_android_entryValues
This symbol is the offset where the entryValues
attribute's value can be found in the MultiSelectListPreference
array.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int MultiSelectListPreference_entries
The human-readable array to present as a list. Each entry must have a corresponding index in entryValues.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int MultiSelectListPreference_entryValues
The array to find the value to save for a preference when an entry from entries is selected. If a user clicks the second item in entries, the second item in this array will be saved to the preference.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int[] Preference
Base attributes available to Preference.
Includes the following attributes:
Attribute | Description |
---|---|
| The default value for the preference, which will be set either if persistence is off or persistence is on and the preference is not found in the persistent storage. |
| The key of another Preference that this Preference will depend on. |
| Whether the Preference is enabled. |
| When used inside of a modern PreferenceActivity, this declares a new PreferenceFragment to be shown when the user selects this item. |
| The optional icon for the preference |
| The key to store the Preference value. |
| The layout for the Preference in a PreferenceActivity screen. |
| The order for the Preference (lower values are to be ordered first). |
| Whether the Preference stores its value to the shared preferences. |
| Whether the Preference is selectable. |
| Whether the view of this Preference should be disabled when this Preference is disabled. |
| The summary for the Preference in a PreferenceActivity screen. |
| The title for the Preference in a PreferenceActivity screen. |
| The layout for the controllable widget portion of a Preference. |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
See also:
Preference_defaultValue
Preference_dependency
Preference_enabled
Preference_fragment
Preference_icon
Preference_key
Preference_layout
Preference_order
Preference_persistent
Preference_selectable
Preference_shouldDisableView
Preference_summary
Preference_title
Preference_widgetLayout
Preference_android_icon
Preference_android_persistent
Preference_android_enabled
Preference_android_layout
Preference_android_title
Preference_android_selectable
Preference_android_key
Preference_android_summary
Preference_android_order
Preference_android_widgetLayout
Preference_android_dependency
Preference_android_defaultValue
Preference_android_shouldDisableView
Preference_android_fragment
int[] PreferenceFragmentCompat
Base attributes available to PreferenceFragment.
Includes the following attributes:
Attribute | Description |
---|---|
| |
| |
|
int PreferenceFragmentCompat_android_divider
List separator to draw between preference views
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
int PreferenceFragmentCompat_android_dividerHeight
List separator height
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int PreferenceFragmentCompat_android_layout
The layout for the PreferenceFragment. This should rarely need to be changed.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int[] PreferenceGroup
Base attributes available to PreferenceGroup.
Includes the following attributes:
Attribute | Description |
---|---|
| Whether to order the Preference under this group as they appear in the XML file. |
|
int PreferenceGroup_android_orderingFromXml
This symbol is the offset where the orderingFromXml
attribute's value can be found in the PreferenceGroup
array.
May be a boolean value, such as "true
" or
"false
".
int PreferenceGroup_orderingFromXml
Whether to order the Preference under this group as they appear in the XML file. If this is false, the ordering will follow the Preference order attribute and default to alphabetic for those without the order attribute.
May be a boolean value, such as "true
" or
"false
".
int[] PreferenceImageView
Attributes that can be used with a PreferenceImageView.
Includes the following attributes:
Attribute | Description |
---|---|
| |
| |
| |
|
int PreferenceImageView_android_maxHeight
This symbol is the offset where the maxHeight
attribute's value can be found in the PreferenceImageView
array.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int PreferenceImageView_android_maxWidth
This symbol is the offset where the maxWidth
attribute's value can be found in the PreferenceImageView
array.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int PreferenceImageView_maxHeight
This symbol is the offset where the maxHeight
attribute's value can be found in the PreferenceImageView
array.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int PreferenceImageView_maxWidth
This symbol is the offset where the maxWidth
attribute's value can be found in the PreferenceImageView
array.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int[] PreferenceTheme
Attributes that can be used with a PreferenceTheme.
Includes the following attributes:
See also:
PreferenceTheme_checkBoxPreferenceStyle
PreferenceTheme_dialogPreferenceStyle
PreferenceTheme_dropdownPreferenceStyle
PreferenceTheme_editTextPreferenceStyle
PreferenceTheme_preferenceActivityStyle
PreferenceTheme_preferenceCategoryStyle
PreferenceTheme_preferenceFragmentCompatStyle
PreferenceTheme_preferenceFragmentListStyle
PreferenceTheme_preferenceFragmentPaddingSide
PreferenceTheme_preferenceFragmentStyle
PreferenceTheme_preferenceHeaderPanelStyle
PreferenceTheme_preferenceInformationStyle
PreferenceTheme_preferenceLayoutChild
PreferenceTheme_preferenceListStyle
PreferenceTheme_preferencePanelStyle
PreferenceTheme_preferenceScreenStyle
PreferenceTheme_preferenceStyle
PreferenceTheme_preferenceTheme
PreferenceTheme_ringtonePreferenceStyle
PreferenceTheme_seekBarPreferenceStyle
PreferenceTheme_switchPreferenceCompatStyle
PreferenceTheme_switchPreferenceStyle
PreferenceTheme_yesNoPreferenceStyle
int PreferenceTheme_checkBoxPreferenceStyle
Default style for CheckBoxPreference.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_dialogPreferenceStyle
Default style for DialogPreference.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_dropdownPreferenceStyle
Default style for DropDownPreference.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_editTextPreferenceStyle
Default style for EditTextPreference.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_preferenceActivityStyle
Default style for the PreferenceActivity.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_preferenceCategoryStyle
Default style for PreferenceCategory.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_preferenceFragmentCompatStyle
Default style for Headers pane in PreferenceActivity.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_preferenceFragmentListStyle
Preference fragment list style
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_preferenceFragmentPaddingSide
Preference fragment padding side
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
int PreferenceTheme_preferenceFragmentStyle
Default style for Headers pane in PreferenceActivity.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_preferenceHeaderPanelStyle
Preference headers panel style
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_preferenceInformationStyle
Default style for informational Preference.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_preferenceLayoutChild
The preference layout that has the child/tabbed effect.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_preferenceListStyle
Preference list style
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_preferencePanelStyle
Preference panel style
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_preferenceScreenStyle
Default style for PreferenceScreen.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_preferenceStyle
Default style for Preference.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_preferenceTheme
Theme for inflating Preference objects
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_ringtonePreferenceStyle
Default style for RingtonePreference.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_seekBarPreferenceStyle
Default style for seekbar preferences.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_switchPreferenceCompatStyle
Default style for switch compat preferences.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_switchPreferenceStyle
Default style for switch preferences.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int PreferenceTheme_yesNoPreferenceStyle
Default style for YesNoPreference.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int Preference_android_defaultValue
This symbol is the offset where the defaultValue
attribute's value can be found in the Preference
array.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
May be an integer value, such as "100
".
May be a boolean value, such as "true
" or
"false
".
May be a floating point value, such as "1.2
".
int Preference_android_dependency
This symbol is the offset where the dependency
attribute's value can be found in the Preference
array.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int Preference_android_enabled
This symbol is the offset where the enabled
attribute's value can be found in the Preference
array.
May be a boolean value, such as "true
" or
"false
".
int Preference_android_fragment
This symbol is the offset where the fragment
attribute's value can be found in the Preference
array.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int Preference_android_icon
This symbol is the offset where the icon
attribute's value can be found in the Preference
array.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int Preference_android_key
This symbol is the offset where the key
attribute's value can be found in the Preference
array.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int Preference_android_layout
This symbol is the offset where the layout
attribute's value can be found in the Preference
array.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int Preference_android_order
This symbol is the offset where the order
attribute's value can be found in the Preference
array.
May be an integer value, such as "100
".
int Preference_android_persistent
This symbol is the offset where the persistent
attribute's value can be found in the Preference
array.
May be a boolean value, such as "true
" or
"false
".
int Preference_android_selectable
This symbol is the offset where the selectable
attribute's value can be found in the Preference
array.
May be a boolean value, such as "true
" or
"false
".
int Preference_android_shouldDisableView
This symbol is the offset where the shouldDisableView
attribute's value can be found in the Preference
array.
May be a boolean value, such as "true
" or
"false
".
int Preference_android_summary
This symbol is the offset where the summary
attribute's value can be found in the Preference
array.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int Preference_android_title
This symbol is the offset where the title
attribute's value can be found in the Preference
array.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int Preference_android_widgetLayout
This symbol is the offset where the widgetLayout
attribute's value can be found in the Preference
array.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int Preference_defaultValue
The default value for the preference, which will be set either if persistence is off or persistence is on and the preference is not found in the persistent storage.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
May be an integer value, such as "100
".
May be a boolean value, such as "true
" or
"false
".
May be a floating point value, such as "1.2
".
int Preference_dependency
The key of another Preference that this Preference will depend on. If the other Preference is not set or is off, this Preference will be disabled.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int Preference_enabled
Whether the Preference is enabled.
May be a boolean value, such as "true
" or
"false
".
int Preference_fragment
When used inside of a modern PreferenceActivity, this declares a new PreferenceFragment to be shown when the user selects this item.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int Preference_icon
The optional icon for the preference
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
May be an integer value, such as "100
".
May be a boolean value, such as "true
" or
"false
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
May be a floating point value, such as "1.2
".
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
May be a fractional value, which is a floating point number appended with
either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size;
the optional %p suffix provides a size relative to some parent container.
int Preference_key
The key to store the Preference value.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int Preference_layout
The layout for the Preference in a PreferenceActivity screen. This should rarely need to be changed, look at widgetLayout instead.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
May be an integer value, such as "100
".
May be a boolean value, such as "true
" or
"false
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
May be a floating point value, such as "1.2
".
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
May be a fractional value, which is a floating point number appended with
either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size;
the optional %p suffix provides a size relative to some parent container.
int Preference_order
The order for the Preference (lower values are to be ordered first). If this is not specified, the default ordering will be alphabetic.
May be an integer value, such as "100
".
int Preference_persistent
Whether the Preference stores its value to the shared preferences.
May be a boolean value, such as "true
" or
"false
".
int Preference_selectable
Whether the Preference is selectable.
May be a boolean value, such as "true
" or
"false
".
int Preference_shouldDisableView
Whether the view of this Preference should be disabled when this Preference is disabled.
May be a boolean value, such as "true
" or
"false
".
int Preference_summary
The summary for the Preference in a PreferenceActivity screen.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int Preference_title
The title for the Preference in a PreferenceActivity screen.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
May be an integer value, such as "100
".
May be a boolean value, such as "true
" or
"false
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
May be a floating point value, such as "1.2
".
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
May be a fractional value, which is a floating point number appended with
either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size;
the optional %p suffix provides a size relative to some parent container.
int Preference_widgetLayout
The layout for the controllable widget portion of a Preference. This is inflated into the layout for a Preference and should be used more frequently than the layout attribute. For example, a checkbox preference would specify a custom layout (consisting of just the CheckBox) here.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int[] SwitchPreferenceCompat
Attributes that can be used with a SwitchPreferenceCompat.
Includes the following attributes:
Attribute | Description |
---|---|
| The state (true for on, or false for off) that causes dependents to be disabled. |
| The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is unchecked. |
| The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is checked. |
| The text used on the switch itself when in the "off" state. |
| The text used on the switch itself when in the "on" state. |
| |
| |
| |
| |
|
See also:
SwitchPreferenceCompat_disableDependentsState
SwitchPreferenceCompat_summaryOff
SwitchPreferenceCompat_summaryOn
SwitchPreferenceCompat_switchTextOff
SwitchPreferenceCompat_switchTextOn
SwitchPreferenceCompat_android_summaryOn
SwitchPreferenceCompat_android_summaryOff
SwitchPreferenceCompat_android_disableDependentsState
SwitchPreferenceCompat_android_switchTextOn
SwitchPreferenceCompat_android_switchTextOff
int SwitchPreferenceCompat_android_disableDependentsState
This symbol is the offset where the disableDependentsState
attribute's value can be found in the SwitchPreferenceCompat
array.
May be a boolean value, such as "true
" or
"false
".
int SwitchPreferenceCompat_android_summaryOff
This symbol is the offset where the summaryOff
attribute's value can be found in the SwitchPreferenceCompat
array.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int SwitchPreferenceCompat_android_summaryOn
This symbol is the offset where the summaryOn
attribute's value can be found in the SwitchPreferenceCompat
array.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int SwitchPreferenceCompat_android_switchTextOff
This symbol is the offset where the switchTextOff
attribute's value can be found in the SwitchPreferenceCompat
array.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int SwitchPreferenceCompat_android_switchTextOn
This symbol is the offset where the switchTextOn
attribute's value can be found in the SwitchPreferenceCompat
array.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int SwitchPreferenceCompat_disableDependentsState
The state (true for on, or false for off) that causes dependents to be disabled. By default, dependents will be disabled when this is unchecked, so the value of this preference is false.
May be a boolean value, such as "true
" or
"false
".
int SwitchPreferenceCompat_summaryOff
The summary for the Preference in a PreferenceActivity screen when the SwitchPreference is unchecked. If separate on/off summaries are not needed, the summary attribute can be used instead.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int SwitchPreferenceCompat_summaryOn
The summary for the Preference in a PreferenceActivity screen when the SwitchPreference is checked. If separate on/off summaries are not needed, the summary attribute can be used instead.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int SwitchPreferenceCompat_switchTextOff
The text used on the switch itself when in the "off" state. This should be a very SHORT string, as it appears in a small space.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
int SwitchPreferenceCompat_switchTextOn
The text used on the switch itself when in the "on" state. This should be a very SHORT string, as it appears in a small space.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
R.styleable ()