R.attr

public static final class R.attr
extends Object

java.lang.Object
   ↳ android.support.wearable.R.attr


Summary

Fields

public static int actionBarDivider

Custom divider drawable to use for elements in the action bar.

public static int actionBarItemBackground

Custom item state list drawable background for action bar items.

public static int actionBarPopupTheme

Reference to a theme that should be used to inflate popups shown by widgets in the action bar.

public static int actionBarSize

Size of the Action Bar, including the contextual bar used to present Action Modes.

public static int actionBarSplitStyle

Reference to a style for the split Action Bar.

public static int actionBarStyle

Reference to a style for the Action Bar

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

public static int actionBarTabBarStyle

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

public static int actionBarTabStyle

Default style for tabs within an action bar

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

public static int actionBarTabTextStyle

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

public static int actionBarTheme

Reference to a theme that should be used to inflate the action bar.

public static int actionBarWidgetTheme

Reference to a theme that should be used to inflate widgets and layouts destined for the action bar.

public static int actionButtonStyle

Default action button style.

public static int actionDropDownStyle

Default ActionBar dropdown style.

public static int actionLayout

An optional layout to be used as an action view.

public static int actionMenuTextAppearance

TextAppearance style that will be applied to text that appears within action menu items.

public static int actionMenuTextColor

Color for text that appears within action menu items.

public static int actionModeBackground

Background drawable to use for action mode UI

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

public static int actionModeCloseButtonStyle

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

public static int actionModeCloseContentDescription

Content description to use for the close action mode button

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

public static int actionModeCloseDrawable

Drawable to use for the close action mode button

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

public static int actionModeCopyDrawable

Drawable to use for the Copy action button in Contextual Action Bar

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

public static int actionModeCutDrawable

Drawable to use for the Cut action button in Contextual Action Bar

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

public static int actionModeFindDrawable

Drawable to use for the Find action button in WebView selection action modes

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

public static int actionModePasteDrawable

Drawable to use for the Paste action button in Contextual Action Bar

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

public static int actionModePopupWindowStyle

PopupWindow style to use for action modes when showing as a window overlay.

public static int actionModeSelectAllDrawable

Drawable to use for the Select all action button in Contextual Action Bar

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

public static int actionModeShareDrawable

Drawable to use for the Share action button in WebView selection action modes

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

public static int actionModeSplitBackground

Background drawable to use for action mode UI in the lower split bar

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

public static int actionModeStyle

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

public static int actionModeTheme

Reference to a theme that should be used to inflate the action bar in action mode.

public static int actionModeWebSearchDrawable

Drawable to use for the Web Search action button in WebView selection action modes

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

public static int actionOverflowButtonStyle

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

public static int actionOverflowMenuStyle

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

public static int actionProviderClass

The name of an optional ActionProvider class to instantiate an action view and perform operations such as default action for that menu item.

public static int actionViewClass

The name of an optional View class to instantiate and use as an action view.

public static int action_menu

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

public static int activityChooserViewStyle

Default ActivityChooserView style.

public static int adjustable

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.

public static int alertDialogButtonGroupStyle

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

public static int alertDialogCenterButtons

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

public static int alertDialogStyle

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

public static int alertDialogTheme

Theme to use for alert dialogs spawned from this theme.

public static int allowDividerAbove

Whether the preference allows displaying divider on top

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

public static int allowDividerAfterLastItem

Whether a divider is allowed to draw after the last item

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

public static int allowDividerBelow

Whether the preference allows displaying divider below it

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

public static int allowStacking

Whether to automatically stack the buttons when there is not enough space to lay them out side-by-side.

public static int alpha

Alpha multiplier applied to the base color.

public static int alphabeticModifiers

The alphabetic modifier key.

public static int arrowHeadLength

The length of the arrow head when formed to make an arrow

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

public static int arrowShaftLength

The length of the shaft when formed to make an arrow

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

public static int autoCompleteTextViewStyle

Default AutoCompleteTextView style.

public static int autoSizeMaxTextSize

The maximum text size constraint to be used when auto-sizing text.

public static int autoSizeMinTextSize

The minimum text size constraint to be used when auto-sizing text.

public static int autoSizePresetSizes

Resource array of dimensions to be used in conjunction with autoSizeTextType set to uniform.

public static int autoSizeStepGranularity

Specify the auto-size step size if autoSizeTextType is set to uniform.

public static int autoSizeTextType

Specify the type of auto-size.

public static int background

Specifies a background drawable for the action bar.

public static int backgroundColor

Defines the background color.

public static int backgroundDrawable

Defines the drawable to be used as a background.

public static int backgroundSplit

Specifies a background drawable for the bottom component of a split action bar.

public static int backgroundStacked

Specifies a background drawable for a second stacked row of the action bar.

public static int backgroundTint

Tint to apply to the background.

public static int backgroundTintMode

Blending mode used to apply the background tint.

public static int barLength

The length of the bars when they are parallel to each other

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

public static int bezel_width

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".

public static int borderColor

Defines border color.

public static int borderDashGap

Defines dash gap for borders with style 'dashed'.

public static int borderDashWidth

Defines dash width for borders with style 'dashed'.

public static int borderRadius

Defines border radius.

public static int borderStyle

Defines border style.

public static int borderWidth

Defines stroke width for borders.

public static int borderlessButtonStyle

Style for buttons without an explicit border, often used in groups.

public static int buttonBarButtonStyle

Style for buttons within button bars

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

public static int buttonBarNegativeButtonStyle

Style for the "negative" buttons within button bars

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

public static int buttonBarNeutralButtonStyle

Style for the "neutral" buttons within button bars

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

public static int buttonBarPositiveButtonStyle

Style for the "positive" buttons within button bars

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

public static int buttonBarStyle

Style for button bars

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

public static int buttonCompat

Compat attr to load backported drawable types

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

public static int buttonGravity

Must be one or more (separated by '|') of the following constant values.

public static int buttonIconDimen

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

public static int buttonPanelSideLayout

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

public static int buttonRippleColor

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

public static int buttonStyle

Normal Button style.

public static int buttonStyleSmall

Small Button style.

public static int buttonTint

Tint to apply to the button drawable.

public static int buttonTintMode

Blending mode used to apply the button tint.

public static int checkBoxPreferenceStyle

Default style for CheckBoxPreference.

public static int checkMarkCompat

Compat attr to load backported drawable types

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

public static int checkMarkTint

Tint to apply to the check mark drawable.

public static int checkMarkTintMode

Blending mode used to apply the check mark tint.

public static int checkboxStyle

Default Checkbox style.

public static int checkedTextViewStyle

Default CheckedTextView style.

public static int circle_border_cap

Must be one of the following constant values.

public static int circle_border_color

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

public static int circle_border_width

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

public static int circle_color

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

public static int circle_padding

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

public static int circle_radius

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

public static int circle_radius_percent

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".

public static int circle_radius_pressed

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

public static int circle_radius_pressed_percent

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".

public static int circular_scrolling_gesture_enabled

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

public static int closeIcon

Close button icon

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

public static int closeItemLayout

Specifies a layout to use for the "close" item at the starting edge.

public static int collapseContentDescription

Text to set as the content description for the collapse button.

public static int collapseIcon

Icon drawable to use for the collapse button.

public static int color

The drawing color for the bars

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

public static int colorAccent

Bright complement to the primary branding color.

public static int colorBackgroundFloating

Default color of background imagery for floating components, ex.

public static int colorButtonNormal

The color applied to framework buttons in their normal state.

public static int colorControlActivated

