R.attr


class R.attr


Summary

Public constructors

Public properties

java-static Int

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

java-static Int

Custom item state list drawable background for action bar items.

java-static Int

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

java-static Int

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

java-static Int

Reference to a style for the split Action Bar.

java-static Int

Reference to a style for the Action Bar

java-static Int

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

java-static Int

Default style for tabs within an action bar

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

Default action button style.

java-static Int

Default ActionBar dropdown style.

java-static Int

An optional layout to be used as an action view.

java-static Int

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

java-static Int

Color for text that appears within action menu items.

java-static Int

Background drawable to use for action mode UI

java-static Int

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

java-static Int

Content description to use for the close action mode button

java-static Int

Drawable to use for the close action mode button

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

Theme to use for alert dialogs spawned from this theme.

java-static Int

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

java-static Int

The length of the shaft when formed to make an arrow

java-static Int

Default AutoCompleteTextView style.

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

Specify the type of auto-size.

java-static Int

Specifies a background drawable for the action bar.

java-static Int

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

java-static Int

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

java-static Int

Tint to apply to the background.

java-static Int

Blending mode used to apply the background tint.

java-static Int

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

java-static Int

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

java-static Int

Style for buttons within button bars

java-static Int

Style for the "negative" buttons within button bars

java-static Int

Style for the "neutral" buttons within button bars

java-static Int

Style for the "positive" buttons within button bars

java-static Int

Style for button bars

java-static Int

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

java-static Int

Normal Button style.

java-static Int

Small Button style.

java-static Int

Tint to apply to the button drawable.

java-static Int

Blending mode used to apply the button tint.

java-static Int

Default Checkbox style.

java-static Int

Default CheckedTextView style.

java-static Int

Close button icon

java-static Int

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

java-static Int

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

java-static Int

Icon drawable to use for the collapse button.

java-static Int

The drawing color for the bars

java-static Int

Bright complement to the primary branding color.

java-static Int

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

java-static Int

The color applied to framework buttons in their normal state.

java-static Int

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

java-static Int

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

java-static Int

The color applied to framework controls in their normal state.

java-static Int

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

java-static Int

The primary branding color for the app.

java-static Int

Dark variant of the primary branding color.

java-static Int

Commit icon shown in the query suggestion row

java-static Int

Minimum inset for content views within a bar.

java-static Int

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

java-static Int

Minimum inset for content views within a bar.

java-static Int

Minimum inset for content views within a bar.

java-static Int

Minimum inset for content views within a bar.

java-static Int

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

java-static Int

Specifies a layout for custom navigation.

java-static Int

Preferred corner radius of dialogs.

java-static Int

Preferred padding for dialog content.

java-static Int

Theme to use for dialogs spawned from this theme.

java-static Int

Options affecting how the action bar is displayed.

java-static Int

Specifies the drawable used for item dividers.

java-static Int

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

java-static Int

Size of padding on either end of a divider.

java-static Int

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

java-static Int

The total size of the drawable

java-static Int

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

java-static Int

ListPopupWindow compatibility

java-static Int

EditText background drawable.

java-static Int

EditText text foreground color.

java-static Int

Default EditText style.

java-static Int

Elevation for the action bar itself

java-static Int

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

java-static Int

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

java-static Int

The attribute for the font family.

java-static Int

OpenType font variation settings, available after api 26.

java-static Int

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

java-static Int

Go button icon

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

Specifies the drawable used for the application icon.

java-static Int

Tint to apply to the icon.

java-static Int

Blending mode used to apply the icon tint.

java-static Int

The default state of the SearchView.

java-static Int

ImageButton background drawable.

java-static Int

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

java-static Int

Specifies whether the theme is light, otherwise it is dark.

java-static Int

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

java-static Int

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

java-static Int

The layout to use for the search view.

java-static Int

Explicit height between lines of text.

java-static Int

Drawable used as a background for selected list items.

java-static Int

Animated Drawable to use for multiple choice indicators.

java-static Int

Animated Drawable to use for single choice indicators.

java-static Int

The list divider used in alert dialogs.

java-static Int

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

java-static Int

The preferred list item height.

java-static Int

A larger, more robust list item height.

java-static Int

A smaller, sleeker list item height.

java-static Int

The preferred padding along the end edge of list items.

java-static Int

The preferred padding along the left edge of list items.

java-static Int

The preferred padding along the right edge of list items.

java-static Int

The preferred padding along the start edge of list items.

java-static Int

Specifies the drawable used for the application logo.

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

The type of navigation to use.

java-static Int

