R.attr


public final class R.attr


Summary

Public fields

static int

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

static int

Custom item state list drawable background for action bar items.

static int

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

static int

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

static int

Reference to a style for the split Action Bar.

static int

Reference to a style for the Action Bar

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

static int

Default style for tabs within an action bar

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

static int

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

static int

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

static int

Default action button style.

static int

Default ActionBar dropdown style.

static int

An optional layout to be used as an action view.

static int

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

static int

Color for text that appears within action menu items.

static int

Background drawable to use for action mode UI

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

static int

Content description to use for the close action mode button

static int

Drawable to use for the close action mode button

static int

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

static int

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

static int

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

static int

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

static int

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

static int

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

static int

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

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

static int

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

static int

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

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

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

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.

static int

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

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

static int

Theme to use for alert dialogs spawned from this theme.

static int

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

static int

The length of the shaft when formed to make an arrow

static int

Default AutoCompleteTextView style.

static int

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

static int

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

static int

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

static int

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

static int

Specify the type of auto-size.

static int

Specifies a background drawable for the action bar.

static int

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

static int

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

static int

Tint to apply to the background.

static int

Blending mode used to apply the background tint.

static int

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

static int

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

static int

Style for buttons within button bars

static int

Style for the "negative" buttons within button bars

static int

Style for the "neutral" buttons within button bars

static int

Style for the "positive" buttons within button bars

static int

Style for button bars

static int

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

static int

Normal Button style.

static int

Small Button style.

static int

Tint to apply to the button drawable.

static int

Blending mode used to apply the button tint.

static int

Default Checkbox style.

static int

Default CheckedTextView style.

static int

Close button icon

static int

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

static int

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

static int

Icon drawable to use for the collapse button.

static int

The drawing color for the bars

static int

Bright complement to the primary branding color.

static int

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

static int

The color applied to framework buttons in their normal state.

static int

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

static int

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

static int

The color applied to framework controls in their normal state.

static int

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

static int

The primary branding color for the app.

static int

Dark variant of the primary branding color.

static int

Commit icon shown in the query suggestion row

static int

Minimum inset for content views within a bar.

static int

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

static int

Minimum inset for content views within a bar.

static int

Minimum inset for content views within a bar.

static int

Minimum inset for content views within a bar.

static int

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

static int

Specifies a layout for custom navigation.

static int

Preferred corner radius of dialogs.

static int

Preferred padding for dialog content.

static int

Theme to use for dialogs spawned from this theme.

static int

Options affecting how the action bar is displayed.

static int

Specifies the drawable used for item dividers.

static int

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

static int

Size of padding on either end of a divider.

static int

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

static int

The total size of the drawable

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

static int

ListPopupWindow compatibility

static int

EditText background drawable.

static int

EditText text foreground color.

static int

Default EditText style.

static int

Elevation for the action bar itself

static int

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

static int

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

static int

The attribute for the font family.

static int

OpenType font variation settings, available after api 26.

static int

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

static int

Go button icon

static int

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

static int

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

static int

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

static int

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

static int

Specifies the drawable used for the application icon.

static int

Tint to apply to the icon.

static int

Blending mode used to apply the icon tint.

static int

The default state of the SearchView.

static int

ImageButton background drawable.

static int

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

static int

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

static int

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

static int

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

static int

The layout to use for the search view.

static int

Explicit height between lines of text.

static int

Drawable used as a background for selected list items.

static int

Animated Drawable to use for multiple choice indicators.

static int

Animated Drawable to use for single choice indicators.

static int

The list divider used in alert dialogs.

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

static int

The preferred list item height.

static int

A larger, more robust list item height.

static int

A smaller, sleeker list item height.

static int

The preferred padding along the end edge of list items.

static int

The preferred padding along the left edge of list items.

static int

The preferred padding along the right edge of list items.

static int

The preferred padding along the start edge of list items.

static int

Specifies the drawable used for the application logo.

static int

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

static int

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

static int

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

static int

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

static int

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

static int

The type of navigation to use.

static int

Whether the popup window should overlap its anchor view.

static int

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

static int

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