The color applied to framework controls in their activated (ex.

public static int colorControlHighlight

The color applied to framework control highlights (ex.

public static int colorControlNormal

The color applied to framework controls in their normal state.

public static int colorError

Color used for error states and things that need to be drawn to the user's attention.

public static int colorPrimary

The primary branding color for the app.

public static int colorPrimaryDark

Dark variant of the primary branding color.

public static int colorSwitchThumbNormal

The color applied to framework switch thumbs in their normal state.

public static int color_sequence

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

public static int commitIcon

Commit icon shown in the query suggestion row

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

public static int contentDescription

The content description associated with the item.

public static int contentInsetEnd

Minimum inset for content views within a bar.

public static int contentInsetEndWithActions

Minimum inset for content views within a bar when actions from a menu are present.

public static int contentInsetLeft

Minimum inset for content views within a bar.

public static int contentInsetRight

Minimum inset for content views within a bar.

public static int contentInsetStart

Minimum inset for content views within a bar.

public static int contentInsetStartWithNavigation

Minimum inset for content views within a bar when a navigation button is present, such as the Up button.

public static int controlBackground

The background used by framework controls.

public static int coordinatorLayoutStyle

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

public static int customNavigationLayout

Specifies a layout for custom navigation.

public static int defaultQueryHint

Default query hint used when queryHint is undefined and the search view's SearchableInfo does not provide a hint.

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 dialogCornerRadius

Preferred corner radius of dialogs.

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 dialogPreferredPadding

Preferred padding for dialog content.

public static int dialogTheme

Theme to use for dialogs spawned from this theme.

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 displayOptions

Options affecting how the action bar is displayed.

public static int divider

Specifies the drawable used for item dividers.

public static int dividerHorizontal

A drawable that may be used as a horizontal divider between visual elements.

public static int dividerPadding

Size of padding on either end of a divider.

public static int dividerVertical

A drawable that may be used as a vertical divider between visual elements.

public static int dotColor

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

public static int dotColorSelected

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

public static int dotFadeInDuration

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

public static int dotFadeOutDelay

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

public static int dotFadeOutDuration

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

public static int dotFadeWhenIdle

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

public static int dotRadius

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

public static int dotRadiusSelected

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

public static int dotShadowColor

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

public static int dotShadowDx

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

public static int dotShadowDy

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

public static int dotShadowRadius

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

public static int dotSpacing

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

public static int drawableBottomCompat

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

public static int drawableEndCompat

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

public static int drawableLeftCompat

Compound drawables allowing the use of vector drawable when running on older versions of the platform.

public static int drawableRightCompat

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

public static int drawableSize

The total size of the drawable

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

public static int drawableStartCompat

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

public static int drawableTint

Tint to apply to the compound (left, top, etc.) drawables.

public static int drawableTintMode

Blending mode used to apply the compound (left, top, etc.) drawables tint.

public static int drawableTopCompat

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

public static int drawerArrowStyle

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

public static int drawerLayoutStyle

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

public static int drawer_content

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

public static int drawer_title

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

public static int dropDownListViewStyle

ListPopupWindow compatibility

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

public static int dropdownListPreferredItemHeight

The preferred item height for dropdown lists.

public static int dropdownPreferenceStyle

Default style for DropDownPreference.

public static int editTextBackground

EditText background drawable.

public static int editTextColor

EditText text foreground color.

public static int editTextPreferenceStyle

Default style for EditTextPreference.

public static int editTextStyle

Default EditText style.

public static int elevation

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

public static int emojiCompatEnabled

Display the emoji if emojicompat has this character for emoji not on the system

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

public static int enableCopying

Whether the summary of this preference can be copied to the clipboard by long pressing on the preference.

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 expandActivityOverflowButtonDrawable

The drawable to show in the button for expanding the activities overflow popup.

public static int fastScrollEnabled

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

public static int fastScrollHorizontalThumbDrawable

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

public static int fastScrollHorizontalTrackDrawable

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

public static int fastScrollVerticalThumbDrawable

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

public static int fastScrollVerticalTrackDrawable

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

public static int firstBaselineToTopHeight

Distance from the top of the TextView to the first text baseline.

public static int font

The reference to the font file to be used.

public static int fontFamily

The attribute for the font family.

public static int fontProviderAuthority

The authority of the Font Provider to be used for the request.

public static int fontProviderCerts

The sets of hashes for the certificates the provider should be signed with.

public static int fontProviderFetchStrategy

The strategy to be used when fetching font data from a font provider in XML layouts.

public static int fontProviderFetchTimeout

The length of the timeout during fetching.

public static int fontProviderPackage

The package for the Font Provider to be used for the request.

public static int fontProviderQuery

The query to be sent over to the provider.

public static int fontProviderSystemFontFamily

Provides the system font family name to check before downloading the font.

public static int fontStyle

The style of the given font file.

public static int fontVariationSettings

The variation settings to be applied to the font.

public static int fontWeight

The weight of the given font file.

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 gapBetweenBars

The max gap between the bars when they are parallel to each other

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

public static int goIcon

Go button icon

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

public static int height

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

public static int hideOnContentScroll

Set true to hide the action bar on a vertical nested scroll of content.

public static int highlightColor

Defines highlight color.

public static int homeAsUpIndicator

Specifies a drawable to use for the 'home as up' indicator.

public static int homeLayout

Specifies a layout to use for the "home" section of the action bar.

public static int icon

Specifies the drawable used for the application icon.

public static int iconColor

Defines icon tint color.

public static int iconSpaceReserved

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

public static int iconTint

Tint to apply to the icon.

public static int iconTintMode

Blending mode used to apply the icon tint.

public static int iconifiedByDefault

The default state of the SearchView.

public static int imageButtonStyle

ImageButton background drawable.

public static int imageScaleMode

Must be one of the following constant values.

public static int image_circle_percentage

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

public static int image_horizontal_offcenter_percentage

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

public static int image_tint

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

public static int indeterminateProgressStyle

Specifies a style resource to use for an indeterminate progress spinner.

public static int initialActivityCount

The maximal number of items initially shown in the activity list.

public static int initialExpandedChildrenCount

The maximal number of children that are shown when the preference group is launched where the rest of the children will be hidden.

public static int isLightTheme

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

public static int isPreferenceVisible

Whether the Preference is visible.

public static int itemPadding

Specifies padding that should be applied to the left and right sides of system-provided items in the bar.

public static int key

The key to store the Preference value.

public static int keylines

A reference to an array of integers representing the locations of horizontal keylines in dp from the starting edge.

public static int lStar

Perceptual luminance applied to the base color.

public static int lastBaselineToBottomHeight

Distance from the bottom of the TextView to the last text baseline.

public static int layout

The layout to use for the search view.

public static int layoutManager

Class name of the Layout Manager to be used.

public static int layout_anchor

The id of an anchor view that this view should position relative to.

public static int layout_anchorGravity

Specifies how an object should position relative to an anchor, on both the X and Y axes, within its parent's bounds.

public static int layout_aspectRatio

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".

public static int layout_behavior

The class name of a Behavior class defining special runtime behavior for this child view.

public static int layout_box

Must be one or more (separated by '|') of the following constant values.

public static int layout_dodgeInsetEdges

Specifies how this view dodges the inset edges of the CoordinatorLayout.

public static int layout_gravityRound

Must be one or more (separated by '|') of the following constant values.

public static int layout_heightPercent

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".

public static int layout_heightRound

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

public static int layout_insetEdge

Specifies how this view insets the CoordinatorLayout and make some other views dodge it.

public static int layout_keyline

The index of a keyline this view should position relative to.

public static int layout_marginBottomPercent

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".

public static int layout_marginBottomRound

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

public static int layout_marginEndPercent

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".

public static int layout_marginLeftPercent

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".

public static int layout_marginLeftRound

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

public static int layout_marginPercent

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".

public static int layout_marginRightPercent

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".

public static int layout_marginRightRound

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

public static int layout_marginRound

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

public static int layout_marginStartPercent

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".

public static int layout_marginTopPercent

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".

public static int layout_marginTopRound

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

public static int layout_widthPercent

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".

public static int layout_widthRound

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

public static int lineHeight

Explicit height between lines of text.

public static int listChoiceBackgroundIndicator

Drawable used as a background for selected list items.

public static int listChoiceIndicatorMultipleAnimated

Animated Drawable to use for multiple choice indicators.

public static int listChoiceIndicatorSingleAnimated

Animated Drawable to use for single choice indicators.

public static int listDividerAlertDialog

The list divider used in alert dialogs.

public static int listItemLayout

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

public static int listLayout

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

public static int listMenuViewStyle

Default menu-style ListView style.

public static int listPopupWindowStyle

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

public static int listPreferredItemHeight

The preferred list item height.

public static int listPreferredItemHeightLarge

A larger, more robust list item height.

public static int listPreferredItemHeightSmall

A smaller, sleeker list item height.

public static int listPreferredItemPaddingEnd

The preferred padding along the end edge of list items.

public static int listPreferredItemPaddingLeft

The preferred padding along the left edge of list items.

public static int listPreferredItemPaddingRight

The preferred padding along the right edge of list items.

public static int listPreferredItemPaddingStart

The preferred padding along the start edge of list items.

public static int logo

Specifies the drawable used for the application logo.

public static int logoDescription

A content description string to describe the appearance of the associated logo image.

public static int maxButtonHeight

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

public static int maxHeight

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

public static int maxTextSize

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

public static int maxWidth

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

public static int measureWithLargestChild

When set to true, all children with a weight will be considered having the minimum size of the largest child.

public static int menu

Menu resource to inflate to be shown in the toolbar

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

public static int min

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

public static int minTextSize

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

public static int multiChoiceItemLayout

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

public static int navigationContentDescription

Text to set as the content description for the navigation button located at the start of the toolbar.

public static int navigationIcon

Icon drawable to use for the navigation button located at the start of the toolbar.

public static int navigationMode

The type of navigation to use.

public static int navigation_style

Must be one of the following constant values.

public static int negativeButtonIcon

The icon for the negative button for the dialog.

public static int negativeButtonText

The negative button text for the dialog.

public static int nestedScrollViewStyle

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

public static int neutralButtonIcon

The icon for the neutral button for the dialog.

public static int neutralButtonText

The neutral button text for the dialog.

public static int numericModifiers

The numeric modifier key.

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 overlapAnchor

Whether the popup window should overlap its anchor view.

public static int paddingBottomNoButtons

Bottom padding to use when no buttons are present.

public static int paddingEnd

Sets the padding, in pixels, of the end edge; see R.attr.padding.

public static int paddingStart

Sets the padding, in pixels, of the start edge; see R.attr.padding.

public static int paddingTopNoTitle

Top padding to use when no title is present.

public static int pageIndicatorDotColor

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

public static int pageIndicatorDotColorSelected

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

public static int pageIndicatorDotFadeInDuration

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

public static int pageIndicatorDotFadeOutDelay

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

public static int pageIndicatorDotFadeOutDuration

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

public static int pageIndicatorDotFadeWhenIdle

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

public static int pageIndicatorDotRadius

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

public static int pageIndicatorDotRadiusSelected

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

public static int pageIndicatorDotShadowColor

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

public static int pageIndicatorDotShadowDx

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

public static int pageIndicatorDotShadowDy

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

public static int pageIndicatorDotShadowRadius

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

public static int pageIndicatorDotSpacing

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

public static int panelBackground

The background of a panel when it is inset from the left and right edges of the screen.

public static int panelMenuListTheme

Default Panel Menu style.

public static int panelMenuListWidth

Default Panel Menu width.

public static int peek_view

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

public static int persistent

Whether the Preference stores its value to the shared preferences.

public static int popupMenuStyle

Default PopupMenu style.

public static int popupTheme

Reference to a theme that should be used to inflate popups shown by widgets in the action bar.

public static int popupWindowStyle

Default PopupWindow style.

public static int positiveButtonIcon

The icon for the positive button for the dialog.

public static int positiveButtonText

The positive button text for the dialog.

public static int preferenceCategoryStyle

Default style for PreferenceCategory.

public static int preferenceCategoryTitleTextAppearance

The preferred TextAppearance for the title displayed in a PreferenceCategory.

public static int preferenceCategoryTitleTextColor

The preferred color for the title displayed in a 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 "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

public static int preferenceFragmentStyle

Default style for Headers pane in PreferenceActivity.

public static int preferenceInformationStyle

Default style for informational Preference.

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 "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

public static int preserveIconSpacing

Whether space should be reserved in layout when an icon is missing.

public static int pressedButtonTranslationZ

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

public static int progressBarPadding

Specifies the horizontal padding on either end for an embedded progress bar.

public static int progressBarStyle

Specifies a style resource to use for an embedded progress bar.

public static int queryBackground

Background for the section containing the search query

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

public static int queryHint

An optional user-defined query hint string to be displayed in the empty query field.

public static int queryPatterns

Resource reference to the string array of query patterns for a custom capability.

public static int radioButtonStyle

Default RadioButton style.

public static int rangedValuePrimaryColor

Defines main color for ranged value indicator.

public static int rangedValueProgressHidden

Defines visibility for ranged value indicator.

public static int rangedValueRingWidth

Defines stroke width for ranged value indicator.

public static int rangedValueSecondaryColor

Defines secondary color for ranged value indicator.

public static int ratingBarStyle

Default RatingBar style.

public static int ratingBarStyleIndicator

Indicator RatingBar style.

public static int ratingBarStyleSmall

Small indicator RatingBar style.

public static int rectLayout

Resource id of a layout to use in rectangular containers

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

public static int recyclerViewStyle

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

public static int reverseLayout

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

public static int roundLayout

Resource id of a layout to use in round containers

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

public static int scroll_degrees_per_screen

May be a floating point value, such as "1.2".

public static int searchHintIcon

Search icon displayed as a text field hint

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

public static int searchIcon

Search icon

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

public static int searchViewStyle

Style for the search query widget.

public static int seekBarIncrement

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

public static int seekBarPreferenceStyle

Default style for seekbar preferences.

public static int seekBarStyle

Default SeekBar style.

public static int selectable

Whether the Preference is selectable.

public static int selectableItemBackground

A style that may be applied to buttons or other selectable items that should react to pressed and focus states, but that do not have a clear visual border along the edges.

public static int selectableItemBackgroundBorderless

Background drawable for borderless standalone items that need focus/pressed states.

public static int shadow_width

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

public static int shortcutMatchRequired

Indicates whether a parameter in a capability template can only contain a matched shortcut id and not an arbitrary string.

public static int shouldDisableView

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

public static int showAsAction

How this item should display in the Action Bar, if present.

public static int showDialogWhenTurningOff

Specifies if the dialog should be shown when the switch is turning off.

public static int showDialogWhenTurningOn

Specifies if the dialog should be shown when the switch is turning on.

public static int showDividers

Setting for which dividers to show.

public static int showNegativeDialogButton

Specifies if the negative button should be shown for the dialog.

public static int showPositiveDialogButton

Specifies if the positive button should be shown for the dialog.

public static int showSeekBarValue

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

public static int showText

Whether to draw on/off text.

public static int showTitle

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

public static int show_overflow_in_peek

Shows the overflow icon in the peek view rather than the first action's icon.

public static int singleChoiceItemLayout

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

public static int singleLineTitle

Whether to use single line for the preference title text.

public static int spanCount

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

public static int spinBars

Whether bars should rotate or not during transition

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

public static int spinnerDropDownItemStyle

Default Spinner style.

public static int spinnerStyle

Default Spinner style.

public static int splitTrack

Whether to split the track and leave a gap for the thumb drawable.

public static int square_dimen

Must be one of the following constant values.

public static int srcCompat

Sets a drawable as the content of this ImageView.

public static int stackFromEnd

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

public static int state_above_anchor

State identifier indicating the popup will be above the anchor.

public static int statusBarBackground

Drawable to display behind the status bar when the view is set to draw behind it.

public static int subMenuArrow

Drawable for the arrow icon indicating a particular item is a submenu.

public static int submitBackground

Background for the section containing the action (e.g.

public static int subtitle

Specifies subtitle text used for navigationMode="normal"

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

public static int subtitleTextAppearance

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

public static int subtitleTextColor

A color to apply to the subtitle string.

public static int subtitleTextStyle

Specifies a style to use for subtitle text.

public static int suggestionRowLayout

Layout for query suggestion rows

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

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 swipeRefreshLayoutProgressSpinnerBackgroundColor

Background color for SwipeRefreshLayout progress spinner.

public static int switchMinWidth

Minimum width for the switch component

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

public static int switchPadding

Minimum space between the switch and caption text

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

public static int switchPreferenceCompatStyle

Default style for switch compat preferences.

public static int switchPreferenceStyle

Default style for switch preferences.

public static int switchStyle

Default style for the Switch widget.

public static int switchTextAppearance

TextAppearance style for text displayed on the switch thumb.

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 textAllCaps

Present the text in ALL CAPS.

public static int textAppearanceLargePopupMenu

Text color, typeface, size, and style for the text inside of a popup menu.

public static int textAppearanceListItem

The preferred TextAppearance for the primary text of list items.

public static int textAppearanceListItemSecondary

The preferred TextAppearance for the secondary text of list items.

public static int textAppearanceListItemSmall

The preferred TextAppearance for the primary text of small list items.

public static int textAppearancePopupMenuHeader

Text color, typeface, size, and style for header text inside of a popup menu.

public static int textAppearanceSearchResultSubtitle

Text color, typeface, size, and style for system search result subtitle.

public static int textAppearanceSearchResultTitle

Text color, typeface, size, and style for system search result title.

public static int textAppearanceSmallPopupMenu

Text color, typeface, size, and style for small text inside of a popup menu.

public static int textColor

Defines text color for short text and long text fields.

public static int textColorAlertDialogListItem

Color of list item text in alert dialogs.

public static int textColorSearchUrl

Text color for urls in search suggestions, used by things like global search

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

public static int textLocale

Set the textLocale by a comma-separated language tag string, for example "ja-JP,zh-CN".

public static int textSize

Defines text size for short text and long text fields.

public static int textTypeface

Defines typeface for short text and long text fields.

public static int theme

Deprecated.

public static int thickness

The thickness (stroke size) for the bar paint

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

public static int thumbTextPadding

Amount of padding on either side of text within the switch thumb.

public static int thumbTint

Tint to apply to the thumb drawable.

public static int thumbTintMode

Blending mode used to apply the thumb tint.

public static int tickMark

Drawable displayed at each progress position on a seekbar.

public static int tickMarkTint

Tint to apply to the tick mark drawable.

public static int tickMarkTintMode

Blending mode used to apply the tick mark tint.

public static int tint

Tint to apply to the image source.

public static int tintMode

Blending mode used to apply the image source tint.

public static int title

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

public static int titleColor

Defines text color for short title and long title fields.

public static int titleMargin

Specifies extra space on the left, start, right and end sides of the toolbar's title.

public static int titleMarginBottom

Specifies extra space on the bottom side of the toolbar's title.

public static int titleMarginEnd

Specifies extra space on the end side of the toolbar's title.

public static int titleMarginStart

Specifies extra space on the start side of the toolbar's title.

public static int titleMarginTop

Specifies extra space on the top side of the toolbar's title.

public static int titleMargins

This field is deprecated. Use titleMargin

public static int titleSize

Defines text size for short title and long title fields.

public static int titleTextAppearance

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

public static int titleTextColor

A color to apply to the title string.

public static int titleTextStyle

Specifies a style to use for title text.

public static int titleTypeface

Defines typeface for short title and long title fields.

public static int toolbarNavigationButtonStyle

Default Toolar NavigationButtonStyle

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

public static int toolbarStyle

Default Toolbar style.

public static int tooltipForegroundColor

Foreground color to use for tooltips

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

public static int tooltipFrameBackground

Background to use for tooltips

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

public static int tooltipText

The tooltip text associated with the item.

public static int track

Drawable to use as the "track" that the switch thumb slides within.

public static int trackTint

Tint to apply to the track.

public static int trackTintMode

Blending mode used to apply the track tint.

public static int ttcIndex

The index of the font in the tcc font file.

public static int update_interval

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

public static int updatesContinuously

Flag indicating whether the SeekBarPreference should continuously save the Seekbar value while the Seekbar is being dragged.

public static int useSimpleSummaryProvider

Whether the preference should automatically set its summary to the value saved for the preference, and update the summary when the value is changed.

public static int viewInflaterClass

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

public static int voiceIcon

Voice button icon

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

public static int widgetLayout

The layout for the controllable widget portion of a Preference.

public static int windowActionBar

Flag indicating whether this window should have an Action Bar in place of the usual title bar.

public static int windowActionBarOverlay

Flag indicating whether this window's Action Bar should overlay application content.

public static int windowActionModeOverlay

Flag indicating whether action modes should overlay window content when there is not reserved space for their UI (such as an Action Bar).

public static int windowFixedHeightMajor

A fixed height for the window along the major axis of the screen, that is, when in portrait.

public static int windowFixedHeightMinor

A fixed height for the window along the minor axis of the screen, that is, when in landscape.

public static int windowFixedWidthMajor

A fixed width for the window along the major axis of the screen, that is, when in landscape.

public static int windowFixedWidthMinor

A fixed width for the window along the minor axis of the screen, that is, when in portrait.

public static int windowMinWidthMajor

The minimum width the window is allowed to be, along the major axis of the screen.

public static int windowMinWidthMinor

The minimum width the window is allowed to be, along the minor axis of the screen.

public static int windowNoTitle

Flag indicating whether there should be no title on this window.

Public constructors

attr()

Inherited methods

Fields

actionBarDivider

public static int actionBarDivider

Custom divider drawable to use for elements in the action bar.

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

actionBarItemBackground

public static int actionBarItemBackground

Custom item state list drawable background for action bar items.

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

actionBarPopupTheme

public static int actionBarPopupTheme

Reference to a theme that should be used to inflate popups shown by widgets in the action bar.

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

actionBarSize

public static int actionBarSize

Size of the Action Bar, including the contextual bar used to present Action Modes.

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

Must be one of the following constant values.

ConstantValueDescription
wrap_content0

actionBarSplitStyle

public static int actionBarSplitStyle

Reference to a style for the split Action Bar. This style controls the split component that holds the menu/action buttons. actionBarStyle is still used for the primary bar.

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

actionBarStyle

public static int actionBarStyle

Reference to a style for the Action Bar

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

actionBarTabBarStyle

public static int actionBarTabBarStyle

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

actionBarTabStyle

public static int actionBarTabStyle

Default style for tabs within an action bar

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

actionBarTabTextStyle

public static int actionBarTabTextStyle

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

actionBarTheme

public static int actionBarTheme

Reference to a theme that should be used to inflate the action bar. This will be inherited by any widget inflated into the action bar.

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

actionBarWidgetTheme

public static int actionBarWidgetTheme

Reference to a theme that should be used to inflate widgets and layouts destined for the action bar. Most of the time this will be a reference to the current theme, but when the action bar has a significantly different contrast profile than the rest of the activity the difference can become important. If this is set to @null the current theme will be used.

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

actionButtonStyle

public static int actionButtonStyle

Default action button style.

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

actionDropDownStyle

public static int actionDropDownStyle

Default ActionBar dropdown style.

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

actionLayout

public static int actionLayout

An optional layout to be used as an action view. See MenuItem.setActionView(android.view.View) for more info.

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

actionMenuTextAppearance

public static int actionMenuTextAppearance

TextAppearance style that will be applied to text that appears within action menu items.

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

actionMenuTextColor

public static int actionMenuTextColor

Color for text that appears within action menu items.

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

actionModeBackground

public static int actionModeBackground

Background drawable to use for action mode UI

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

actionModeCloseButtonStyle

public static int actionModeCloseButtonStyle

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

actionModeCloseContentDescription

public static int actionModeCloseContentDescription

Content description to use for the close action mode button

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

actionModeCloseDrawable

public static int actionModeCloseDrawable

Drawable to use for the close action mode button

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

actionModeCopyDrawable

public static int actionModeCopyDrawable

Drawable to use for the Copy action button in Contextual Action Bar

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

actionModeCutDrawable

public static int actionModeCutDrawable

Drawable to use for the Cut action button in Contextual Action Bar

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

actionModeFindDrawable

public static int actionModeFindDrawable

Drawable to use for the Find action button in WebView selection action modes

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

actionModePasteDrawable

public static int actionModePasteDrawable

Drawable to use for the Paste action button in Contextual Action Bar

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

actionModePopupWindowStyle

public static int actionModePopupWindowStyle

PopupWindow style to use for action modes when showing as a window overlay.

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

actionModeSelectAllDrawable

public static int actionModeSelectAllDrawable

Drawable to use for the Select all action button in Contextual Action Bar

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

actionModeShareDrawable

public static int actionModeShareDrawable

Drawable to use for the Share action button in WebView selection action modes

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

actionModeSplitBackground

public static int actionModeSplitBackground

Background drawable to use for action mode UI in the lower split bar

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

actionModeStyle

public static int actionModeStyle

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

actionModeTheme

public static int actionModeTheme

Reference to a theme that should be used to inflate the action bar in action mode. This will be inherited by any widget inflated into the action bar.

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

actionModeWebSearchDrawable

public static int actionModeWebSearchDrawable

Drawable to use for the Web Search action button in WebView selection action modes

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

actionOverflowButtonStyle

public static int actionOverflowButtonStyle

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

actionOverflowMenuStyle

public static int actionOverflowMenuStyle

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

actionProviderClass

public static int actionProviderClass

The name of an optional ActionProvider class to instantiate an action view and perform operations such as default action for that menu item. See MenuItem.setActionProvider(android.view.ActionProvider) for more info.

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

actionViewClass

public static int actionViewClass

The name of an optional View class to instantiate and use as an action view. See MenuItem.setActionView(android.view.View) for more info.

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

action_menu

public static int action_menu

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

activityChooserViewStyle

public static int activityChooserViewStyle

Default ActivityChooserView style.

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

adjustable

public static int adjustable

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

alertDialogButtonGroupStyle

public static int alertDialogButtonGroupStyle

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

alertDialogCenterButtons

public static int alertDialogCenterButtons

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

alertDialogStyle

public static int alertDialogStyle

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

alertDialogTheme

public static int alertDialogTheme

Theme to use for alert dialogs spawned from this theme.

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

allowDividerAbove

public static int allowDividerAbove

Whether the preference allows displaying divider on top

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

allowDividerAfterLastItem

public static int allowDividerAfterLastItem

Whether a divider is allowed to draw after the last item

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

allowDividerBelow

public static int allowDividerBelow

Whether the preference allows displaying divider below it

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

allowStacking

public static int allowStacking

Whether to automatically stack the buttons when there is not enough space to lay them out side-by-side.

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

alpha

public static int alpha

Alpha multiplier applied to the base color.

May be a floating point value, such as "1.2".

alphabeticModifiers

public static int alphabeticModifiers

The alphabetic modifier key. This is the modifier when using a keyboard with alphabetic keys. The values should be kept in sync with KeyEvent

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
ALT2
CTRL1000
FUNCTION8
META10000
SHIFT1
SYM4

arrowHeadLength

public static int arrowHeadLength

The length of the arrow head when formed to make an arrow

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

arrowShaftLength

public static int arrowShaftLength

The length of the shaft when formed to make an arrow

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

autoCompleteTextViewStyle

public static int autoCompleteTextViewStyle

Default AutoCompleteTextView style.

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

autoSizeMaxTextSize

public static int autoSizeMaxTextSize

The maximum text size constraint to be used when auto-sizing text.

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

autoSizeMinTextSize

public static int autoSizeMinTextSize

The minimum text size constraint to be used when auto-sizing text.

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

autoSizePresetSizes

public static int autoSizePresetSizes

Resource array of dimensions to be used in conjunction with autoSizeTextType set to uniform. Overrides autoSizeStepGranularity if set.

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

autoSizeStepGranularity

public static int autoSizeStepGranularity

Specify the auto-size step size if autoSizeTextType is set to uniform. The default is 1px. Overwrites autoSizePresetSizes if set.

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

autoSizeTextType

public static int autoSizeTextType

Specify the type of auto-size. Note that this feature is not supported by EditText, works only for TextView.

Must be one of the following constant values.

ConstantValueDescription
none0No auto-sizing (default).
uniform1Uniform horizontal and vertical text size scaling to fit within the container.

background

public static int background

Specifies a background drawable for the action bar.

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

backgroundColor

public static int backgroundColor

Defines the background color.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

backgroundDrawable

public static int backgroundDrawable

Defines the drawable to be used as a background. Corners of the drawable will be rounded if border radius of the complication drawable is non-zero. Even if a background drawable is set, background color will still be used to fill background of the complication before drawing the drawable.

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

backgroundSplit

public static int backgroundSplit

Specifies a background drawable for the bottom component of a split action bar.

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

backgroundStacked

public static int backgroundStacked

Specifies a background drawable for a second stacked row of the action bar.

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

backgroundTint

public static int backgroundTint

Tint to apply to the background.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

backgroundTintMode

public static int backgroundTintMode

Blending mode used to apply the background tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and icon color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

barLength

public static int barLength

The length of the bars when they are parallel to each other

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

bezel_width

public static int bezel_width

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.

borderColor

public static int borderColor

Defines border color.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

borderDashGap

public static int borderDashGap

Defines dash gap for borders with style 'dashed'.

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

borderDashWidth

public static int borderDashWidth

Defines dash width for borders with style 'dashed'.

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

borderRadius

public static int borderRadius

Defines border radius. Padding will be applied to the content to avoid overflow if border radius is not zero.

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

borderStyle

public static int borderStyle

Defines border style.

Must be one of the following constant values.

ConstantValueDescription
dashed2Draw dashed borders. borderDashWidth and borderDashGap attributes can be used to customize dashed borders.
none0Do not draw any borders.
solid1Draw solid borders.

borderWidth

public static int borderWidth

Defines stroke width for borders.

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

borderlessButtonStyle

public static int borderlessButtonStyle

Style for buttons without an explicit border, often used in groups.

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

buttonBarButtonStyle

public static int buttonBarButtonStyle

Style for buttons within button bars

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

buttonBarNegativeButtonStyle

public static int buttonBarNegativeButtonStyle

Style for the "negative" buttons within button bars

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

buttonBarNeutralButtonStyle

public static int buttonBarNeutralButtonStyle

Style for the "neutral" buttons within button bars

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

buttonBarPositiveButtonStyle

public static int buttonBarPositiveButtonStyle

Style for the "positive" buttons within button bars

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

buttonBarStyle

public static int buttonBarStyle

Style for button bars

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

buttonCompat

public static int buttonCompat

Compat attr to load backported drawable types

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

buttonGravity

public static int buttonGravity

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
top30Push object to the top of its container, not changing its size.

buttonIconDimen

public static int buttonIconDimen

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

buttonPanelSideLayout

public static int buttonPanelSideLayout

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

buttonRippleColor

public static int buttonRippleColor

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

buttonStyle

public static int buttonStyle

Normal Button style.

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

buttonStyleSmall

public static int buttonStyleSmall

Small Button style.

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

buttonTint

public static int buttonTint

Tint to apply to the button drawable.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

buttonTintMode

public static int buttonTintMode

Blending mode used to apply the button tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and icon color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

checkBoxPreferenceStyle

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

checkMarkCompat

public static int checkMarkCompat

Compat attr to load backported drawable types

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

checkMarkTint

public static int checkMarkTint

Tint to apply to the check mark drawable.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

checkMarkTintMode

public static int checkMarkTintMode

Blending mode used to apply the check mark tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and icon color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

checkboxStyle

public static int checkboxStyle

Default Checkbox style.

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

checkedTextViewStyle

public static int checkedTextViewStyle

Default CheckedTextView style.

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

circle_border_cap

public static int circle_border_cap

Must be one of the following constant values.

ConstantValueDescription
butt0
round1
square2

circle_border_color

public static int circle_border_color

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

circle_border_width

public static int circle_border_width

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

circle_color

public static int circle_color

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

circle_padding

public static int circle_padding

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

circle_radius

public static int circle_radius

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

circle_radius_percent

public static int circle_radius_percent

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.

circle_radius_pressed

public static int circle_radius_pressed

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

circle_radius_pressed_percent

public static int circle_radius_pressed_percent

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.

circular_scrolling_gesture_enabled

public static int circular_scrolling_gesture_enabled

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

closeIcon

public static int closeIcon

Close button icon

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

closeItemLayout

public static int closeItemLayout

Specifies a layout to use for the "close" item at the starting edge.

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

collapseContentDescription

public static int collapseContentDescription

Text to set as the content description for the collapse button.

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

collapseIcon

public static int collapseIcon

Icon drawable to use for the collapse button.

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

color

public static int color

The drawing color for the bars

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

colorAccent

public static int colorAccent

Bright complement to the primary branding color. By default, this is the color applied to framework controls (via colorControlActivated).

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

colorBackgroundFloating

public static int colorBackgroundFloating

Default color of background imagery for floating components, ex. dialogs, popups, and cards.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

colorButtonNormal

public static int colorButtonNormal

The color applied to framework buttons in their normal state.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

colorControlActivated

public static int colorControlActivated

The color applied to framework controls in their activated (ex. checked) state.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

colorControlHighlight

public static int colorControlHighlight

The color applied to framework control highlights (ex. ripples, list selectors).

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

colorControlNormal

public static int colorControlNormal

The color applied to framework controls in their normal state.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

colorError

public static int colorError

Color used for error states and things that need to be drawn to the user's attention.

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

colorPrimary

public static int colorPrimary

The primary branding color for the app. By default, this is the color applied to the action bar background.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

colorPrimaryDark

public static int colorPrimaryDark

Dark variant of the primary branding color. By default, this is the color applied to the status bar (via statusBarColor) and navigation bar (via navigationBarColor).

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

colorSwitchThumbNormal

public static int colorSwitchThumbNormal

The color applied to framework switch thumbs in their normal state.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

color_sequence

public static int color_sequence

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

commitIcon

public static int commitIcon

Commit icon shown in the query suggestion row

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

contentDescription

public static int contentDescription

The content description associated with the item.

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

contentInsetEnd

public static int contentInsetEnd

Minimum inset for content views within a bar. Navigation buttons and menu views are excepted. Only valid for some themes and configurations.

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

contentInsetEndWithActions

public static int contentInsetEndWithActions

Minimum inset for content views within a bar when actions from a menu are present. Only valid for some themes and configurations.

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

contentInsetLeft

public static int contentInsetLeft

Minimum inset for content views within a bar. Navigation buttons and menu views are excepted. Only valid for some themes and configurations.

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

contentInsetRight

public static int contentInsetRight

Minimum inset for content views within a bar. Navigation buttons and menu views are excepted. Only valid for some themes and configurations.

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

contentInsetStart

public static int contentInsetStart

Minimum inset for content views within a bar. Navigation buttons and menu views are excepted. Only valid for some themes and configurations.

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

contentInsetStartWithNavigation

public static int contentInsetStartWithNavigation

Minimum inset for content views within a bar when a navigation button is present, such as the Up button. Only valid for some themes and configurations.

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

controlBackground

public static int controlBackground

The background used by framework controls.

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

coordinatorLayoutStyle

public static int coordinatorLayoutStyle

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

customNavigationLayout

public static int customNavigationLayout

Specifies a layout for custom navigation. Overrides navigationMode.

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

defaultQueryHint

public static int defaultQueryHint

Default query hint used when queryHint is undefined and the search view's SearchableInfo does not provide a hint.

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

defaultValue

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.

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

public static 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;

dialogCornerRadius

public static int dialogCornerRadius

Preferred corner radius of dialogs.

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

dialogIcon

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

dialogLayout

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

dialogMessage

public static 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;

dialogPreferenceStyle

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

dialogPreferredPadding

public static int dialogPreferredPadding

Preferred padding for dialog content.

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

dialogTheme

public static int dialogTheme

Theme to use for dialogs spawned from this theme.

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

dialogTitle

public static 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;

disableDependentsState

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

displayOptions

public static int displayOptions

Options affecting how the action bar is displayed.

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
disableHome20
homeAsUp4
none0
showCustom10
showHome2
showTitle8
useLogo1

divider

public static int divider

Specifies the drawable used for item dividers.

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

dividerHorizontal

public static int dividerHorizontal

A drawable that may be used as a horizontal divider between visual elements.

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

dividerPadding

public static int dividerPadding

Size of padding on either end of a divider.

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

dividerVertical

public static int dividerVertical

A drawable that may be used as a vertical divider between visual elements.

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

dotColor

public static int dotColor

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

dotColorSelected

public static int dotColorSelected

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

dotFadeInDuration

public static int dotFadeInDuration

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

dotFadeOutDelay

public static int dotFadeOutDelay

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

dotFadeOutDuration

public static int dotFadeOutDuration

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

dotFadeWhenIdle

public static int dotFadeWhenIdle

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

dotRadius

public static int dotRadius

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

dotRadiusSelected

public static int dotRadiusSelected

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

dotShadowColor

public static int dotShadowColor

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

dotShadowDx

public static int dotShadowDx

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

dotShadowDy

public static int dotShadowDy

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

dotShadowRadius

public static int dotShadowRadius

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

dotSpacing

public static int dotSpacing

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

drawableBottomCompat

public static int drawableBottomCompat

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

drawableEndCompat

public static int drawableEndCompat

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

drawableLeftCompat

public static int drawableLeftCompat

Compound drawables allowing the use of vector drawable when running on older versions of the platform.

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

drawableRightCompat

public static int drawableRightCompat

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

drawableSize

public static int drawableSize

The total size of the drawable

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

drawableStartCompat

public static int drawableStartCompat

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

drawableTint

public static int drawableTint

Tint to apply to the compound (left, top, etc.) drawables.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

drawableTintMode

public static int drawableTintMode

Blending mode used to apply the compound (left, top, etc.) drawables tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

drawableTopCompat

public static int drawableTopCompat

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

drawerArrowStyle

public static int drawerArrowStyle

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

drawerLayoutStyle

public static int drawerLayoutStyle

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

drawer_content

public static int drawer_content

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

drawer_title

public static int drawer_title

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

public static int dropDownListViewStyle

ListPopupWindow compatibility

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

public static int dropdownListPreferredItemHeight

The preferred item height for dropdown lists.

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

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

editTextBackground

public static int editTextBackground

EditText background drawable.

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

editTextColor

public static int editTextColor

EditText text foreground color.

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

editTextPreferenceStyle

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

editTextStyle

public static int editTextStyle

Default EditText style.

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

elevation

public static int elevation

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

emojiCompatEnabled

public static int emojiCompatEnabled

Display the emoji if emojicompat has this character for emoji not on the system

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

enableCopying

public static int enableCopying

Whether the summary of this preference can be copied to the clipboard by long pressing on the preference. By default, this is set to false.

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

enabled

public static int enabled

Whether the Preference is enabled.

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

entries

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

entryValues

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

expandActivityOverflowButtonDrawable

public static int expandActivityOverflowButtonDrawable

The drawable to show in the button for expanding the activities overflow popup. Note: Clients would like to set this drawable as a clue about the action the chosen activity will perform. For example, if share activity is to be chosen the drawable should give a clue that sharing is to be performed.

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

fastScrollEnabled

public static int fastScrollEnabled

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

fastScrollHorizontalThumbDrawable

public static int fastScrollHorizontalThumbDrawable

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

fastScrollHorizontalTrackDrawable

public static int fastScrollHorizontalTrackDrawable

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

fastScrollVerticalThumbDrawable

public static int fastScrollVerticalThumbDrawable

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

fastScrollVerticalTrackDrawable

public static int fastScrollVerticalTrackDrawable

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

firstBaselineToTopHeight

public static int firstBaselineToTopHeight

Distance from the top of the TextView to the first text baseline. If set, this overrides the value set for paddingTop.

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

font

public static int font

The reference to the font file to be used. This should be a file in the res/font folder and should therefore have an R reference value. E.g. @font/myfont

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

fontFamily

public static int fontFamily

The attribute for the font family.

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

fontProviderAuthority

public static int fontProviderAuthority

The authority of the Font Provider to be used for the request.

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

fontProviderCerts

public static int fontProviderCerts

The sets of hashes for the certificates the provider should be signed with. This is used to verify the identity of the provider, and is only required if the provider is not part of the system image. This value may point to one list or a list of lists, where each individual list represents one collection of signature hashes. Refer to your font provider's documentation for these values.

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

fontProviderFetchStrategy

public static int fontProviderFetchStrategy

The strategy to be used when fetching font data from a font provider in XML layouts. This attribute is ignored when the resource is loaded from code, as it is equivalent to the choice of API between ResourcesCompat.getFont(Context, int) (blocking) and ResourcesCompat.getFont(Context, int, FontCallback, Handler) (async).

Must be one of the following constant values.

ConstantValueDescription
async1The async font fetch works as follows. First, check the local cache, then if the requeted font is not cached, trigger a request the font and continue with layout inflation. Once the font fetch succeeds, the target text view will be refreshed with the downloaded font data. The fontProviderFetchTimeout will be ignored if async loading is specified.
blocking0The blocking font fetch works as follows. First, check the local cache, then if the requested font is not cached, request the font from the provider and wait until it is finished. You can change the length of the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the default typeface will be used instead.

fontProviderFetchTimeout

public static int fontProviderFetchTimeout

The length of the timeout during fetching.

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

Must be one of the following constant values.

ConstantValueDescription
foreverffffffffA special value for the timeout. In this case, the blocking font fetching will not timeout and wait until a reply is received from the font provider.

fontProviderPackage

public static int fontProviderPackage

The package for the Font Provider to be used for the request. This is used to verify the identity of the provider.

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

fontProviderQuery

public static int fontProviderQuery

The query to be sent over to the provider. Refer to your font provider's documentation on the format of this string.

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

fontProviderSystemFontFamily

public static int fontProviderSystemFontFamily

Provides the system font family name to check before downloading the font. For example if the fontProviderQuery asked for "Sans Serif", it is possible to define fontProviderSystemFontFamily as "sans-serif" to tell the system to use "sans-serif" font family if it exists on the system.

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

fontStyle

public static int fontStyle

The style of the given font file. This will be used when the font is being loaded into the font stack and will override any style information in the font's header tables. If unspecified, the value in the font's header tables will be used.

Must be one of the following constant values.

ConstantValueDescription
italic1
normal0

fontVariationSettings

public static int fontVariationSettings

The variation settings to be applied to the font. The string should be in the following format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be used, or the font used does not support variation settings, this attribute needs not be specified.

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

fontWeight

public static int fontWeight

The weight of the given font file. This will be used when the font is being loaded into the font stack and will override any weight information in the font's header tables. Must be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most common values are 400 for regular weight and 700 for bold weight. If unspecified, the value in the font's header tables will be used.

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

fragment

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.

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

gapBetweenBars

public static int gapBetweenBars

The max gap between the bars when they are parallel to each other

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

goIcon

public static int goIcon

Go button icon

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

height

public static int 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).

hideOnContentScroll

public static int hideOnContentScroll

Set true to hide the action bar on a vertical nested scroll of content.

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

highlightColor

public static int highlightColor

Defines highlight color.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

homeAsUpIndicator

public static int homeAsUpIndicator

Specifies a drawable to use for the 'home as up' indicator.

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

homeLayout

public static int homeLayout

Specifies a layout to use for the "home" section of the action bar.

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

icon

public static int icon

Specifies the drawable used for the application icon.

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

iconColor

public static int iconColor

Defines icon tint color.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

iconSpaceReserved

public static int iconSpaceReserved

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

iconTint

public static int iconTint

Tint to apply to the icon.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

iconTintMode

public static int iconTintMode

Blending mode used to apply the icon tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and icon color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the icon with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the icon, but with the icon’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the icon. The icon’s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the icon. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

iconifiedByDefault

public static int iconifiedByDefault

The default state of the SearchView. If true, it will be iconified when not in use and expanded when clicked.

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

imageButtonStyle

public static int imageButtonStyle

ImageButton background drawable.

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

imageScaleMode

public static int imageScaleMode

Must be one of the following constant values.

ConstantValueDescription
center1
fit0

image_circle_percentage

public static int image_circle_percentage

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

image_horizontal_offcenter_percentage

public static int image_horizontal_offcenter_percentage

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

image_tint

public static int image_tint

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

indeterminateProgressStyle

public static int indeterminateProgressStyle

Specifies a style resource to use for an indeterminate progress spinner.

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

initialActivityCount

public static int initialActivityCount

The maximal number of items initially shown in the activity list.

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

initialExpandedChildrenCount

public static int initialExpandedChildrenCount

The maximal number of children that are shown when the preference group is launched where the rest of the children will be hidden. If some children are hidden an expand button will be provided to show all the hidden children. Any child in any level of the hierarchy that is also a preference group (e.g. preference category) will not be counted towards the limit. But instead the children of such group will be counted. By default, all children will be shown, so the default value of this attribute is equal to Integer.MAX_VALUE. The group should have a key defined if an expandable preference is present to correctly persist state.

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

isLightTheme

public static int isLightTheme

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

isPreferenceVisible

public static int isPreferenceVisible

Whether the Preference is visible. By default, this is set to true.

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

itemPadding

public static int itemPadding

Specifies padding that should be applied to the left and right sides of system-provided items in the bar.

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

key

public static 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;

keylines

public static int keylines

A reference to an array of integers representing the locations of horizontal keylines in dp from the starting edge. Child views can refer to these keylines for alignment using layout_keyline="index" where index is a 0-based index into this array.

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

lStar

public static int lStar

Perceptual luminance applied to the base color. From 0 to 100.

May be a floating point value, such as "1.2".

lastBaselineToBottomHeight

public static int lastBaselineToBottomHeight

Distance from the bottom of the TextView to the last text baseline. If set, this overrides the value set for paddingBottom.

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

layout

public static int layout

The layout to use for the search view.

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

layoutManager

public static int layoutManager

Class name of the Layout Manager to be used.

The class must ext androidx.recyclerview.widget.RecyclerViewView$LayoutManager and have either a default constructor or constructor with the signature (android.content.Context, android.util.AttributeSet, int, int).

If the name starts with a '.', application package is prefixed. Else, if the name contains a '.', the classname is assumed to be a full class name. Else, the recycler view package naandroidx.appcompat.widgetdget) is prefixed.

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

layout_anchor

public static int layout_anchor

The id of an anchor view that this view should position relative to.

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

layout_anchorGravity

public static int layout_anchorGravity

Specifies how an object should position relative to an anchor, on both the X and Y axes, within its parent's bounds.

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional option that can be set to have the left and/or right edges of the child clipped to its container's bounds. The clip will be based on the horizontal gravity: a left gravity will clip the right edge, a right gravity will clip the left edge, and neither will clip both edges.
clip_vertical80Additional option that can be set to have the top and/or bottom edges of the child clipped to its container's bounds. The clip will be based on the vertical gravity: a top gravity will clip the bottom edge, a bottom gravity will clip the top edge, and neither will clip both edges.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push object to the top of its container, not changing its size.

layout_aspectRatio

public static int layout_aspectRatio

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.

layout_behavior

public static int layout_behavior

The class name of a Behavior class defining special runtime behavior for this child view.

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

layout_box

public static int layout_box

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
allf
bottom8
left1
right4
top2

layout_dodgeInsetEdges

public static int layout_dodgeInsetEdges

Specifies how this view dodges the inset edges of the CoordinatorLayout.

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge the top inset edge.

layout_gravityRound

public static int layout_gravityRound

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional option that can be set to have the left and/or right edges of the child clipped to its container's bounds. The clip will be based on the horizontal gravity: a left gravity will clip the right edge, a right gravity will clip the left edge, and neither will clip both edges.
clip_vertical80Additional option that can be set to have the top and/or bottom edges of the child clipped to its container's bounds. The clip will be based on the vertical gravity: a top gravity will clip the bottom edge, a bottom gravity will clip the top edge, and neither will clip both edges.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push object to the top of its container, not changing its size.

layout_heightPercent

public static int layout_heightPercent

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.

layout_heightRound

public static int layout_heightRound

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

layout_insetEdge

public static int layout_insetEdge

Specifies how this view insets the CoordinatorLayout and make some other views dodge it.

Must be one of the following constant values.

ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset the top edge.

layout_keyline

public static int layout_keyline

The index of a keyline this view should position relative to. android:layout_gravity will affect how the view aligns to the specified keyline.

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

layout_marginBottomPercent

public static int layout_marginBottomPercent

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.

layout_marginBottomRound

public static int layout_marginBottomRound

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

layout_marginEndPercent

public static int layout_marginEndPercent

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.

layout_marginLeftPercent

public static int layout_marginLeftPercent

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.

layout_marginLeftRound

public static int layout_marginLeftRound

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

layout_marginPercent

public static int layout_marginPercent

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.

layout_marginRightPercent

public static int layout_marginRightPercent

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.

layout_marginRightRound

public static int layout_marginRightRound

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

layout_marginRound

public static int layout_marginRound

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

layout_marginStartPercent

public static int layout_marginStartPercent

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.

layout_marginTopPercent

public static int layout_marginTopPercent

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.

layout_marginTopRound

public static int layout_marginTopRound

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

layout_widthPercent

public static int layout_widthPercent

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.

layout_widthRound

public static int layout_widthRound

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

lineHeight

public static int lineHeight

Explicit height between lines of text. If set, this will override the values set for lineSpacingExtra and lineSpacingMultiplier.

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

listChoiceBackgroundIndicator

public static int listChoiceBackgroundIndicator

Drawable used as a background for selected list items.

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

listChoiceIndicatorMultipleAnimated

public static int listChoiceIndicatorMultipleAnimated

Animated Drawable to use for multiple choice indicators.

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

listChoiceIndicatorSingleAnimated

public static int listChoiceIndicatorSingleAnimated

Animated Drawable to use for single choice indicators.

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

listDividerAlertDialog

public static int listDividerAlertDialog

The list divider used in alert dialogs.

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

listItemLayout

public static int listItemLayout

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

listLayout

public static int listLayout

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

listMenuViewStyle

public static int listMenuViewStyle

Default menu-style ListView style.

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

listPopupWindowStyle

public static int listPopupWindowStyle

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

listPreferredItemHeight

public static int listPreferredItemHeight

The preferred list item 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).

