Skip to content

Most visited

Recently visited

navigation

R.attr

public static final class R.attr
extends Object

java.lang.Object
   ↳ android.support.v7.appcompat.R.attr


Summary

Fields

public static int actionBarDivider

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

public static int actionBarItemBackground

Custom item state list drawable background for action bar items.

public static int actionBarPopupTheme

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

public static int actionBarSize

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

public static int actionBarSplitStyle

Reference to a style for the split Action Bar.

public static int actionBarStyle

Reference to a style for the Action Bar

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

public static int actionBarTabBarStyle

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

public static int actionBarTabStyle

Default style for tabs within an action bar

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

public static int actionBarTabTextStyle

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

public static int actionBarTheme

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

public static int actionBarWidgetTheme

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

public static int actionButtonStyle

Default action button style.

public static int actionDropDownStyle

Default ActionBar dropdown style.

public static int actionLayout

An optional layout to be used as an action view.

public static int actionMenuTextAppearance

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

public static int actionMenuTextColor

Color for text that appears within action menu items.

public static int actionModeBackground

Background drawable to use for action mode UI

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

public static int actionModeCloseButtonStyle

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

public static int actionModeCloseDrawable

Drawable to use for the close action mode button

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

public static int actionModeCopyDrawable

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

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

public static int actionModeCutDrawable

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

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

public static int actionModeFindDrawable

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

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

public static int actionModePasteDrawable

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

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

public static int actionModePopupWindowStyle

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

public static int actionModeSelectAllDrawable

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

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

public static int actionModeShareDrawable

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

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

public static int actionModeSplitBackground

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

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

public static int actionModeStyle

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

public static int actionModeWebSearchDrawable

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

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

public static int actionOverflowButtonStyle

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

public static int actionOverflowMenuStyle

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

public static int actionProviderClass

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

public static int actionViewClass

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

public static int activityChooserViewStyle

Default ActivityChooserView style.

public static int alertDialogButtonGroupStyle

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

public static int alertDialogCenterButtons

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

public static int alertDialogStyle

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

public static int alertDialogTheme

Theme to use for alert dialogs spawned from this theme.

public static int allowStacking

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

public static int alpha

Alpha multiplier applied to the base color.

public static int arrowHeadLength

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

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

public static int arrowShaftLength

The length of the shaft when formed to make an arrow

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

public static int autoCompleteTextViewStyle

Default AutoCompleteTextView style.

public static int background

Specifies a background drawable for the action bar.

public static int backgroundSplit

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

public static int backgroundStacked

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

public static int backgroundTint

Tint to apply to the background.

public static int backgroundTintMode

Blending mode used to apply the background tint.

public static int barLength

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

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

public static int borderlessButtonStyle

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

public static int buttonBarButtonStyle

Style for buttons within button bars

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

public static int buttonBarNegativeButtonStyle

Style for the "negative" buttons within button bars

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

public static int buttonBarNeutralButtonStyle

Style for the "neutral" buttons within button bars

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

public static int buttonBarPositiveButtonStyle

Style for the "positive" buttons within button bars

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

public static int buttonBarStyle

Style for button bars

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

public static int buttonGravity

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

public static int buttonPanelSideLayout

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

public static int buttonStyle

Normal Button style.

public static int buttonStyleSmall

Small Button style.

public static int buttonTint

Tint to apply to the button drawable.

public static int buttonTintMode

Blending mode used to apply the button tint.

public static int checkboxStyle

Default Checkbox style.

public static int checkedTextViewStyle

Default CheckedTextView style.

public static int closeIcon

Close button icon

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

public static int closeItemLayout

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

public static int collapseContentDescription

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

public static int collapseIcon

Icon drawable to use for the collapse button.

public static int color

The drawing color for the bars

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

public static int colorAccent

Bright complement to the primary branding color.

public static int colorBackgroundFloating

Default color of background imagery for floating components, ex.

public static int colorButtonNormal

The color applied to framework buttons in their normal state.

public static int colorControlActivated

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

public static int colorControlHighlight