static int

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

static int

Default PopupMenu style.

static int

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

static int

Default PopupWindow style.

static int

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

static int

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

static int

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

static int

Background for the section containing the search query

static int

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

static int

Default RadioButton style.

static int

Default RatingBar style.

static int

Indicator RatingBar style.

static int

Small indicator RatingBar style.

static int

Search icon displayed as a text field hint

static int

Search icon

static int

Style for the search query widget.

static int

Default SeekBar style.

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.

static int

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

static int

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

static int

Setting for which dividers to show.

static int

Whether to draw on/off text.

static int

Whether bars should rotate or not during transition

static int

Default Spinner style.

static int

Default Spinner style.

static int

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

static int

Sets a drawable as the content of this ImageView.

static int

State identifier indicating the popup will be above the anchor.

static int

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

static int

Specifies subtitle text used for navigationMode="normal"

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

static int

A color to apply to the subtitle string.

static int

Specifies a style to use for subtitle text.

static int

Layout for query suggestion rows

static int

Minimum width for the switch component

static int

Minimum space between the switch and caption text

static int

Default style for the Switch widget.

static int

TextAppearance style for text displayed on the switch thumb.

static int

Present the text in ALL CAPS.

static int

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

static int

The preferred TextAppearance for the primary text of list items.

static int

The preferred TextAppearance for the secondary text of list items.

static int

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

static int

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

static int

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

static int

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

static int

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

static int

Color of list item text in alert dialogs.

static int

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

static int

Deprecated.

static int

The thickness (stroke size) for the bar paint

static int

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

static int

Tint to apply to the thumb drawable.

static int

Blending mode used to apply the thumb tint.

static int

Drawable displayed at each progress position on a seekbar.

static int

Tint to apply to the tick mark drawable.

static int

Blending mode used to apply the tick mark tint.

static int

Tint to apply to the image source.

static int

Blending mode used to apply the image source tint.

static int

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

static int

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

static int

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

static int

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

static int

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

static int

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

static int

{@deprecated Use titleMargin}

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

static int

A color to apply to the title string.

static int

Specifies a style to use for title text.

static int

Default Toolar NavigationButtonStyle

static int

Default Toolbar style.

static int

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

static int

Tint to apply to the track.

static int

Blending mode used to apply the track tint.

static int

Voice button icon

static int

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

static int

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

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

static int

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

Public constructors

Public fields

actionBarDivider

public static int actionBarDivider

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

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

actionBarItemBackground

public static int actionBarItemBackground

Custom item state list drawable background for action bar items.

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

actionBarPopupTheme

public static int actionBarPopupTheme

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

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

actionBarSize

public static int actionBarSize

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

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

Must be one of the following constant values.

Constant Value Description
wrap_content 0

actionBarSplitStyle

public static int actionBarSplitStyle

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

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

actionBarStyle

public static int actionBarStyle

Reference to a style for the Action Bar

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

actionBarTabBarStyle

public static int actionBarTabBarStyle

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

actionBarTabStyle

public static int actionBarTabStyle

Default style for tabs within an action bar

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

actionBarTabTextStyle

public static int actionBarTabTextStyle

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

actionBarTheme

public static int actionBarTheme

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

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

actionBarWidgetTheme

public static int actionBarWidgetTheme

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

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

actionButtonStyle

public static int actionButtonStyle

Default action button style.

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

actionDropDownStyle

public static int actionDropDownStyle

Default ActionBar dropdown style.

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

actionLayout

public static int actionLayout

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

public static int actionMenuTextAppearance

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

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

actionMenuTextColor

public static int actionMenuTextColor

Color for text that appears within action menu items.

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

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

actionModeBackground

public static int actionModeBackground

Background drawable to use for action mode UI

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

actionModeCloseButtonStyle

public static int actionModeCloseButtonStyle

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

actionModeCloseContentDescription

public static int actionModeCloseContentDescription

Content description to use for the close action mode button

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

actionModeCloseDrawable

public static int actionModeCloseDrawable

Drawable to use for the close action mode button

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

actionModeCopyDrawable

public static int actionModeCopyDrawable

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

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

