class R.attr


Summary

Public constructors

Public properties

java-static Int

Attribute indicating whether the slider within this preference can be adjusted, that is pressing left/right keys when this preference is focused will move the slider accordingly (e.g. inline adjustable preferences).

java-static Int

Whether the preference allows displaying divider on top

java-static Int

Whether a divider is allowed to draw after the last item

java-static Int

Whether the preference allows displaying divider below it

java-static Int

Default style for CheckBoxPreference.

java-static Int

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.

java-static Int

The key of another Preference that this Preference will depend on.

java-static Int

The icon for the dialog.

java-static Int

A layout to be used as the content View for the dialog.

java-static Int

The message in the dialog.

java-static Int

Default style for DialogPreference.

java-static Int

The title in the dialog.

java-static Int

The state (true for on, or false for off) that causes dependents to be disabled.

java-static Int

Default style for DropDownPreference.

java-static Int

Default style for EditTextPreference.

java-static Int

Whether the Preference is enabled.

java-static Int

The human-readable array to present as a list.

java-static Int

The array to find the value to save for a preference when an entry from entries is selected.

java-static Int

When used inside of a modern PreferenceActivity, this declares a new PreferenceFragment to be shown when the user selects this item.

java-static Int
java-static Int

Whether the space for the preference icon view will be reserved.

java-static Int

The key to store the Preference value.

java-static Int
java-static Int

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

java-static Int

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

java-static Int

May be an integer value, such as "100".

java-static Int

The negative button text for the dialog.

java-static Int

The order for the Preference (lower values are to be ordered first).

java-static Int

Whether to order the Preference under this group as they appear in the XML file.

java-static Int

Whether the Preference stores its value to the shared preferences.

java-static Int

The positive button text for the dialog.

java-static Int

Default style for PreferenceCategory.

java-static Int

The preferred TextAppearance for the title displayed in a PreferenceCategory.

java-static Int

The preferred color for the title displayed in a PreferenceCategory.

java-static Int

Default style for Headers pane in PreferenceActivity.

java-static Int

Preference fragment list style

java-static Int

Default style for Headers pane in PreferenceActivity.

java-static Int

Default style for informational Preference.

java-static Int

Default style for PreferenceScreen.

java-static Int

Default style for Preference.

java-static Int

Theme for inflating Preference objects

java-static Int

Attribute controlling the amount to increment or decrement the seekbar when the user presses the arrow keys

java-static Int

Default style for seekbar preferences.

java-static Int

Whether the Preference is selectable.

java-static Int
java-static Int

Whether the view of this Preference should be disabled when this Preference is disabled.

java-static Int

Flag indicating whether the TextView next to the seekbar that shows the current seekbar value will be displayed.

java-static Int

Whether to use single line for the preference title text.

java-static Int

The summary for the Preference in a PreferenceActivity screen.

java-static Int

The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is unchecked.

java-static Int

The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is checked.

java-static Int

Default style for switch compat preferences.

java-static Int

Default style for switch preferences.

java-static Int

The text used on the switch itself when in the "off" state.

java-static Int

The text used on the switch itself when in the "on" state.

java-static Int
java-static Int

The layout for the controllable widget portion of a Preference.

Public constructors

attr

attr()

Public properties

adjustable

java-static val adjustable: Int

Attribute indicating whether the slider within this preference can be adjusted, that is pressing left/right keys when this preference is focused will move the slider accordingly (e.g. inline adjustable preferences). False, if the slider within the preference is read-only and cannot be adjusted. By default, the seekbar is adjustable.

May be a boolean value, such as "true" or "false".

allowDividerAbove

java-static val allowDividerAbove: Int

Whether the preference allows displaying divider on top

May be a boolean value, such as "true" or "false".

allowDividerAfterLastItem

java-static val allowDividerAfterLastItem: Int

Whether a divider is allowed to draw after the last item

May be a boolean value, such as "true" or "false".

allowDividerBelow

java-static val allowDividerBelow: Int

Whether the preference allows displaying divider below it

May be a boolean value, such as "true" or "false".

checkBoxPreferenceStyle

java-static val checkBoxPreferenceStyle: Int

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".

defaultValue

java-static val defaultValue: Int

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".

dependency

java-static val dependency: Int

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;

dialogIcon

java-static val dialogIcon: Int

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".

dialogLayout

java-static val dialogLayout: Int

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".

dialogMessage

java-static val dialogMessage: Int

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;

dialogPreferenceStyle