The color applied to framework control highlights (ex.

public static int colorControlNormal

The color applied to framework controls in their normal state.

public static int colorPrimary

The primary branding color for the app.

public static int colorPrimaryDark

Dark variant of the primary branding color.

public static int colorSwitchThumbNormal

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

public static int commitIcon

Commit icon shown in the query suggestion row

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

public static int contentDescription

The content description associated with the item.

public static int contentInsetEnd

Minimum inset for content views within a bar.

public static int contentInsetEndWithActions

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

public static int contentInsetLeft

Minimum inset for content views within a bar.

public static int contentInsetRight

Minimum inset for content views within a bar.

public static int contentInsetStart

Minimum inset for content views within a bar.

public static int contentInsetStartWithNavigation

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

public static int controlBackground

The background used by framework controls.

public static int customNavigationLayout

Specifies a layout for custom navigation.

public static int defaultQueryHint

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

public static int dialogPreferredPadding

Preferred padding for dialog content.

public static int dialogTheme

Theme to use for dialogs spawned from this theme.

public static int displayOptions

Options affecting how the action bar is displayed.

public static int divider

Specifies the drawable used for item dividers.

public static int dividerHorizontal

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

public static int dividerPadding

Size of padding on either end of a divider.

public static int dividerVertical

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

public static int drawableSize

The total size of the drawable

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

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

public static int dropdownListPreferredItemHeight

The preferred item height for dropdown lists.

public static int editTextBackground

EditText background drawable.

public static int editTextColor

EditText text foreground color.

public static int editTextStyle

Default EditText style.

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

public static int expandActivityOverflowButtonDrawable

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

public static int gapBetweenBars

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

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

public static int goIcon

Go button icon

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

public static int height

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

public static int hideOnContentScroll

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

public static int homeAsUpIndicator

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

public static int homeLayout

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

public static int icon

Specifies the drawable used for the application icon.

public static int iconifiedByDefault

The default state of the SearchView.

public static int imageButtonStyle

ImageButton background drawable.

public static int indeterminateProgressStyle

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

public static int initialActivityCount

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

public static int isLightTheme

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

public static int itemPadding

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

public static int layout

The layout to use for the search view.

public static int listChoiceBackgroundIndicator

Drawable used as a background for selected list items.

public static int listDividerAlertDialog

The list divider used in alert dialogs.

public static int listItemLayout

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

public static int listLayout

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

public static int listMenuViewStyle

Default menu-style ListView style.

public static int listPopupWindowStyle

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

public static int listPreferredItemHeight

The preferred list item height.

public static int listPreferredItemHeightLarge

A larger, more robust list item height.

public static int listPreferredItemHeightSmall

A smaller, sleeker list item height.

public static int listPreferredItemPaddingLeft

The preferred padding along the left edge of list items.

public static int listPreferredItemPaddingRight

The preferred padding along the right edge of list items.

public static int logo

Specifies the drawable used for the application logo.

public static int logoDescription

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

public static int maxButtonHeight

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

public static int measureWithLargestChild

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

public static int multiChoiceItemLayout

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

public static int navigationContentDescription

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

public static int navigationIcon

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

public static int navigationMode

The type of navigation to use.

public static int overlapAnchor

Whether the popup window should overlap its anchor view.

public static int paddingBottomNoButtons

Bottom padding to use when no buttons are present.

public static int paddingEnd

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

public static int paddingStart

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

public static int paddingTopNoTitle

Top padding to use when no title is present.

public static int panelBackground

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

public static int panelMenuListTheme

Default Panel Menu style.

public static int panelMenuListWidth

Default Panel Menu width.

public static int popupMenuStyle

Default PopupMenu style.

public static int popupTheme

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

public static int popupWindowStyle

Default PopupWindow style.

public static int preserveIconSpacing

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

public static int progressBarPadding

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

public static int progressBarStyle

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

public static int queryBackground

Background for the section containing the search query

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

public static int queryHint

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

public static int radioButtonStyle

Default RadioButton style.

public static int ratingBarStyle

Default RatingBar style.

public static int ratingBarStyleIndicator

Indicator RatingBar style.

public static int ratingBarStyleSmall

Small indicator RatingBar style.

public static int searchHintIcon

Search icon displayed as a text field hint

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

public static int searchIcon

Search icon

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

public static int searchViewStyle

Style for the search query widget.

public static int seekBarStyle

Default SeekBar style.

public static int selectableItemBackground

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

public static int selectableItemBackgroundBorderless

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

public static int showAsAction

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

public static int showDividers

Setting for which dividers to show.

public static int showText

Whether to draw on/off text.

public static int showTitle

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

public static int singleChoiceItemLayout

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

public static int spinBars

Whether bars should rotate or not during transition

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

public static int spinnerDropDownItemStyle

Default Spinner style.

public static int spinnerStyle

Default Spinner style.

public static int splitTrack

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

public static int srcCompat

Sets a drawable as the content of this ImageView.

public static int state_above_anchor

State identifier indicating the popup will be above the anchor.

public static int subMenuArrow

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

public static int submitBackground

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

public static int subtitle

Specifies subtitle text used for navigationMode="normal"

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

public static int subtitleTextAppearance

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

public static int subtitleTextColor

A color to apply to the subtitle string.

public static int subtitleTextStyle

Specifies a style to use for subtitle text.

public static int suggestionRowLayout

Layout for query suggestion rows

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

public static int switchMinWidth

Minimum width for the switch component

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

public static int switchPadding

Minimum space between the switch and caption text

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

public static int switchStyle

Default style for the Switch widget.

public static int switchTextAppearance

TextAppearance style for text displayed on the switch thumb.

public static int textAllCaps

Present the text in ALL CAPS.

public static int textAppearanceLargePopupMenu

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

public static int textAppearanceListItem

The preferred TextAppearance for the primary text of list items.

public static int textAppearanceListItemSmall

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

public static int textAppearancePopupMenuHeader

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

public static int textAppearanceSearchResultSubtitle

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

public static int textAppearanceSearchResultTitle

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

public static int textAppearanceSmallPopupMenu

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

public static int textColorAlertDialogListItem

Color of list item text in alert dialogs.

public static int textColorSearchUrl

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

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

public static int theme

Deprecated.

public static int thickness

The thickness (stroke size) for the bar paint

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

public static int thumbTextPadding

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

public static int thumbTint

Tint to apply to the thumb drawable.

public static int thumbTintMode

Blending mode used to apply the thumb tint.

public static int tickMark

Drawable displayed at each progress position on a seekbar.

public static int tickMarkTint

Tint to apply to the tick mark drawable.

public static int tickMarkTintMode

Blending mode used to apply the tick mark tint.

public static int title

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

public static int titleMargin

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

public static int titleMarginBottom

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

public static int titleMarginEnd

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

public static int titleMarginStart

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

public static int titleMarginTop

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

public static int titleMargins

This field was deprecated in API level 24.0.0. Use titleMargin

public static int titleTextAppearance

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

public static int titleTextColor

A color to apply to the title string.

public static int titleTextStyle

Specifies a style to use for title text.

public static int toolbarNavigationButtonStyle

Default Toolar NavigationButtonStyle

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

public static int toolbarStyle

Default Toolbar style.

public static int tooltipText

The tooltip text associated with the item.

public static int track

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

public static int trackTint

Tint to apply to the track.

public static int trackTintMode

Blending mode used to apply the track tint.

public static int voiceIcon

Voice button icon

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

public static int windowActionBar

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

public static int windowActionBarOverlay

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

public static int windowActionModeOverlay

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

public static int windowFixedHeightMajor

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

public static int windowFixedHeightMinor

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

public static int windowFixedWidthMajor

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

public static int windowFixedWidthMinor

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

public static int windowMinWidthMajor

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

public static int windowMinWidthMinor

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

public static int windowNoTitle

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

Public constructors

R.attr()

Inherited methods

From class java.lang.Object

Fields

actionBarDivider

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
int actionBarSize

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

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

Must be one of the following constant values.

ConstantValueDescription
wrap_content0

actionBarSplitStyle

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
int actionLayout

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

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

actionMenuTextAppearance

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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".

actionModeCloseDrawable

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
int actionModePasteDrawable

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

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

actionModePopupWindowStyle

added in version 22.2.0
int actionModePopupWindowStyle

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

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

actionModeSelectAllDrawable

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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".

actionModeWebSearchDrawable

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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(android.view.ActionProvider) for more info.

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

actionViewClass

added in version 22.2.0
int actionViewClass

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

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

activityChooserViewStyle

added in version 22.2.0
int activityChooserViewStyle

Default ActivityChooserView style.

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

alertDialogButtonGroupStyle

added in version 22.2.0
int alertDialogButtonGroupStyle

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

alertDialogCenterButtons

added in version 22.2.0
int alertDialogCenterButtons

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

alertDialogStyle

added in version 22.2.0
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

added in version 22.2.0
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".

allowStacking

added in version 23.1.0
int allowStacking

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

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

alpha

added in version 24.0.0
int alpha

Alpha multiplier applied to the base color.

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

arrowHeadLength

added in version 23.0.0
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

added in version 23.0.0
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

added in version 22.2.0
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".

background

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
int backgroundTint

Tint to apply to the background.

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

backgroundTintMode

added in version 22.2.0
int backgroundTintMode

Blending mode used to apply the background tint.

Must be one of the following constant values.

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

barLength

added in version 23.0.0
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

added in version 22.2.1
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 24.0.0
int buttonGravity

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

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

buttonPanelSideLayout

added in version 22.2.0
int buttonPanelSideLayout

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

buttonStyle

added in version 22.2.0
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

added in version 22.2.0
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

added in version 23.0.0
int buttonTint

Tint to apply to the button drawable.

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

buttonTintMode

added in version 23.0.0
int buttonTintMode

Blending mode used to apply the button tint.

Must be one of the following constant values.

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

checkboxStyle

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
int color

The drawing color for the bars

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

colorAccent

added in version 22.2.0
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

added in version 24.0.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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".

colorPrimary

added in version 22.2.0
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

added in version 22.2.0
int colorPrimaryDark

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

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

colorSwitchThumbNormal

added in version 22.2.0
int colorSwitchThumbNormal

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

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

commitIcon

added in version 22.2.0
int commitIcon

Commit icon shown in the query suggestion row

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

contentDescription

int contentDescription

The content description associated with the item.

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

contentInsetEnd

added in version 22.2.0
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

added in version 24.0.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 24.0.0
int contentInsetStartWithNavigation

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

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

controlBackground

added in version 23.0.0
int controlBackground

The background used by framework controls.

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

customNavigationLayout

added in version 22.2.0
int customNavigationLayout

Specifies a layout for custom navigation. Overrides navigationMode.

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

defaultQueryHint

added in version 22.2.0
int defaultQueryHint

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

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

dialogPreferredPadding

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
int displayOptions

Options affecting how the action bar is displayed.

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

ConstantValueDescription
disableHome20
homeAsUp4
none0
showCustom10
showHome2
showTitle8
useLogo1

divider

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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".

dropDownListViewStyle

added in version 22.2.0
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".

dropdownListPreferredItemHeight

added in version 22.2.0
int dropdownListPreferredItemHeight

The preferred item height for dropdown lists.

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

editTextBackground

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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).