listPreferredItemHeightLarge

public static int listPreferredItemHeightLarge

A larger, more robust list item 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).

listPreferredItemHeightSmall

public static int listPreferredItemHeightSmall

A smaller, sleeker list item 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).

listPreferredItemPaddingEnd

public static int listPreferredItemPaddingEnd

The preferred padding along the end edge of list items.

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

listPreferredItemPaddingLeft

public static int listPreferredItemPaddingLeft

The preferred padding along the left edge of list items.

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

listPreferredItemPaddingRight

public static int listPreferredItemPaddingRight

The preferred padding along the right edge of list items.

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

listPreferredItemPaddingStart

public static int listPreferredItemPaddingStart

The preferred padding along the start edge of list items.

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

public static int logo

Specifies the drawable used for the application logo.

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

logoDescription

public static int logoDescription

A content description string to describe the appearance of the associated logo image.

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

maxButtonHeight

public static int maxButtonHeight

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

maxHeight

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

maxTextSize

public static int maxTextSize

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

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

measureWithLargestChild

public static int measureWithLargestChild

When set to true, all children with a weight will be considered having the minimum size of the largest child. If false, all children are measured normally.

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

public static int menu

Menu resource to inflate to be shown in the toolbar

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

min

public static int min

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

minTextSize

public static int minTextSize

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