actionModeCutDrawable

public static int actionModeCutDrawable

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

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

actionModeFindDrawable

public static int actionModeFindDrawable

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

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

actionModePasteDrawable

public static int actionModePasteDrawable

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

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

actionModeSelectAllDrawable

public static int actionModeSelectAllDrawable

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

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

actionModeShareDrawable

public static int actionModeShareDrawable

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

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

actionModeSplitBackground

public static int actionModeSplitBackground

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

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

actionModeStyle

public static int actionModeStyle

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

actionModeTheme

public static int actionModeTheme

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

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

actionModeWebSearchDrawable

public static int actionModeWebSearchDrawable

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

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

actionOverflowButtonStyle

public static int actionOverflowButtonStyle

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

actionOverflowMenuStyle

public static int actionOverflowMenuStyle

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

actionProviderClass

public static int actionProviderClass

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

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

actionViewClass

public static int actionViewClass

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

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

alertDialogStyle

public static int alertDialogStyle

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

alertDialogTheme

public static int alertDialogTheme

Theme to use for alert dialogs spawned from this theme.

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

arrowHeadLength

public static int arrowHeadLength

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

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

arrowShaftLength

public static int arrowShaftLength

The length of the shaft when formed to make an arrow

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

autoCompleteTextViewStyle

public static int autoCompleteTextViewStyle

Default AutoCompleteTextView style.

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

autoSizeMaxTextSize

public static int autoSizeMaxTextSize

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

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

autoSizeMinTextSize

public static int autoSizeMinTextSize

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

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

autoSizePresetSizes

public static int autoSizePresetSizes

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

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

autoSizeStepGranularity

public static int autoSizeStepGranularity

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

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

autoSizeTextType

public static int autoSizeTextType

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

Must be one of the following constant values.

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

background

public static int background

Specifies a background drawable for the action bar.

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

backgroundSplit

public static int backgroundSplit

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

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

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

backgroundStacked

public static int backgroundStacked

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

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

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

backgroundTint

public static int backgroundTint

Tint to apply to the background.

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

backgroundTintMode

public static int backgroundTintMode

Blending mode used to apply the background tint.

Must be one of the following constant values.

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

public static int barLength

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

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

borderlessButtonStyle

public static int borderlessButtonStyle

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

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

buttonBarButtonStyle

public static int buttonBarButtonStyle

Style for buttons within button bars

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

buttonBarNegativeButtonStyle

public static int buttonBarNegativeButtonStyle

Style for the "negative" buttons within button bars

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

buttonBarNeutralButtonStyle

public static int buttonBarNeutralButtonStyle

Style for the "neutral" buttons within button bars

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

buttonBarPositiveButtonStyle

public static int buttonBarPositiveButtonStyle

Style for the "positive" buttons within button bars

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

buttonBarStyle

public static int buttonBarStyle

Style for button bars

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

buttonGravity

public static int buttonGravity

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

public static int buttonStyle

Normal Button style.

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

buttonStyleSmall

public static int buttonStyleSmall

Small Button style.

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

buttonTint

public static int buttonTint

Tint to apply to the button drawable.

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

buttonTintMode

public static int buttonTintMode

Blending mode used to apply the button tint.

Must be one of the following constant values.

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

public static int checkboxStyle

Default Checkbox style.

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

checkedTextViewStyle

public static int checkedTextViewStyle

Default CheckedTextView style.

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

closeIcon

public static int closeIcon

Close button icon

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

closeItemLayout

public static int closeItemLayout

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

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

collapseContentDescription

public static int collapseContentDescription

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

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

collapseIcon

public static int collapseIcon

Icon drawable to use for the collapse button.

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

color

public static int color

The drawing color for the bars

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

colorAccent

public static int colorAccent

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

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

colorBackgroundFloating

public static int colorBackgroundFloating

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

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

colorButtonNormal

public static int colorButtonNormal

The color applied to framework buttons in their normal state.

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

colorControlActivated

public static int colorControlActivated

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

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

colorControlHighlight

public static int colorControlHighlight

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

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

colorControlNormal