expandActivityOverflowButtonDrawable

added in version 22.2.0
int expandActivityOverflowButtonDrawable

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

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

gapBetweenBars

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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".

iconifiedByDefault

added in version 22.2.0
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

added in version 23.1.0
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

added in version 22.2.0
int indeterminateProgressStyle

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

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

initialActivityCount

added in version 22.2.0
int initialActivityCount

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

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

isLightTheme

added in version 22.2.0
int isLightTheme

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

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

itemPadding

added in version 22.2.0
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).

layout

added in version 22.2.0
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".

listChoiceBackgroundIndicator

added in version 22.2.0
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".

listDividerAlertDialog

added in version 22.2.0
int listDividerAlertDialog

The list divider used in alert dialogs.

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

listItemLayout

added in version 22.2.0
int listItemLayout

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

listLayout

added in version 22.2.0
int listLayout

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

listMenuViewStyle

added in version 24.0.0
int listMenuViewStyle

Default menu-style ListView style.

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

listPopupWindowStyle

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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).

listPreferredItemPaddingLeft

added in version 22.2.0
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

added in version 22.2.0
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).

logo

added in version 22.2.0
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

added in version 23.0.0
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

added in version 22.2.0
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

added in version 22.2.0
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".

multiChoiceItemLayout

added in version 22.2.0
int multiChoiceItemLayout

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