java-static val dialogPreferenceStyle: Int

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".

dialogTitle

java-static val dialogTitle: Int

The title in the dialog.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

disableDependentsState

java-static val disableDependentsState: Int

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".

java-static val dropdownPreferenceStyle: Int

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".

editTextPreferenceStyle

java-static val editTextPreferenceStyle: Int

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".

enabled

java-static val enabled: Int

Whether the Preference is enabled.

May be a boolean value, such as "true" or "false".

entries

java-static val entries: Int

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".

entryValues

java-static val entryValues: Int

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".

fragment

java-static val fragment: Int

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;

icon

java-static val icon: Int

iconSpaceReserved

java-static val iconSpaceReserved: Int

Whether the space for the preference icon view will be reserved. If set to true, the preference will be offset as if it would have the icon and thus aligned with other preferences having icons. By default, preference icon view visibility will be set to GONE when there is no icon provided, so the default value of this attribute is false.

May be a boolean value, such as "true" or "false".

key

java-static val key: Int

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;

layout

java-static val layout: Int

maxHeight

java-static val maxHeight: Int

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).

maxWidth

java-static val maxWidth: Int

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).

min

java-static val min: Int

May be an integer value, such as "100".

negativeButtonText

java-static val negativeButtonText: Int

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;

order

java-static val order: Int

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".

orderingFromXml

java-static val orderingFromXml: Int

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".

persistent

java-static val persistent: Int

Whether the Preference stores its value to the shared preferences.

May be a boolean value, such as "true" or "false".

positiveButtonText

java-static val positiveButtonText: Int

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;

preferenceCategoryStyle

java-static val preferenceCategoryStyle: Int

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".

preferenceCategoryTitleTextAppearance

java-static val preferenceCategoryTitleTextAppearance: Int

The preferred TextAppearance for the title displayed in a PreferenceCategory. This is needed as there are no relevant android: attributes we can use for this as we do with other text appearance styles.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

preferenceCategoryTitleTextColor

java-static val preferenceCategoryTitleTextColor: Int

The preferred color for the title displayed in a PreferenceCategory. If this is not specified by a developer, we use ?android:attr/colorAccent above Lollipop, and ?attr/colorAccent below Lollipop (when using an AppCompat theme).

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", or "#aarrggbb".

preferenceFragmentCompatStyle

java-static val preferenceFragmentCompatStyle: Int

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".

preferenceFragmentListStyle

java-static val preferenceFragmentListStyle: Int

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".

preferenceFragmentStyle

java-static val preferenceFragmentStyle: Int

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".

preferenceInformationStyle

java-static val preferenceInformationStyle: Int

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".

preferenceScreenStyle

java-static val preferenceScreenStyle: Int

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".

preferenceStyle

java-static val preferenceStyle: Int

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".

preferenceTheme

java-static val preferenceTheme: Int

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".

seekBarIncrement

java-static val seekBarIncrement: Int

Attribute controlling the amount to increment or decrement the seekbar when the user presses the arrow keys

May be an integer value, such as "100".

seekBarPreferenceStyle

java-static val seekBarPreferenceStyle: Int

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".

selectable

java-static val selectable: Int

Whether the Preference is selectable.

May be a boolean value, such as "true" or "false".

selectableItemBackground

java-static val selectableItemBackground: Int

shouldDisableView

java-static val shouldDisableView: Int

Whether the view of this Preference should be disabled when this Preference is disabled.

May be a boolean value, such as "true" or "false".

showSeekBarValue

java-static val showSeekBarValue: Int

Flag indicating whether the TextView next to the seekbar that shows the current seekbar value will be displayed. If true, the view is VISIBLE; if false, the view will be GONE. By default, this view is GONE.

May be a boolean value, such as "true" or "false".

singleLineTitle

java-static val singleLineTitle: Int

Whether to use single line for the preference title text. By default, preference title will be constrained to one line, so the default value of this attribute is true.

May be a boolean value, such as "true" or "false".

summary

java-static val summary: Int

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;

summaryOff

java-static val summaryOff: Int

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;

summaryOn

java-static val summaryOn: Int

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;

switchPreferenceCompatStyle

java-static val switchPreferenceCompatStyle: Int

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".

switchPreferenceStyle

java-static val switchPreferenceStyle: Int

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".

switchTextOff

java-static val switchTextOff: Int

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;

switchTextOn

java-static val switchTextOn: Int

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;

title

java-static val title: Int

widgetLayout

java-static val widgetLayout: Int

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".