Whether the popup window should overlap its anchor view.

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

Default PopupMenu style.

java-static Int

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

java-static Int

Default PopupWindow style.

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

Background for the section containing the search query

java-static Int

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

java-static Int

Default RadioButton style.

java-static Int

Default RatingBar style.

java-static Int

Indicator RatingBar style.

java-static Int

Small indicator RatingBar style.

java-static Int

Search icon displayed as a text field hint

java-static Int

Search icon

java-static Int

Style for the search query widget.

java-static Int

Default SeekBar style.

java-static Int

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.

java-static Int

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

java-static Int

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

java-static Int

Setting for which dividers to show.

java-static Int

Whether to draw on/off text.

java-static Int

Whether bars should rotate or not during transition

java-static Int

Default Spinner style.

java-static Int

Default Spinner style.

java-static Int

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

java-static Int

Sets a drawable as the content of this ImageView.

java-static Int

State identifier indicating the popup will be above the anchor.

java-static Int

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

java-static Int

Specifies subtitle text used for navigationMode="normal"

java-static Int

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

java-static Int

A color to apply to the subtitle string.

java-static Int

Specifies a style to use for subtitle text.

java-static Int

Layout for query suggestion rows

java-static Int

Minimum width for the switch component

java-static Int

Minimum space between the switch and caption text

java-static Int

Default style for the Switch widget.

java-static Int

TextAppearance style for text displayed on the switch thumb.

java-static Int

Present the text in ALL CAPS.

java-static Int

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

java-static Int

The preferred TextAppearance for the primary text of list items.

java-static Int

The preferred TextAppearance for the secondary text of list items.

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

Color of list item text in alert dialogs.

java-static Int

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

java-static Int

Deprecated.

java-static Int

The thickness (stroke size) for the bar paint

java-static Int

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

java-static Int

Tint to apply to the thumb drawable.

java-static Int

Blending mode used to apply the thumb tint.

java-static Int

Drawable displayed at each progress position on a seekbar.

java-static Int

Tint to apply to the tick mark drawable.

java-static Int

Blending mode used to apply the tick mark tint.

java-static Int

Tint to apply to the image source.

java-static Int

Blending mode used to apply the image source tint.

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

{@deprecated Use titleMargin}

java-static Int

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

java-static Int

A color to apply to the title string.

java-static Int

Specifies a style to use for title text.

java-static Int

Default Toolar NavigationButtonStyle

java-static Int

Default Toolbar style.

java-static Int

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

java-static Int

Tint to apply to the track.

java-static Int

Blending mode used to apply the track tint.

java-static Int

Voice button icon

java-static Int

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

java-static Int

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

java-static Int

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

java-static Int

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

Public constructors

attr

attr()

Public properties

actionBarDivider

java-static val actionBarDividerInt

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

java-static val actionBarItemBackgroundInt

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

java-static val actionBarPopupThemeInt

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

java-static val actionBarSizeInt

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.

Constant Value Description
wrap_content 0

actionBarSplitStyle

java-static val actionBarSplitStyleInt

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

java-static val actionBarStyleInt

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

java-static val actionBarTabBarStyleInt

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

actionBarTabStyle

java-static val actionBarTabStyleInt

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

java-static val actionBarTabTextStyleInt

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

actionBarTheme

java-static val actionBarThemeInt

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

java-static val actionBarWidgetThemeInt

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

java-static val actionButtonStyleInt

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

java-static val actionDropDownStyleInt

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

java-static val actionLayoutInt

An optional layout to be used as an action view. See setActionView 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

java-static val actionMenuTextAppearanceInt

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

java-static val actionMenuTextColorInt

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

java-static val actionModeBackgroundInt

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

java-static val actionModeCloseButtonStyleInt

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

actionModeCloseContentDescription

java-static val actionModeCloseContentDescriptionInt

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

java-static val actionModeCloseDrawableInt

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

java-static val actionModeCopyDrawableInt

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

java-static val actionModeCutDrawableInt

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

java-static val actionModeFindDrawableInt

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

java-static val actionModePasteDrawableInt

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

actionModeSelectAllDrawable

java-static val actionModeSelectAllDrawableInt

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

java-static val actionModeShareDrawableInt

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

java-static val actionModeSplitBackgroundInt

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

java-static val actionModeStyleInt

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

actionModeTheme

java-static val actionModeThemeInt

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

java-static val actionModeWebSearchDrawableInt

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

java-static val actionOverflowButtonStyleInt

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

actionOverflowMenuStyle

java-static val actionOverflowMenuStyleInt

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