public static int colorControlNormal

The color applied to framework controls in their normal state.

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

colorError

public static int colorError

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

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

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

colorPrimary

public static int colorPrimary

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

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

colorPrimaryDark

public static int colorPrimaryDark

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

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

commitIcon

public static int commitIcon

Commit icon shown in the query suggestion row

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

contentInsetEnd

public static int contentInsetEnd

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

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

contentInsetEndWithActions

public static int contentInsetEndWithActions

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

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

contentInsetLeft

public static int contentInsetLeft

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

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

contentInsetRight

public static int contentInsetRight

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

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

contentInsetStart

public static int contentInsetStart

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

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

contentInsetStartWithNavigation

public static int contentInsetStartWithNavigation

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

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

customNavigationLayout

public static int customNavigationLayout

Specifies a layout for custom navigation. Overrides navigationMode.

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

dialogCornerRadius

public static int dialogCornerRadius

Preferred corner radius of dialogs.

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

dialogPreferredPadding

public static int dialogPreferredPadding

Preferred padding for dialog content.

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

dialogTheme

public static int dialogTheme

Theme to use for dialogs spawned from this theme.

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

displayOptions

public static int displayOptions

Options affecting how the action bar is displayed.

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

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

divider

public static int divider

Specifies the drawable used for item dividers.

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

dividerHorizontal

public static int dividerHorizontal

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

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

dividerPadding

public static int dividerPadding

Size of padding on either end of a divider.

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

dividerVertical

public static int dividerVertical

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

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

drawableSize

public static int drawableSize

The total size of the drawable

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

drawerArrowStyle

public static int drawerArrowStyle

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

public static int dropDownListViewStyle

ListPopupWindow compatibility

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

editTextBackground

public static int editTextBackground

EditText background drawable.

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

editTextColor

public static int editTextColor

EditText text foreground color.

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

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

editTextStyle

public static int editTextStyle

Default EditText style.

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

elevation

public static int elevation

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

public static int emojiCompatEnabled

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

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

firstBaselineToTopHeight

public static int firstBaselineToTopHeight

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

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

fontFamily

public static int fontFamily

The attribute for the font family.

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

fontVariationSettings

public static int fontVariationSettings

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

public static int gapBetweenBars

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

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

goIcon

public static int goIcon

Go button icon

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

height

public static int height

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

hideOnContentScroll

public static int hideOnContentScroll

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

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

homeAsUpIndicator

public static int homeAsUpIndicator

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

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

homeLayout

public static int homeLayout

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

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

icon

public static int icon

Specifies the drawable used for the application icon.

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

iconTint

public static int iconTint

Tint to apply to the icon.

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

iconTintMode

public static int iconTintMode

Blending mode used to apply the icon tint.

Must be one of the following constant values.

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

public static int iconifiedByDefault

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

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

imageButtonStyle

public static int imageButtonStyle

ImageButton background drawable.

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

indeterminateProgressStyle

public static int indeterminateProgressStyle

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

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

isLightTheme

public static int isLightTheme

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

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

itemPadding

public static int itemPadding

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

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

lastBaselineToBottomHeight

public static int lastBaselineToBottomHeight

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

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

layout

public static int layout

The layout to use for the search view.

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

lineHeight

public static int lineHeight

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

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

listChoiceBackgroundIndicator

public static int listChoiceBackgroundIndicator

Drawable used as a background for selected list items.

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

listChoiceIndicatorMultipleAnimated

public static int listChoiceIndicatorMultipleAnimated

Animated Drawable to use for multiple choice indicators.

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

listChoiceIndicatorSingleAnimated

public static int listChoiceIndicatorSingleAnimated

Animated Drawable to use for single choice indicators.

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

listDividerAlertDialog

public static int listDividerAlertDialog

The list divider used in alert dialogs.

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

listPopupWindowStyle

public static int listPopupWindowStyle

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

listPreferredItemHeight

public static int listPreferredItemHeight

The preferred list item height.

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

listPreferredItemHeightLarge

public static int listPreferredItemHeightLarge

A larger, more robust list item height.

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

listPreferredItemHeightSmall

