public
static
final
class
R.attr
extends Object
java.lang.Object | |
↳ | android.support.v7.appcompat.R.attr |
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
" |
public
static
int |
actionBarTabBarStyle
May be a reference to another resource, in the form
" |
public
static
int |
actionBarTabStyle
Default style for tabs within an action bar May be a reference to another resource, in the form
" |
public
static
int |
actionBarTabTextStyle
May be a reference to another resource, in the form
" |
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
" |
public
static
int |
actionModeCloseButtonStyle
May be a reference to another resource, in the form
" |
public
static
int |
actionModeCloseDrawable
Drawable to use for the close action mode button May be a reference to another resource, in the form
" |
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
" |
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
" |
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
" |
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
" |
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
" |
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
" |
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
" |
public
static
int |
actionModeStyle
May be a reference to another resource, in the form
" |
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
" |
public
static
int |
actionOverflowButtonStyle
May be a reference to another resource, in the form
" |
public
static
int |
actionOverflowMenuStyle
May be a reference to another resource, in the form
" |
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
" |
public
static
int |
alertDialogCenterButtons
May be a boolean value, such as " |
public
static
int |
alertDialogStyle
May be a reference to another resource, in the form
" |
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 " |
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 " |
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 " |
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
" |
public
static
int |
buttonBarNegativeButtonStyle
Style for the "negative" buttons within button bars May be a reference to another resource, in the form
" |
public
static
int |
buttonBarNeutralButtonStyle
Style for the "neutral" buttons within button bars May be a reference to another resource, in the form
" |
public
static
int |
buttonBarPositiveButtonStyle
Style for the "positive" buttons within button bars May be a reference to another resource, in the form
" |
public
static
int |
buttonBarStyle
Style for button bars May be a reference to another resource, in the form
" |
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
" |
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
" |
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 " |
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
" |
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 |
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 " |
public
static
int |
drawerArrowStyle
May be a reference to another resource, in the form
" |
public
static
int |
dropDownListViewStyle
ListPopupWindow compatibility May be a reference to another resource, in the form
" |
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 " |
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 " |
public
static
int |
goIcon
Go button icon May be a reference to another resource, in the form
" |
public
static
int |
height
May be a dimension value, which is a floating point number appended with a
unit such as " |
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
" |
public
static
int |
listLayout
May be a reference to another resource, in the form
" |
public
static
int |
listMenuViewStyle
Default menu-style ListView style. |
public
static
int |
listPopupWindowStyle
May be a reference to another resource, in the form
" |
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 " |
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
" |
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 |
paddingEnd
Sets the padding, in pixels, of the end edge; see |
public
static
int |
paddingStart
Sets the padding, in pixels, of the start edge; see |
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
" |
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
" |
public
static
int |
searchIcon
Search icon May be a reference to another resource, in the form
" |
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 |
singleChoiceItemLayout
May be a reference to another resource, in the form
" |
public
static
int |
spinBars
Whether bars should rotate or not during transition May be a boolean value, such as " |
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
TODO May be a reference to another resource, in the form
" |
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
" |
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
" |
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 " |
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 " |
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
" |
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 " |
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 is deprecated. Use titleMargin |
public
static
int |
titleTextAppearance
May be a reference to another resource, in the form
" |
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
" |
public
static
int |
toolbarStyle
Default Toolbar style. |
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
" |
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
|
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
".
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
".
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
".
int actionBarSize
Size of the Action Bar, including the contextual bar used to present Action Modes.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
wrap_content | 0 |
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
#aarrggbb".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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;
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;
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
".
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
".
int alertDialogCenterButtons
May be a boolean value, such as "true
" or
"false
".
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
".
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
".
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
".
int alpha
Alpha multiplier applied to the base color.
May be a floating point value, such as "1.2
".
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).
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).
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
".
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
".
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
#aarrggbb".
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
#aarrggbb".
int backgroundTint
Tint to apply to the background.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
int backgroundTintMode
Blending mode used to apply the background tint.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
multiply | e | Multiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc] |
screen | f | [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] |
src_atop | 9 | The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] |
src_in | 5 | The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da] |
src_over | 3 | The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] |
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).
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
".
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
".
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
".
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
".
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
".
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
".
int buttonGravity
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
bottom | 50 | Push object to the bottom of its container, not changing its size. |
top | 30 | Push object to the top of its container, not changing its size. |
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
".
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
".
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
".
int buttonTint
Tint to apply to the button drawable.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
int buttonTintMode
Blending mode used to apply the button tint.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
multiply | e | Multiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc] |
screen | f | [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] |
src_atop | 9 | The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] |
src_in | 5 | The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da] |
src_over | 3 | The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] |
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
".
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
".
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
".
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
".
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;
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
".
int color
The drawing color for the bars
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
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
#aarrggbb".
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
#aarrggbb".
int colorButtonNormal
The color applied to framework buttons in their normal state.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
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
#aarrggbb".
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
#aarrggbb".
int colorControlNormal
The color applied to framework controls in their normal state.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
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
#aarrggbb".
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
#aarrggbb".
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
#aarrggbb".
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
".
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).
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).
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).
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).
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).
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).
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
".
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
".
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;
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).
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
".
int displayOptions
Options affecting how the action bar is displayed.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
disableHome | 20 | |
homeAsUp | 4 | |
none | 0 | |
showCustom | 10 | |
showHome | 2 | |
showTitle | 8 | |
useLogo | 1 |
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
".
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
".
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).
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
".
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).
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
".
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
".
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).
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
".
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
#aarrggbb".
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
".
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).
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
".
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).
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
".
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).
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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;
int isLightTheme
Specifies whether the theme is light, otherwise it is dark.
May be a boolean value, such as "true
" or
"false
".
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).
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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).
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).
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).
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).
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).
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
".
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;
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).
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
".
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
".
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;
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
".
int navigationMode
The type of navigation to use.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
listMode | 1 | The action bar will use a selection list for navigation. |
normal | 0 | Normal static title text |
tabMode | 2 | The action bar will use a series of horizontal tabs for navigation. |
int overlapAnchor
Whether the popup window should overlap its anchor view.
May be a boolean value, such as "true
" or
"false
".
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).
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).
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
".
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
".
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).
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
".
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
".
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
".
int preserveIconSpacing
Whether space should be reserved in layout when an icon is missing.
May be a boolean value, such as "true
" or
"false
".
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).
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
".
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
".
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;
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
int showAsAction
How this item should display in the Action Bar, if present.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
always | 2 | Always show this item in an actionbar, even if it would override the system's limits of how much stuff to put there. This may make your action bar look bad on some screens. In most cases you should use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". |
collapseActionView | 8 | This item's action view collapses to a normal menu item. When expanded, the action view takes over a larger segment of its container. |
ifRoom | 1 | Show this item in an action bar if there is room for it as determined by the system. Favor this option over "always" where possible. Mutually exclusive with "never" and "always". |
never | 0 | Never show this item in an action bar, show it in the overflow menu instead. Mutually exclusive with "ifRoom" and "always". |
withText | 4 | When this item is shown as an action in the action bar, show a text label with it even if it has an icon representation. |
int showDividers
Setting for which dividers to show.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
beginning | 1 | |
end | 4 | |
middle | 2 | |
none | 0 |
int showText
Whether to draw on/off text.
May be a boolean value, such as "true
" or
"false
".
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
".
int spinBars
Whether bars should rotate or not during transition
May be a boolean value, such as "true
" or
"false
".
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
".
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
".
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
".
int srcCompat
TODO
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
int state_above_anchor
State identifier indicating the popup will be above the anchor.
May be a boolean value, such as "true
" or
"false
".
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
".
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
".
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;
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
".
int subtitleTextColor
A color to apply to the subtitle string.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
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
".
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
".
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).
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).
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
#aarrggbb".
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
#aarrggbb".
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
".
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).
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).
int thumbTint
Tint to apply to the thumb drawable.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
int thumbTintMode
Blending mode used to apply the thumb tint.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
add | 10 | Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D) |
multiply | e | Multiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc] |
screen | f | [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] |
src_atop | 9 | The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] |
src_in | 5 | The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da] |
src_over | 3 | The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] |
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
".
int tickMarkTint
Tint to apply to the tick mark drawable.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
int tickMarkTintMode
Blending mode used to apply the tick mark tint.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
add | 10 | Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D) |
multiply | e | Multiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc] |
screen | f | [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] |
src_atop | 9 | The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] |
src_in | 5 | The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da] |
src_over | 3 | The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] |
int title
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
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).
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).
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).
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).
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).
int titleMargins
This field is deprecated.
Use titleMargin
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
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
".
int titleTextColor
A color to apply to the title string.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
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
".
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
".
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
".
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
".
int trackTint
Tint to apply to the track.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
int trackTintMode
Blending mode used to apply the track tint.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
add | 10 | Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D) |
multiply | e | Multiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc] |
screen | f | [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] |
src_atop | 9 | The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] |
src_in | 5 | The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da] |
src_over | 3 | The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] |
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
".
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
".
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
".
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
".
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.
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.
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.
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.
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.
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.
int windowNoTitle
Flag indicating whether there should be no title on this window.
May be a boolean value, such as "true
" or
"false
".
R.attr ()