actionProviderClass

java-static val actionProviderClassInt

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

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

actionViewClass

java-static val actionViewClassInt

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

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

alertDialogStyle

java-static val alertDialogStyleInt

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

alertDialogTheme

java-static val alertDialogThemeInt

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

arrowHeadLength

java-static val arrowHeadLengthInt

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

java-static val arrowShaftLengthInt

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

java-static val autoCompleteTextViewStyleInt

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

java-static val autoSizeMaxTextSizeInt

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

java-static val autoSizeMinTextSizeInt

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

java-static val autoSizePresetSizesInt

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

java-static val autoSizeStepGranularityInt

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

java-static val autoSizeTextTypeInt

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.

Constant Value Description
none 0 No auto-sizing (default).
uniform 1 Uniform horizontal and vertical text size scaling to fit within the container.

background

java-static val backgroundInt

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

backgroundSplit

java-static val backgroundSplitInt

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

java-static val backgroundStackedInt

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

java-static val backgroundTintInt

Tint to apply to the background.

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

backgroundTintMode

java-static val backgroundTintModeInt

Blending mode used to apply the background tint.

Must be one of the following constant values.

Constant Value Description
add 10 Combines the tint and icon color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiply e Multiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screen f [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop 9 The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in 5 The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da]
src_over 3 The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

barLength

java-static val barLengthInt

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

borderlessButtonStyle

java-static val borderlessButtonStyleInt

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

java-static val buttonBarButtonStyleInt

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

java-static val buttonBarNegativeButtonStyleInt

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

java-static val buttonBarNeutralButtonStyleInt

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

java-static val buttonBarPositiveButtonStyleInt

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

java-static val buttonBarStyleInt

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

buttonGravity

java-static val buttonGravityInt

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

Constant Value Description
bottom 50 Push object to the bottom of its container, not changing its size.
center_vertical 10 Place object in the vertical center of its container, not changing its size.
top 30 Push object to the top of its container, not changing its size.

buttonStyle

java-static val buttonStyleInt

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

java-static val buttonStyleSmallInt

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

java-static val buttonTintInt

Tint to apply to the button drawable.

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

buttonTintMode

java-static val buttonTintModeInt

Blending mode used to apply the button tint.

Must be one of the following constant values.

Constant Value Description
add 10 Combines the tint and icon color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiply e Multiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screen f [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop 9 The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in 5 The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da]
src_over 3 The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

checkboxStyle

java-static val checkboxStyleInt

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

java-static val checkedTextViewStyleInt

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

closeIcon

java-static val closeIconInt

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

java-static val closeItemLayoutInt

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

java-static val collapseContentDescriptionInt

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

java-static val collapseIconInt

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

java-static val colorInt

The drawing color for the bars

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

colorAccent

java-static val colorAccentInt

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

java-static val colorBackgroundFloatingInt

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

java-static val colorButtonNormalInt

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

java-static val colorControlActivatedInt

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

java-static val colorControlHighlightInt

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

java-static val colorControlNormalInt

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

java-static val colorErrorInt

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

java-static val colorPrimaryInt

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

java-static val colorPrimaryDarkInt

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

commitIcon

java-static val commitIconInt

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

contentInsetEnd

java-static val contentInsetEndInt

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

java-static val contentInsetEndWithActionsInt

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

java-static val contentInsetLeftInt

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

java-static val contentInsetRightInt

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

java-static val contentInsetStartInt

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

java-static val contentInsetStartWithNavigationInt

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

customNavigationLayout

java-static val customNavigationLayoutInt

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

dialogCornerRadius

java-static val dialogCornerRadiusInt

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

dialogPreferredPadding

java-static val dialogPreferredPaddingInt

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

java-static val dialogThemeInt

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

displayOptions

java-static val displayOptionsInt

Options affecting how the action bar is displayed.

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

Constant Value Description
disableHome 20
homeAsUp 4
none 0
showCustom 10
showHome 2
showTitle 8
useLogo 1

divider

java-static val dividerInt

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

java-static val dividerHorizontalInt

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

java-static val dividerPaddingInt

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

java-static val dividerVerticalInt

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

drawableSize

java-static val drawableSizeInt

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

drawerArrowStyle

java-static val drawerArrowStyleInt

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

java-static val dropDownListViewStyleInt

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

editTextBackground

java-static val editTextBackgroundInt

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

java-static val editTextColorInt

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

editTextStyle

java-static val editTextStyleInt

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

java-static val elevationInt

Elevation for the action bar itself

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

