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 actionBarDivider: Int

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 actionBarItemBackground: Int

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 actionBarPopupTheme: Int

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 actionBarSize: Int

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 actionBarSplitStyle: Int

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 actionBarStyle: Int

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 actionBarTabBarStyle: Int

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 actionBarTabStyle: Int

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 actionBarTabTextStyle: Int

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 actionBarTheme: Int

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 actionBarWidgetTheme: Int

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 actionButtonStyle: Int

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 actionDropDownStyle: Int

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 actionLayout: Int

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 actionMenuTextAppearance: Int

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 actionMenuTextColor: Int

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 actionModeBackground: Int

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 actionModeCloseButtonStyle: Int

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 actionModeCloseContentDescription: Int

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 actionModeCloseDrawable: Int

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 actionModeCopyDrawable: Int

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 actionModeCutDrawable: Int

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 actionModeFindDrawable: Int

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 actionModePasteDrawable: Int

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 actionModeSelectAllDrawable: Int

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 actionModeShareDrawable: Int

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 actionModeSplitBackground: Int

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 actionModeStyle: Int

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 actionModeTheme: Int

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 actionModeWebSearchDrawable: Int

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 actionOverflowButtonStyle: Int

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 actionOverflowMenuStyle: Int

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 actionProviderClass: Int

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 actionViewClass: Int

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 alertDialogStyle: Int

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 alertDialogTheme: Int

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 arrowHeadLength: Int

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 arrowShaftLength: Int

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 autoCompleteTextViewStyle: Int

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 autoSizeMaxTextSize: Int

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 autoSizeMinTextSize: Int

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 autoSizePresetSizes: Int

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 autoSizeStepGranularity: Int

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 autoSizeTextType: Int

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 background: Int

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 backgroundSplit: Int

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 backgroundStacked: Int

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 backgroundTint: Int

Tint to apply to the background.

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

backgroundTintMode

java-static val backgroundTintMode: Int

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 barLength: Int

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 borderlessButtonStyle: Int

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 buttonBarButtonStyle: Int

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 buttonBarNegativeButtonStyle: Int

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 buttonBarNeutralButtonStyle: Int

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 buttonBarPositiveButtonStyle: Int

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 buttonBarStyle: Int

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 buttonGravity: Int

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 buttonStyle: Int

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 buttonStyleSmall: Int

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 buttonTint: Int

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 buttonTintMode: Int

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 checkboxStyle: Int

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 checkedTextViewStyle: Int

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 closeIcon: Int

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 closeItemLayout: Int

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 collapseContentDescription: Int

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 collapseIcon: Int

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 color: Int

The drawing color for the bars

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

colorAccent

java-static val colorAccent: Int

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 colorBackgroundFloating: Int

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 colorButtonNormal: Int

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 colorControlActivated: Int

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 colorControlHighlight: Int

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 colorControlNormal: Int

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 colorError: Int

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 colorPrimary: Int

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 colorPrimaryDark: Int

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 commitIcon: Int

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 contentInsetEnd: Int

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 contentInsetEndWithActions: Int

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 contentInsetLeft: Int

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 contentInsetRight: Int

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 contentInsetStart: Int

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 contentInsetStartWithNavigation: Int

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 customNavigationLayout: Int

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 dialogCornerRadius: Int

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 dialogPreferredPadding: Int

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 dialogTheme: Int

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 displayOptions: Int

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 divider: Int

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 dividerHorizontal: Int

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 dividerPadding: Int

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 dividerVertical: Int

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 drawableSize: Int

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 drawerArrowStyle: 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 val dropDownListViewStyle: Int

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 editTextBackground: Int

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 editTextColor: Int

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 editTextStyle: Int

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 elevation: Int

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 emojiCompatEnabled: Int

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 firstBaselineToTopHeight: Int

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 fontFamily: Int

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 fontVariationSettings: Int

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 gapBetweenBars: Int

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 goIcon: Int

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 height: Int

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

hideOnContentScroll

java-static val hideOnContentScroll: Int

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 homeAsUpIndicator: Int

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 homeLayout: Int

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 icon: Int

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 iconTint: Int

Tint to apply to the icon.

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

iconTintMode