navigationContentDescription

added in version 22.2.0
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;

navigationIcon

added in version 22.2.0
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".

navigationMode

added in version 22.2.0
int navigationMode

The type of navigation to use.

Must be one of the following constant values.

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

overlapAnchor

added in version 22.2.0
int overlapAnchor

Whether the popup window should overlap its anchor view.

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

paddingBottomNoButtons

int paddingBottomNoButtons

Bottom padding to use when no buttons are present.

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

paddingEnd

added in version 22.2.0
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

added in version 22.2.0
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).

paddingTopNoTitle

int paddingTopNoTitle

Top padding to use when no title is present.

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

panelBackground

added in version 22.2.0
int panelBackground

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

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

panelMenuListTheme

added in version 22.2.0
int panelMenuListTheme

Default Panel Menu style.

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

panelMenuListWidth

added in version 22.2.0
int panelMenuListWidth

Default Panel Menu width.

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

popupMenuStyle

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 23.2.0
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

added in version 23.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 23.1.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
int showAsAction

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

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

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

showDividers

added in version 22.2.0
int showDividers

Setting for which dividers to show.

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

ConstantValueDescription
beginning1
end4
middle2
none0

showText

added in version 22.2.0
int showText

Whether to draw on/off text.

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

showTitle

int showTitle

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