multiChoiceItemLayout

public static int multiChoiceItemLayout

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

public static int navigationContentDescription

Text to set as the content description for the navigation button located at the start of the toolbar.

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

public static int navigationIcon

Icon drawable to use for the navigation button located at the start of the toolbar.

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

public static int navigationMode

The type of navigation to use.

Must be one of the following constant values.

ConstantValueDescription
listMode1The action bar will use a selection list for navigation.
normal0Normal static title text
tabMode2The action bar will use a series of horizontal tabs for navigation.

public static int navigation_style

Must be one of the following constant values.

ConstantValueDescription
multi_page1
single_page0

negativeButtonIcon

public static int negativeButtonIcon

The icon for the negative button 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".

negativeButtonText

public static 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;

nestedScrollViewStyle

public static int nestedScrollViewStyle

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

neutralButtonIcon

public static int neutralButtonIcon

The icon for the neutral button 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".

neutralButtonText

public static int neutralButtonText

The neutral button text for the dialog. Set to @null to hide the neutral button.

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

numericModifiers

public static int numericModifiers

The numeric modifier key. This is the modifier when using a numeric (e.g., 12-key) keyboard. The values should be kept in sync with KeyEvent

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
ALT2
CTRL1000
FUNCTION8
META10000
SHIFT1
SYM4