java-static val iconTintMode: Int

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 iconifiedByDefault: Int

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 imageButtonStyle: Int

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 indeterminateProgressStyle: Int

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 isLightTheme: Int

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

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

itemPadding

java-static val itemPadding: Int

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 lastBaselineToBottomHeight: Int

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 layout: Int

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 lineHeight: Int

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 listChoiceBackgroundIndicator: Int

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 listChoiceIndicatorMultipleAnimated: Int

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 listChoiceIndicatorSingleAnimated: Int

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 listDividerAlertDialog: Int

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 listPopupWindowStyle: Int

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 listPreferredItemHeight: Int

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 listPreferredItemHeightLarge: Int

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 listPreferredItemHeightSmall: Int

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 listPreferredItemPaddingEnd: Int

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 listPreferredItemPaddingLeft: Int

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 listPreferredItemPaddingRight: Int

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 listPreferredItemPaddingStart: Int

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 logo: Int

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 logoDescription: Int

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 maxButtonHeight: Int

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

measureWithLargestChild

java-static val measureWithLargestChild: Int

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 navigationContentDescription: Int

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 navigationIcon: Int

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 navigationMode: Int

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 overlapAnchor: Int

Whether the popup window should overlap its anchor view.

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

paddingEnd

java-static val paddingEnd: Int

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 paddingStart: Int

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 panelBackground: Int

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 popupMenuStyle: Int

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 popupTheme: Int

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 popupWindowStyle: Int

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 preserveIconSpacing: Int

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 progressBarPadding: Int

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 progressBarStyle: Int

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 queryBackground: Int

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 queryHint: Int

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 radioButtonStyle: Int

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 ratingBarStyle: Int

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 ratingBarStyleIndicator: Int

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 ratingBarStyleSmall: Int

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 searchHintIcon: Int

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 searchIcon: Int

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 searchViewStyle: Int

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 seekBarStyle: Int

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 selectableItemBackground: 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.

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 selectableItemBackgroundBorderless: Int

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 showAsAction: Int

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 showDividers: Int

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 showText: Int

Whether to draw on/off text.

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

spinBars

java-static val spinBars: Int

Whether bars should rotate or not during transition

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

spinnerDropDownItemStyle

java-static val spinnerDropDownItemStyle: Int

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 spinnerStyle: Int

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 splitTrack: Int

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 srcCompat: Int

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_anchor: Int

State identifier indicating the popup will be above the anchor.

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

submitBackground

java-static val submitBackground: Int

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 subtitle: Int

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 subtitleTextAppearance: Int

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 subtitleTextColor: Int

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 subtitleTextStyle: Int

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 suggestionRowLayout: Int

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 switchMinWidth: Int

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 switchPadding: Int

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 switchStyle: Int

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 switchTextAppearance: Int

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 textAllCaps: Int

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 textAppearanceLargePopupMenu: Int

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 textAppearanceListItem: Int

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 textAppearanceListItemSecondary: Int

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 textAppearanceListItemSmall: Int

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 textAppearancePopupMenuHeader: Int

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 textAppearanceSearchResultSubtitle: Int

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 textAppearanceSearchResultTitle: Int

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 textAppearanceSmallPopupMenu: Int

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 textColorAlertDialogListItem: Int

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 textLocale: Int

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 theme: Int

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 thickness: Int

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 thumbTextPadding: Int

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 thumbTint: Int

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 thumbTintMode: Int

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 tickMark: Int

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 tickMarkTint: Int

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 tickMarkTintMode: Int

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 tint: Int

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 tintMode: Int

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 title: Int

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

titleMargin

java-static val titleMargin: Int

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 titleMarginBottom: Int

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 titleMarginEnd: Int

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 titleMarginStart: Int

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 titleMarginTop: Int

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 titleMargins: Int

{@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 titleTextAppearance: Int

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 titleTextColor: Int

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 titleTextStyle: Int

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 toolbarNavigationButtonStyle: Int

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 toolbarStyle: Int

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 track: Int

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 trackTint: Int

Tint to apply to the track.

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

trackTintMode

java-static val trackTintMode: Int

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 voiceIcon: Int

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 windowActionBar: Int

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 windowActionBarOverlay: Int

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 windowActionModeOverlay: Int

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 windowNoTitle: Int

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

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