singleChoiceItemLayout

added in version 22.2.0
int singleChoiceItemLayout

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

spinBars

added in version 22.2.0
int spinBars

Whether bars should rotate or not during transition

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

spinnerDropDownItemStyle

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 23.2.0
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

added in version 22.2.0
int state_above_anchor

State identifier indicating the popup will be above the anchor.

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

subMenuArrow

added in version 24.0.0
int subMenuArrow

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

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

submitBackground

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 23.0.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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".

textAppearanceListItemSmall

added in version 22.2.0
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

added in version 24.0.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
int textColorAlertDialogListItem

Color of list item text in alert dialogs.

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

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

textColorSearchUrl

added in version 22.2.0
int textColorSearchUrl

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

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

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

theme

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 24.0.0
int thumbTint

Tint to apply to the thumb drawable.

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

thumbTintMode

added in version 24.0.0
int thumbTintMode

Blending mode used to apply the thumb tint.

Must be one of the following constant values.

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

tickMark

added in version 24.0.0
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

added in version 24.0.0
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

added in version 24.0.0
int tickMarkTintMode

Blending mode used to apply the tick mark tint.

Must be one of the following constant values.

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

title

added in version 22.2.0
int title

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

titleMargin

added in version 24.0.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
int titleMargins

This field was deprecated in API level 24.0.0.
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

added in version 22.2.0
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

added in version 23.0.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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".

tooltipText

int tooltipText

The tooltip text associated with the item.

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

track

added in version 22.2.0
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

added in version 24.0.0
int trackTint

Tint to apply to the track.

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

trackTintMode

added in version 24.0.0
int trackTintMode

Blending mode used to apply the track tint.

Must be one of the following constant values.

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

voiceIcon

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
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

added in version 22.2.0
int windowActionModeOverlay

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

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

windowFixedHeightMajor

added in version 22.2.0
int windowFixedHeightMajor

A fixed height for the window along the major axis of the screen, that is, when in portrait. Can be either an absolute dimension or a fraction of the screen size in that dimension.

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

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

windowFixedHeightMinor

added in version 22.2.0
int windowFixedHeightMinor

A fixed height for the window along the minor axis of the screen, that is, when in landscape. Can be either an absolute dimension or a fraction of the screen size in that dimension.

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

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

windowFixedWidthMajor

added in version 22.2.0
int windowFixedWidthMajor

A fixed width for the window along the major axis of the screen, that is, when in landscape. Can be either an absolute dimension or a fraction of the screen size in that dimension.

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

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

windowFixedWidthMinor

added in version 22.2.0
int windowFixedWidthMinor

A fixed width for the window along the minor axis of the screen, that is, when in portrait. Can be either an absolute dimension or a fraction of the screen size in that dimension.

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

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

windowMinWidthMajor

added in version 22.2.0
int windowMinWidthMajor

The minimum width the window is allowed to be, along the major axis of the screen. That is, when in landscape. Can be either an absolute dimension or a fraction of the screen size in that dimension.

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

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

windowMinWidthMinor

added in version 22.2.0
int windowMinWidthMinor

The minimum width the window is allowed to be, along the minor axis of the screen. That is, when in portrait. Can be either an absolute dimension or a fraction of the screen size in that dimension.

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

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

windowNoTitle

added in version 22.2.0
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

R.attr

added in version 22.2.0
R.attr ()

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.