order

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

orderingFromXml

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

overlapAnchor

public static int overlapAnchor

Whether the popup window should overlap its anchor view.

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

paddingBottomNoButtons

public static int paddingBottomNoButtons

Bottom padding to use when no buttons are present.

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

paddingEnd

public static int paddingEnd

Sets the padding, in pixels, of the end edge; see R.attr.padding.

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

paddingStart

public static int paddingStart

Sets the padding, in pixels, of the start edge; see R.attr.padding.

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

paddingTopNoTitle

public static int paddingTopNoTitle

Top padding to use when no title is present.

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

pageIndicatorDotColor

public static int pageIndicatorDotColor

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

pageIndicatorDotColorSelected

public static int pageIndicatorDotColorSelected

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

pageIndicatorDotFadeInDuration

public static int pageIndicatorDotFadeInDuration

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

pageIndicatorDotFadeOutDelay

public static int pageIndicatorDotFadeOutDelay

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

pageIndicatorDotFadeOutDuration

public static int pageIndicatorDotFadeOutDuration

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

pageIndicatorDotFadeWhenIdle

public static int pageIndicatorDotFadeWhenIdle

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

pageIndicatorDotRadius

public static int pageIndicatorDotRadius

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

pageIndicatorDotRadiusSelected

public static int pageIndicatorDotRadiusSelected

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

