public
static
final
class
R.attr
extends Object
java.lang.Object | |
↳ | android.support.v7.preference.R.attr |
Fields | |
---|---|
public
static
int |
checkBoxPreferenceStyle
Default style for CheckBoxPreference. |
public
static
int |
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 |
dependency
The key of another Preference that this Preference will depend on. |
public
static
int |
dialogIcon
The icon for the dialog. |
public
static
int |
dialogLayout
A layout to be used as the content View for the dialog. |
public
static
int |
dialogMessage
The message in the dialog. |
public
static
int |
dialogPreferenceStyle
Default style for DialogPreference. |
public
static
int |
dialogTitle
The title in the dialog. |
public
static
int |
disableDependentsState
The state (true for on, or false for off) that causes dependents to be disabled. |
public
static
int |
dropdownPreferenceStyle
Default style for DropDownPreference. |
public
static
int |
editTextPreferenceStyle
Default style for EditTextPreference. |
public
static
int |
enabled
Whether the Preference is enabled. |
public
static
int |
entries
The human-readable array to present as a list. |
public
static
int |
entryValues
The array to find the value to save for a preference when an entry from entries is selected. |
public
static
int |
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 |
icon
The optional icon for the preference May be a reference to another resource, in the form
" |
public
static
int |
key
The key to store the Preference value. |
public
static
int |
layout
The layout for the Preference in a PreferenceActivity screen. |
public
static
int |
maxHeight
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
maxWidth
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
negativeButtonText
The negative button text for the dialog. |
public
static
int |
order
The order for the Preference (lower values are to be ordered first). |
public
static
int |
orderingFromXml
Whether to order the Preference under this group as they appear in the XML file. |
public
static
int |
persistent
Whether the Preference stores its value to the shared preferences. |
public
static
int |
positiveButtonText
The positive button text for the dialog. |
public
static
int |
preferenceActivityStyle
Default style for the PreferenceActivity. |
public
static
int |
preferenceCategoryStyle
Default style for PreferenceCategory. |
public
static
int |
preferenceFragmentCompatStyle
Default style for Headers pane in PreferenceActivity. |
public
static
int |
preferenceFragmentListStyle
Preference fragment list style May be a reference to another resource, in the form
" |
public
static
int |
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 |
preferenceFragmentStyle
Default style for Headers pane in PreferenceActivity. |
public
static
int |
preferenceHeaderPanelStyle
Preference headers panel style May be a reference to another resource, in the form
" |
public
static
int |
preferenceInformationStyle
Default style for informational Preference. |
public
static
int |
preferenceLayoutChild
The preference layout that has the child/tabbed effect. |
public
static
int |
preferenceListStyle
Preference list style May be a reference to another resource, in the form
" |
public
static
int |
preferencePanelStyle
Preference panel style May be a reference to another resource, in the form
" |
public
static
int |
preferenceScreenStyle
Default style for PreferenceScreen. |
public
static
int |
preferenceStyle
Default style for Preference. |
public
static
int |
preferenceTheme
Theme for inflating Preference objects May be a reference to another resource, in the form
" |
public
static
int |
ringtonePreferenceStyle
Default style for RingtonePreference. |
public
static
int |
seekBarPreferenceStyle
Default style for seekbar preferences. |
public
static
int |
selectable
Whether the Preference is selectable. |
public
static
int |
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
int |
shouldDisableView
Whether the view of this Preference should be disabled when this Preference is disabled. |
public
static
int |
summary
The summary for the Preference in a PreferenceActivity screen. |
public
static
int |
summaryOff
The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is unchecked. |
public
static
int |
summaryOn
The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is checked. |
public
static
int |
switchPreferenceCompatStyle
Default style for switch compat preferences. |
public
static
int |
switchPreferenceStyle
Default style for switch preferences. |
public
static
int |
switchTextOff
The text used on the switch itself when in the "off" state. |
public
static
int |
switchTextOn
The text used on the switch itself when in the "on" state. |
public
static
int |
title
The title for the Preference in a PreferenceActivity screen. |
public
static
int |
widgetLayout
The layout for the controllable widget portion of a Preference. |
public
static
int |
yesNoPreferenceStyle
Default style for YesNoPreference. |
Public constructors | |
---|---|
R.attr()
|
Inherited methods | |
---|---|
From
class
java.lang.Object
|
int 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 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 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 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 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 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 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 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 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 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 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 enabled
Whether the Preference is enabled.
May be a boolean value, such as "true
" or
"false
".
int 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 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 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 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 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 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 maxHeight
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 maxWidth
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 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 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 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 persistent
Whether the Preference stores its value to the shared preferences.
May be a boolean value, such as "true
" or
"false
".
int 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 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 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 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 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 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 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 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 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 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 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 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 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 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
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 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 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 selectable
Whether the Preference is selectable.
May be a boolean value, such as "true
" or
"false
".
int 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 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 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 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 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 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 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 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 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;
int 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 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 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
".
R.attr ()