java-static val emojiCompatEnabledInt

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

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

firstBaselineToTopHeight

java-static val firstBaselineToTopHeightInt

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

fontFamily

java-static val fontFamilyInt

The attribute for the font family.

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

fontVariationSettings

java-static val fontVariationSettingsInt

OpenType font variation settings, available after api 26.

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

gapBetweenBars

java-static val gapBetweenBarsInt

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

java-static val goIconInt

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

java-static val heightInt

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

java-static val hideOnContentScrollInt

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

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

homeAsUpIndicator

java-static val homeAsUpIndicatorInt

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

java-static val homeLayoutInt

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

java-static val iconInt

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

iconTint

java-static val iconTintInt

Tint to apply to the icon.

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

iconTintMode

java-static val iconTintModeInt

Blending mode used to apply the icon tint.

Must be one of the following constant values.

Constant Value Description
add 10 Combines the tint and icon color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiply e Multiplies the color and alpha channels of the icon with those of the tint. [Sa * Da, Sc * Dc]
screen f [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop 9 The tint is drawn above the icon, but with the icon’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in 5 The tint is masked by the alpha channel of the icon. The icon’s color channels are thrown out. [Sa * Da, Sc * Da]
src_over 3 The tint is drawn on top of the icon. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

iconifiedByDefault

java-static val iconifiedByDefaultInt

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

java-static val imageButtonStyleInt

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

indeterminateProgressStyle

java-static val indeterminateProgressStyleInt

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

isLightTheme

java-static val isLightThemeInt

Specifies whether the theme is light, otherwise it is dark.

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

itemPadding

java-static val itemPaddingInt

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

lastBaselineToBottomHeight

java-static val lastBaselineToBottomHeightInt

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

java-static val layoutInt

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

lineHeight

java-static val lineHeightInt

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

java-static val listChoiceBackgroundIndicatorInt

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

java-static val listChoiceIndicatorMultipleAnimatedInt

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

java-static val listChoiceIndicatorSingleAnimatedInt

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

java-static val listDividerAlertDialogInt

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

listPopupWindowStyle

java-static val listPopupWindowStyleInt

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

listPreferredItemHeight

java-static val listPreferredItemHeightInt

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

java-static val listPreferredItemHeightLargeInt

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

java-static val listPreferredItemHeightSmallInt

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

java-static val listPreferredItemPaddingEndInt

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

java-static val listPreferredItemPaddingLeftInt

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

java-static val listPreferredItemPaddingRightInt

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

java-static val listPreferredItemPaddingStartInt

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

logo

java-static val logoInt

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

java-static val logoDescriptionInt

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

java-static val maxButtonHeightInt

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

java-static val measureWithLargestChildInt

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

java-static val navigationContentDescriptionInt

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;

java-static val navigationIconInt

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

java-static val navigationModeInt

The type of navigation to use.

Must be one of the following constant values.

Constant Value Description
listMode 1 The action bar will use a selection list for navigation.
normal 0 Normal static title text
tabMode 2 The action bar will use a series of horizontal tabs for navigation.

overlapAnchor

java-static val overlapAnchorInt

Whether the popup window should overlap its anchor view.

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

paddingEnd

java-static val paddingEndInt

Sets the padding, in pixels, of the end edge; see 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

java-static val paddingStartInt

Sets the padding, in pixels, of the start edge; see 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).

panelBackground

java-static val panelBackgroundInt

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

popupMenuStyle

java-static val popupMenuStyleInt

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

java-static val popupThemeInt

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

java-static val popupWindowStyleInt

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

preserveIconSpacing

java-static val preserveIconSpacingInt

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

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

progressBarPadding

java-static val progressBarPaddingInt

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

java-static val progressBarStyleInt

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

java-static val queryBackgroundInt

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

java-static val queryHintInt

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;

radioButtonStyle

java-static val radioButtonStyleInt

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

ratingBarStyle

java-static val ratingBarStyleInt

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

java-static val ratingBarStyleIndicatorInt

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

java-static val ratingBarStyleSmallInt

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

searchHintIcon

java-static val searchHintIconInt

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

java-static val searchIconInt

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

java-static val searchViewStyleInt

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

seekBarStyle

java-static val seekBarStyleInt

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

selectableItemBackground

java-static val selectableItemBackgroundInt

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

java-static val selectableItemBackgroundBorderlessInt

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

showAsAction

java-static val showAsActionInt

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

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