pageIndicatorDotShadowColor

public static int pageIndicatorDotShadowColor

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

pageIndicatorDotShadowDx

public static int pageIndicatorDotShadowDx

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

pageIndicatorDotShadowDy

public static int pageIndicatorDotShadowDy

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

pageIndicatorDotShadowRadius

public static int pageIndicatorDotShadowRadius

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

pageIndicatorDotSpacing

public static int pageIndicatorDotSpacing

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

panelBackground

public static int panelBackground

The background of a panel when it is inset from the left and right edges of the screen.

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

panelMenuListTheme

public static int panelMenuListTheme

Default Panel Menu style.

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

panelMenuListWidth

public static int panelMenuListWidth

Default Panel Menu width.

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

peek_view

public static int peek_view

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

persistent

public static int persistent

Whether the Preference stores its value to the shared preferences.

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

popupMenuStyle

public static int popupMenuStyle

Default PopupMenu style.

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

popupTheme

public static int popupTheme

Reference to a theme that should be used to inflate popups shown by widgets in the action bar.

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

popupWindowStyle

public static int popupWindowStyle

Default PopupWindow style.

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

positiveButtonIcon

public static int positiveButtonIcon

The icon for the positive button 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".

positiveButtonText

public static 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;

preferenceCategoryStyle

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