public static int listPreferredItemHeightSmall

A smaller, sleeker list item height.

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

listPreferredItemPaddingEnd

public static int listPreferredItemPaddingEnd

The preferred padding along the end edge of list items.

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

listPreferredItemPaddingLeft

public static int listPreferredItemPaddingLeft

The preferred padding along the left edge of list items.

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

listPreferredItemPaddingRight

public static int listPreferredItemPaddingRight

The preferred padding along the right edge of list items.

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

listPreferredItemPaddingStart

public static int listPreferredItemPaddingStart

The preferred padding along the start edge of list items.

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

logo

public static int logo

Specifies the drawable used for the application logo.

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

logoDescription

public static int logoDescription

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

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

maxButtonHeight

public static int maxButtonHeight

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

measureWithLargestChild

public static int measureWithLargestChild

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

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

public static int navigationContentDescription

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

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

public static int navigationIcon

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

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

public static int navigationMode

The type of navigation to use.

Must be one of the following constant values.

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

public static int overlapAnchor

Whether the popup window should overlap its anchor view.

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

paddingEnd

public static int paddingEnd

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

public static int paddingStart

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

public static int panelBackground

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

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

popupMenuStyle

public static int popupMenuStyle

Default PopupMenu style.

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

popupTheme

public static int popupTheme

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

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

popupWindowStyle

public static int popupWindowStyle

Default PopupWindow style.

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

preserveIconSpacing

public static int preserveIconSpacing

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

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

progressBarPadding

public static int progressBarPadding

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

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

progressBarStyle

public static int progressBarStyle

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

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

queryBackground

public static int queryBackground

Background for the section containing the search query

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

queryHint

public static int queryHint

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

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

radioButtonStyle

public static int radioButtonStyle

Default RadioButton style.

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

ratingBarStyle

public static int ratingBarStyle

Default RatingBar style.

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

ratingBarStyleIndicator

public static int ratingBarStyleIndicator

Indicator RatingBar style.

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

ratingBarStyleSmall

public static int ratingBarStyleSmall

Small indicator RatingBar style.

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

searchHintIcon

public static int searchHintIcon

Search icon displayed as a text field hint

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

searchIcon

public static int searchIcon

Search icon

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

searchViewStyle

public static int searchViewStyle

Style for the search query widget.

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

seekBarStyle

public static int seekBarStyle

Default SeekBar style.

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

selectableItemBackground

public static int selectableItemBackground

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

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

selectableItemBackgroundBorderless

public static int selectableItemBackgroundBorderless

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

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

showAsAction

public static int showAsAction

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

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

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

public static int showDividers

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

public static int showText

Whether to draw on/off text.

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

spinBars

public static int spinBars

Whether bars should rotate or not during transition

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

spinnerDropDownItemStyle

public static int spinnerDropDownItemStyle

Default Spinner style.

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

spinnerStyle

public static int spinnerStyle

Default Spinner style.

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

splitTrack

public static int splitTrack

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

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

srcCompat

public static int srcCompat

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

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

state_above_anchor

public static int state_above_anchor

State identifier indicating the popup will be above the anchor.

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

submitBackground

public static int submitBackground

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

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

subtitle

public static int subtitle

Specifies subtitle text used for navigationMode="normal"

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

subtitleTextAppearance

public static int subtitleTextAppearance

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

subtitleTextColor

public static int subtitleTextColor

A color to apply to the subtitle string.

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

subtitleTextStyle

public static int subtitleTextStyle

Specifies a style to use for subtitle text.

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

suggestionRowLayout

public static int suggestionRowLayout

Layout for query suggestion rows

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

switchMinWidth

public static int switchMinWidth

Minimum width for the switch component

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

switchPadding

public static int switchPadding

Minimum space between the switch and caption text

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

switchStyle

public static int switchStyle

Default style for the Switch widget.

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

switchTextAppearance

public static int switchTextAppearance

TextAppearance style for text displayed on the switch thumb.

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

textAllCaps

public static int textAllCaps

Present the text in ALL CAPS. This may use a small-caps form when available.

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

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