Constant Value Description
always 2 Always 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".
collapseActionView 8 This item's action view collapses to a normal menu item. When expanded, the action view takes over a larger segment of its container.
ifRoom 1 Show 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".
never 0 Never show this item in an action bar, show it in the overflow menu instead. Mutually exclusive with "ifRoom" and "always".
withText 4 When this item is shown as an action in the action bar, show a text label with it even if it has an icon representation.

showDividers

java-static val showDividersInt

Setting for which dividers to show.

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

Constant Value Description
beginning 1
end 4
middle 2
none 0

showText

java-static val showTextInt

Whether to draw on/off text.

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

spinBars

java-static val spinBarsInt

Whether bars should rotate or not during transition

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

spinnerDropDownItemStyle

java-static val spinnerDropDownItemStyleInt

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

java-static val spinnerStyleInt

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

java-static val splitTrackInt

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

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

srcCompat

java-static val srcCompatInt

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

state_above_anchor

java-static val state_above_anchorInt

State identifier indicating the popup will be above the anchor.

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

submitBackground

java-static val submitBackgroundInt

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

java-static val subtitleInt

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

java-static val subtitleTextAppearanceInt

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

subtitleTextColor

java-static val subtitleTextColorInt

A color to apply to the subtitle string.

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

subtitleTextStyle

java-static val subtitleTextStyleInt

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

java-static val suggestionRowLayoutInt

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

switchMinWidth

java-static val switchMinWidthInt

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

java-static val switchPaddingInt

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

switchStyle

java-static val switchStyleInt

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

java-static val switchTextAppearanceInt

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

textAllCaps

java-static val textAllCapsInt

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

java-static val textAppearanceLargePopupMenuInt

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

java-static val textAppearanceListItemInt

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

java-static val textAppearanceListItemSecondaryInt

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

java-static val textAppearanceListItemSmallInt

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

java-static val textAppearancePopupMenuHeaderInt

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

java-static val textAppearanceSearchResultSubtitleInt

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

java-static val textAppearanceSearchResultTitleInt

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

java-static val textAppearanceSmallPopupMenuInt

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

textColorAlertDialogListItem

java-static val textColorAlertDialogListItemInt

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

textLocale

java-static val textLocaleInt

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 android.os.LocaleList and then used by android.widget.TextView

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

theme

java-static val themeInt

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

java-static val thicknessInt

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

java-static val thumbTextPaddingInt

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

java-static val thumbTintInt

Tint to apply to the thumb drawable.

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

thumbTintMode

java-static val thumbTintModeInt

Blending mode used to apply the thumb tint.

Must be one of the following constant values.

Constant Value Description
add 10 Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiply e Multiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screen f [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop 9 The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in 5 The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da]
src_over 3 The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

tickMark

java-static val tickMarkInt

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

java-static val tickMarkTintInt

Tint to apply to the tick mark drawable.

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

tickMarkTintMode

java-static val tickMarkTintModeInt

Blending mode used to apply the tick mark tint.

Must be one of the following constant values.

Constant Value Description
add 10 Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiply e Multiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screen f [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop 9 The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in 5 The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da]
src_over 3 The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

tint

java-static val tintInt

Tint to apply to the image source.

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

tintMode

java-static val tintModeInt

Blending mode used to apply the image source tint.

Must be one of the following constant values.

Constant Value Description
add 10 Combines the tint and icon color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiply e Multiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screen f [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop 9 The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in 5 The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da]
src_over 3 The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

title

java-static val titleInt

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

titleMargin

java-static val titleMarginInt

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

java-static val titleMarginBottomInt

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

java-static val titleMarginEndInt

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

java-static val titleMarginStartInt

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

java-static val titleMarginTopInt

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

java-static val titleMarginsInt

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

titleTextAppearance

java-static val titleTextAppearanceInt

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

titleTextColor

java-static val titleTextColorInt

A color to apply to the title string.

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

titleTextStyle

java-static val titleTextStyleInt

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

toolbarNavigationButtonStyle

java-static val toolbarNavigationButtonStyleInt

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

java-static val toolbarStyleInt

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

track

java-static val trackInt

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

java-static val trackTintInt

Tint to apply to the track.

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

trackTintMode

java-static val trackTintModeInt

Blending mode used to apply the track tint.

Must be one of the following constant values.

Constant Value Description
add 10 Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiply e Multiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screen f [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop 9 The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in 5 The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da]
src_over 3 The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

voiceIcon

java-static val voiceIconInt

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

windowActionBar

java-static val windowActionBarInt

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

java-static val windowActionBarOverlayInt

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

java-static val windowActionModeOverlayInt

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

windowNoTitle

java-static val windowNoTitleInt

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

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