preferenceCategoryTitleTextAppearance

public static int preferenceCategoryTitleTextAppearance

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

public static int preferenceCategoryTitleTextColor

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

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

preferenceFragmentListStyle

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

preferenceFragmentStyle

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

preferenceInformationStyle

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

preferenceScreenStyle

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

preferenceStyle

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

preferenceTheme

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

preserveIconSpacing

public static int preserveIconSpacing

Whether space should be reserved in layout when an icon is missing.

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

pressedButtonTranslationZ

public static int pressedButtonTranslationZ

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

progressBarPadding

public static int progressBarPadding

Specifies the horizontal padding on either end for an embedded progress bar.

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

progressBarStyle

public static int progressBarStyle

Specifies a style resource to use for an embedded progress bar.

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

queryBackground

public static int queryBackground

Background for the section containing the search query

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

queryHint

public static int queryHint

An optional user-defined query hint string to be displayed in the empty query field.

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

queryPatterns

public static int queryPatterns

Resource reference to the string array of query patterns for a custom capability.

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

radioButtonStyle

public static int radioButtonStyle

Default RadioButton style.

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

rangedValuePrimaryColor

public static int rangedValuePrimaryColor

Defines main color for ranged value indicator.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

rangedValueProgressHidden

public static int rangedValueProgressHidden

Defines visibility for ranged value indicator.

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

rangedValueRingWidth

public static int rangedValueRingWidth

Defines stroke width for ranged value indicator.

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

rangedValueSecondaryColor

public static int rangedValueSecondaryColor

Defines secondary color for ranged value indicator.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

ratingBarStyle

public static int ratingBarStyle

Default RatingBar style.

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

ratingBarStyleIndicator

public static int ratingBarStyleIndicator

Indicator RatingBar style.

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

ratingBarStyleSmall

public static int ratingBarStyleSmall

Small indicator RatingBar style.

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

rectLayout

public static int rectLayout

Resource id of a layout to use in rectangular containers

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

recyclerViewStyle

public static int recyclerViewStyle

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

reverseLayout

public static int reverseLayout

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

roundLayout

public static int roundLayout

Resource id of a layout to use in round containers

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

scroll_degrees_per_screen

public static int scroll_degrees_per_screen

May be a floating point value, such as "1.2".

searchHintIcon

public static int searchHintIcon

Search icon displayed as a text field hint

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

searchIcon

public static int searchIcon

Search icon

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

searchViewStyle

public static int searchViewStyle

Style for the search query widget.

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

seekBarIncrement

public static int seekBarIncrement

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

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

seekBarStyle

public static int seekBarStyle

Default SeekBar style.

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

selectable

public static int selectable

Whether the Preference is selectable.

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

selectableItemBackground

public static int selectableItemBackground

A style that may be applied to buttons or other selectable items that should react to pressed and focus states, but that do not have a clear visual border along the edges.

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

selectableItemBackgroundBorderless

public static int selectableItemBackgroundBorderless

Background drawable for borderless standalone items that need focus/pressed states.

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

shadow_width

public static int shadow_width

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

shortcutMatchRequired

public static int shortcutMatchRequired

Indicates whether a parameter in a capability template can only contain a matched shortcut id and not an arbitrary string.

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

shouldDisableView

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

showAsAction

public static int showAsAction

How this item should display in the Action Bar, if present.

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
always2Always show this item in an actionbar, even if it would override the system's limits of how much stuff to put there. This may make your action bar look bad on some screens. In most cases you should use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never".
collapseActionView8This item's action view collapses to a normal menu item. When expanded, the action view takes over a larger segment of its container.
ifRoom1Show this item in an action bar if there is room for it as determined by the system. Favor this option over "always" where possible. Mutually exclusive with "never" and "always".
never0Never show this item in an action bar, show it in the overflow menu instead. Mutually exclusive with "ifRoom" and "always".
withText4When this item is shown as an action in the action bar, show a text label with it even if it has an icon representation.

showDialogWhenTurningOff

public static int showDialogWhenTurningOff

Specifies if the dialog should be shown when the switch is turning off. Default value is false.

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

showDialogWhenTurningOn

public static int showDialogWhenTurningOn

Specifies if the dialog should be shown when the switch is turning on. Default value is true.

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

showDividers

public static int showDividers

Setting for which dividers to show.

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
beginning1
end4
middle2
none0

showNegativeDialogButton

public static int showNegativeDialogButton

Specifies if the negative button should be shown for the dialog. Default value is true.

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

showPositiveDialogButton

public static int showPositiveDialogButton

Specifies if the positive button should be shown for the dialog. Default value is true.

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

showSeekBarValue

public static int showSeekBarValue

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

showText

public static int showText

Whether to draw on/off text.

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

showTitle

public static int showTitle

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

show_overflow_in_peek

public static int show_overflow_in_peek

Shows the overflow icon in the peek view rather than the first action's icon. Also, taps on the peek view will open the drawer rather than executing the first action.

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

singleChoiceItemLayout

public static int singleChoiceItemLayout

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

singleLineTitle

public static int singleLineTitle

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

spanCount