textAppearanceLargePopupMenu

public static int textAppearanceLargePopupMenu

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

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

textAppearanceListItem

public static int textAppearanceListItem

The preferred TextAppearance for the primary text of list items.

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

textAppearanceListItemSecondary

public static int textAppearanceListItemSecondary

The preferred TextAppearance for the secondary text of list items.

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

textAppearanceListItemSmall

public static int textAppearanceListItemSmall

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

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

textAppearancePopupMenuHeader

public static int textAppearancePopupMenuHeader

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

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

textAppearanceSearchResultSubtitle

public static int textAppearanceSearchResultSubtitle

Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color.

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

textAppearanceSearchResultTitle

public static int textAppearanceSearchResultTitle

Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color.

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

textAppearanceSmallPopupMenu

public static int textAppearanceSmallPopupMenu

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

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

textColorAlertDialogListItem

public static int textColorAlertDialogListItem

Color of list item text in alert dialogs.

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

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

textLocale

public static int textLocale

Set the textLocale by a comma-separated language tag string, for example "ja-JP,zh-CN". This attribute only takes effect on API 21 and above. Before API 24, only the first language tag is used. Starting from API 24, the string will be converted into a 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

public static int theme

Deprecated.

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

thickness

public static int thickness

The thickness (stroke size) for the bar paint

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

thumbTextPadding

public static int thumbTextPadding

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

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

thumbTint

public static int thumbTint

Tint to apply to the thumb drawable.

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

thumbTintMode

public static int thumbTintMode

Blending mode used to apply the thumb tint.

Must be one of the following constant values.

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

public static int tickMark

Drawable displayed at each progress position on a seekbar.

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

tickMarkTint

public static int tickMarkTint

Tint to apply to the tick mark drawable.

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

tickMarkTintMode

public static int tickMarkTintMode

Blending mode used to apply the tick mark tint.

Must be one of the following constant values.

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

public static int tint

Tint to apply to the image source.

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

tintMode

public static int tintMode

Blending mode used to apply the image source tint.

Must be one of the following constant values.

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

public static int title

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

titleMargin

public static int titleMargin

Specifies extra space on the left, start, right and end sides of the toolbar's title. Margin values should be positive.

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

titleMarginBottom

public static int titleMarginBottom

Specifies extra space on the bottom side of the toolbar's title. If both this attribute and titleMargin are specified, then this attribute takes precedence. Margin values should be positive.

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

titleMarginEnd

public static int titleMarginEnd

Specifies extra space on the end side of the toolbar's title. If both this attribute and titleMargin are specified, then this attribute takes precedence. Margin values should be positive.

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

titleMarginStart

public static int titleMarginStart

Specifies extra space on the start side of the toolbar's title. If both this attribute and titleMargin are specified, then this attribute takes precedence. Margin values should be positive.

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

titleMarginTop

public static int titleMarginTop

Specifies extra space on the top side of the toolbar's title. If both this attribute and titleMargin are specified, then this attribute takes precedence. Margin values should be positive.

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

titleMargins

public static int titleMargins

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

public static int titleTextAppearance

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

titleTextColor

public static int titleTextColor

A color to apply to the title string.

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

titleTextStyle

public static int titleTextStyle

Specifies a style to use for title text.

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

toolbarNavigationButtonStyle

public static int toolbarNavigationButtonStyle

Default Toolar NavigationButtonStyle

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

toolbarStyle

public static int toolbarStyle

Default Toolbar style.

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

track

public static int track

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

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

trackTint

public static int trackTint

Tint to apply to the track.

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

trackTintMode

public static int trackTintMode

Blending mode used to apply the track tint.

Must be one of the following constant values.

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

public static int voiceIcon

Voice button icon

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

windowActionBar

public static int windowActionBar

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

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

windowActionBarOverlay

public static int windowActionBarOverlay

Flag indicating whether this window's Action Bar should overlay application content. Does nothing if the window would not have an Action Bar.

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

windowActionModeOverlay

public static int windowActionModeOverlay

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

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

windowNoTitle

public static int windowNoTitle

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

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

Public constructors

attr

public attr()