public static int spanCount

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

spinBars

public static int spinBars

Whether bars should rotate or not during transition

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

spinnerDropDownItemStyle

public static int spinnerDropDownItemStyle

Default Spinner style.

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

spinnerStyle

public static int spinnerStyle

Default Spinner style.

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

splitTrack

public static int splitTrack

Whether to split the track and leave a gap for the thumb drawable.

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

square_dimen

public static int square_dimen

Must be one of the following constant values.

ConstantValueDescription
height1
none0
width2

srcCompat

public static int srcCompat

Sets a drawable as the content of this ImageView. Allows the use of vector drawable when running on older versions of the platform.

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

stackFromEnd

public static int stackFromEnd

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

state_above_anchor

public static int state_above_anchor

State identifier indicating the popup will be above the anchor.

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

statusBarBackground

public static int statusBarBackground

Drawable to display behind the status bar when the view is set to draw behind 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 color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

public static int subMenuArrow

Drawable for the arrow icon indicating a particular item is a submenu.

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

submitBackground

public static int submitBackground

Background for the section containing the action (e.g. voice search)

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

subtitle

public static int subtitle

Specifies subtitle text used for navigationMode="normal"

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

subtitleTextAppearance

public static int subtitleTextAppearance

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

subtitleTextColor

public static int subtitleTextColor

A color to apply to the subtitle string.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

subtitleTextStyle

public static int subtitleTextStyle

Specifies a style to use for subtitle text.

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

suggestionRowLayout

public static int suggestionRowLayout

Layout for query suggestion rows

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

summary

public static 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;

summaryOff

public static 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;

summaryOn

public static 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;

swipeRefreshLayoutProgressSpinnerBackgroundColor

public static int swipeRefreshLayoutProgressSpinnerBackgroundColor

Background color for SwipeRefreshLayout progress spinner.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

switchMinWidth

public static int switchMinWidth

Minimum width for the switch component

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

switchPadding

public static int switchPadding

Minimum space between the switch and caption text

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

switchPreferenceCompatStyle

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

switchPreferenceStyle

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

switchStyle

public static int switchStyle

Default style for the Switch widget.

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

switchTextAppearance

public static int switchTextAppearance

TextAppearance style for text displayed on the switch thumb.

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

switchTextOff

public static 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;

switchTextOn

public static 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;

textAllCaps

public static int textAllCaps

Present the text in ALL CAPS. This may use a small-caps form when available.

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 boolean value, such as "true" or "false".

textAppearanceLargePopupMenu

public static int textAppearanceLargePopupMenu

Text color, typeface, size, and style for the text inside of a popup menu.

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

textAppearanceListItem

public static int textAppearanceListItem

The preferred TextAppearance for the primary text of list items.

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

textAppearanceListItemSecondary

public static int textAppearanceListItemSecondary

The preferred TextAppearance for the secondary text of list items.

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

textAppearanceListItemSmall

public static int textAppearanceListItemSmall

The preferred TextAppearance for the primary text of small list items.

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

textAppearancePopupMenuHeader

public static int textAppearancePopupMenuHeader

Text color, typeface, size, and style for header text inside of a popup menu.

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

textAppearanceSearchResultSubtitle

public static int textAppearanceSearchResultSubtitle

Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color.

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

textAppearanceSearchResultTitle

public static int textAppearanceSearchResultTitle

Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color.

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

textAppearanceSmallPopupMenu

public static int textAppearanceSmallPopupMenu

Text color, typeface, size, and style for small text inside of a popup menu.

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

textColor

public static int textColor

Defines text color for short text and long text fields.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

textColorAlertDialogListItem

public static int textColorAlertDialogListItem

Color of list item text in alert dialogs.

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

textColorSearchUrl

public static int textColorSearchUrl

Text color for urls in search suggestions, used by things like global search

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

textLocale

public static int textLocale

Set the textLocale by a comma-separated language tag string, for example "ja-JP,zh-CN". This attribute only takes effect on API 21 and above. Before API 24, only the first language tag is used. Starting from API 24, the string will be converted into a LocaleList and then used by TextView

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

textSize

public static int textSize

Defines text size for short text and long text fields.

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

textTypeface

public static int textTypeface

Defines typeface for short text and long text fields.

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

theme

public static int theme

Deprecated.

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

thickness

public static int thickness

The thickness (stroke size) for the bar paint

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

thumbTextPadding

public static int thumbTextPadding

Amount of padding on either side of text within the switch thumb.

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

thumbTint

public static int thumbTint

Tint to apply to the thumb drawable.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

thumbTintMode

public static int thumbTintMode

Blending mode used to apply the thumb tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

tickMark

public static int tickMark

Drawable displayed at each progress position on a seekbar.

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

tickMarkTint

public static int tickMarkTint

Tint to apply to the tick mark drawable.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

tickMarkTintMode

public static int tickMarkTintMode

Blending mode used to apply the tick mark tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

tint

public static int tint

Tint to apply to the image source.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

tintMode

public static int tintMode

Blending mode used to apply the image source tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and icon color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

title

public static int title

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

titleColor

public static int titleColor

Defines text color for short title and long title fields.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

titleMargin

public static int titleMargin

Specifies extra space on the left, start, right and end sides of the toolbar's title. Margin values should be positive.

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

titleMarginBottom

public static int titleMarginBottom

Specifies extra space on the bottom side of the toolbar's title. If both this attribute and titleMargin are specified, then this attribute takes precedence. Margin values should be positive.

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

titleMarginEnd

public static int titleMarginEnd

Specifies extra space on the end side of the toolbar's title. If both this attribute and titleMargin are specified, then this attribute takes precedence. Margin values should be positive.

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

titleMarginStart

public static int titleMarginStart

Specifies extra space on the start side of the toolbar's title. If both this attribute and titleMargin are specified, then this attribute takes precedence. Margin values should be positive.

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

titleMarginTop

public static int titleMarginTop

Specifies extra space on the top side of the toolbar's title. If both this attribute and titleMargin are specified, then this attribute takes precedence. Margin values should be positive.

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

titleMargins

public static int titleMargins

This field is deprecated.
Use titleMargin

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

titleSize

public static int titleSize

Defines text size for short title and long title fields.

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

titleTextAppearance

public static int titleTextAppearance

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

titleTextColor

public static int titleTextColor

A color to apply to the title string.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

titleTextStyle

public static int titleTextStyle

Specifies a style to use for title text.

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

titleTypeface

public static int titleTypeface

Defines typeface for short title and long title fields.

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

toolbarNavigationButtonStyle

public static int toolbarNavigationButtonStyle

Default Toolar NavigationButtonStyle

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

toolbarStyle

public static int toolbarStyle

Default Toolbar style.

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

tooltipForegroundColor

public static int tooltipForegroundColor

Foreground color to use for tooltips

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

tooltipFrameBackground

public static int tooltipFrameBackground

Background to use for tooltips

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

tooltipText

public static int tooltipText

The tooltip text associated with the item.

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

track

public static int track

Drawable to use as the "track" that the switch thumb slides within.

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

trackTint

public static int trackTint

Tint to apply to the track.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

trackTintMode

public static int trackTintMode

Blending mode used to apply the track tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

ttcIndex

public static int ttcIndex

The index of the font in the tcc font file. If the font file referenced is not in the tcc format, this attribute needs not be specified.

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

update_interval

public static int update_interval

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

updatesContinuously

public static int updatesContinuously

Flag indicating whether the SeekBarPreference should continuously save the Seekbar value while the Seekbar is being dragged. If true, the SeekBarPreference should continuously save the Seekbar value while it is being dragged. If false, the Seekbar value is only saved when released. By default, this boolean is false.

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

useSimpleSummaryProvider

public static int useSimpleSummaryProvider

Whether the preference should automatically set its summary to the value saved for the preference, and update the summary when the value is changed. Defaults to false.

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

viewInflaterClass

public static int viewInflaterClass

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

voiceIcon

public static int voiceIcon

Voice button icon

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

widgetLayout

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

windowActionBar

public static int windowActionBar

Flag indicating whether this window should have an Action Bar in place of the usual title bar.

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

windowActionBarOverlay

public static int windowActionBarOverlay

Flag indicating whether this window's Action Bar should overlay application content. Does nothing if the window would not have an Action Bar.

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

windowActionModeOverlay

public static int windowActionModeOverlay

Flag indicating whether action modes should overlay window content when there is not reserved space for their UI (such as an Action Bar).

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

windowFixedHeightMajor

public static int windowFixedHeightMajor

A fixed height for the window along the major axis of the screen, that is, when in portrait. Can be either an absolute dimension or a fraction of the screen size in that dimension.

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.

windowFixedHeightMinor

public static int windowFixedHeightMinor

A fixed height for the window along the minor axis of the screen, that is, when in landscape. Can be either an absolute dimension or a fraction of the screen size in that dimension.

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.

windowFixedWidthMajor

public static int windowFixedWidthMajor

A fixed width for the window along the major axis of the screen, that is, when in landscape. Can be either an absolute dimension or a fraction of the screen size in that dimension.

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.

windowFixedWidthMinor

public static int windowFixedWidthMinor

A fixed width for the window along the minor axis of the screen, that is, when in portrait. Can be either an absolute dimension or a fraction of the screen size in that dimension.

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.

windowMinWidthMajor

public static int windowMinWidthMajor

The minimum width the window is allowed to be, along the major axis of the screen. That is, when in landscape. Can be either an absolute dimension or a fraction of the screen size in that dimension.

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.

windowMinWidthMinor

public static int windowMinWidthMinor

The minimum width the window is allowed to be, along the minor axis of the screen. That is, when in portrait. Can be either an absolute dimension or a fraction of the screen size in that dimension.

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.

windowNoTitle

public static int windowNoTitle

Flag indicating whether there should be no title on this window.

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

Public constructors

attr

public attr ()