Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
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 actionBarSize Size of the Action Bar, including the contextual bar used to present Action Modes.
public static int actionBarSplitStyle Reference to a theme that should be used to inflate widgets and layouts destined for the action bar.
public static int actionBarStyle Reference to a style for the Action Bar

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

public static int actionBarTabBarStyle

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

public static int actionBarTabStyle Default style for tabs within an action bar

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

public static int actionBarTabTextStyle

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

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

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

public static int actionModeCloseButtonStyle

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

public static int actionModeCloseDrawable Drawable to use for the close action mode button

Must be a reference to another resource, in the form " @[+][ package :] type : name " or to 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

Must be a reference to another resource, in the form " @[+][ package :] type : name " or to 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

Must be a reference to another resource, in the form " @[+][ package :] type : name " or to 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

Must be a reference to another resource, in the form " @[+][ package :] type : name " or to 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

Must be a reference to another resource, in the form " @[+][ package :] type : name " or to 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

Must be a reference to another resource, in the form " @[+][ package :] type : name " or to 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

Must be a reference to another resource, in the form " @[+][ package :] type : name " or to 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

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

public static int actionModeStyle

Must be a reference to another resource, in the form " @[+][ package :] type : name " or to 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

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

public static int actionOverflowButtonStyle

Must be a reference to another resource, in the form " @[+][ package :] type : name " or to 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 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 buttonBarButtonStyle A style that may be applied to Buttons placed within a LinearLayout with the style buttonBarStyle to form a button bar.
public static int buttonBarStyle A style that may be applied to horizontal LinearLayouts to form a button bar.
public static int customNavigationLayout Specifies a layout for custom navigation.
public static int disableChildrenWhenDisabled Whether this spinner should mark child views as enabled/disabled when the spinner itself is enabled/disabled.
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 dropDownListViewStyle ListPopupWindow comaptibility

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

public static int dropdownListPreferredItemHeight The preferred item height for dropdown lists.
public static int expandActivityOverflowButtonDrawable The drawable to show in the button for expanding the activities overflow popup.
public static int height

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

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 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 listChoiceBackgroundIndicator Drawable used as a background for selected list items.
public static int listPopupWindowStyle

Must be a reference to another resource, in the form " @[+][ package :] type : name " or to 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 navigationMode The type of navigation to use.
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 panelMenuListTheme Default Panel Menu style.
public static int panelMenuListWidth Default Panel Menu width.
public static int popupMenuStyle Default PopupMenu style.
public static int popupPromptView Reference to a layout to use for displaying a prompt in the dropdown for spinnerMode="dropdown".
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 prompt The prompt to display when the spinner's dialog is shown.
public static int queryHint An optional query hint string to be displayed in the empty query field.
public static int searchDropdownBackground SearchView dropdown background

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

public static int searchViewAutoCompleteTextView SearchView AutoCompleteTextView style

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

public static int searchViewCloseIcon SearchView close button icon

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

public static int searchViewEditQuery SearchView query refinement icon

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

public static int searchViewEditQueryBackground SearchView query refinement icon background

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

public static int searchViewGoIcon SearchView Go button icon

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

public static int searchViewSearchIcon SearchView Search icon

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

public static int searchViewTextField SearchView text field background for the left section

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

public static int searchViewTextFieldRight SearchView text field background for the right section

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

public static int searchViewVoiceIcon SearchView Voice button icon

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

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 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 spinnerDropDownItemStyle Default Spinner style.
public static int spinnerMode Display mode for spinner options.
public static int spinnerStyle Default Spinner style.
public static int subtitle Specifies subtitle text used for navigationMode="normal"

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

public static int subtitleTextStyle Specifies a style to use for subtitle text.
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 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 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 to a theme attribute in the form " ?[ package :][ type :] name ".

public static int title

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

public static int titleTextStyle Specifies a style to use for title text.
public static int windowActionBar

Must be a boolean value, either " true " or " false ".

public static int windowActionBarOverlay

Must be a boolean value, either " true " or " false ".

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 windowSplitActionBar

Must be a boolean value, either " true " or " false ".

Public Constructors
R.attr ()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static int actionBarDivider

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

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

public static int actionBarItemBackground

Custom item state list drawable background for action bar items.

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

public static int actionBarSize

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

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int actionBarSplitStyle

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.

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

public static int actionBarStyle

Reference to a style for the Action Bar

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

public static int actionBarTabBarStyle

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

public static int actionBarTabStyle

Default style for tabs within an action bar

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

public static int actionBarTabTextStyle

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

public static int actionBarWidgetTheme

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

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

public static int actionButtonStyle

Default action button style.

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

public static int actionDropDownStyle

Default ActionBar dropdown style.

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

public static int actionLayout

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

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

public static int actionMenuTextAppearance

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

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

public static int actionMenuTextColor

Color for text that appears within action menu items.

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

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

public static int actionModeBackground

Background drawable to use for action mode UI

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

public static int actionModeCloseButtonStyle

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

public static int actionModeCloseDrawable

Drawable to use for the close action mode button

Must be a reference to another resource, in the form " @[+][ package :] type : name " or to 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

Must be a reference to another resource, in the form " @[+][ package :] type : name " or to 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

Must be a reference to another resource, in the form " @[+][ package :] type : name " or to 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

Must be a reference to another resource, in the form " @[+][ package :] type : name " or to 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

Must be a reference to another resource, in the form " @[+][ package :] type : name " or to 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.

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

public static int actionModeSelectAllDrawable

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

Must be a reference to another resource, in the form " @[+][ package :] type : name " or to 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

Must be a reference to another resource, in the form " @[+][ package :] type : name " or to 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

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

public static int actionModeStyle

Must be a reference to another resource, in the form " @[+][ package :] type : name " or to 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

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

public static int actionOverflowButtonStyle

Must be a reference to another resource, in the form " @[+][ package :] type : name " or to 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. See setActionProvider(android.view.ActionProvider) for more info.

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

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

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

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

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int activityChooserViewStyle

Default ActivityChooserView style.

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

public static int background

Specifies a background drawable for the action bar.

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

public static int backgroundSplit

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

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

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

public static int backgroundStacked

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

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

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

public static int buttonBarButtonStyle

A style that may be applied to Buttons placed within a LinearLayout with the style buttonBarStyle to form a button bar.

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

public static int buttonBarStyle

A style that may be applied to horizontal LinearLayouts to form a button bar.

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

public static int customNavigationLayout

Specifies a layout for custom navigation. Overrides navigationMode.

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

public static int disableChildrenWhenDisabled

Whether this spinner should mark child views as enabled/disabled when the spinner itself is enabled/disabled.

Must be a boolean value, either " true " or " false ".

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int displayOptions

Options affecting how the action bar is displayed.

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

Constant Value Description
useLogo 0x1
showHome 0x2
homeAsUp 0x4
showTitle 0x8
showCustom 0x10
disableHome 0x20

public static int divider

Specifies the drawable used for item dividers.

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

public static int dividerHorizontal

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

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

public static int dividerPadding

Size of padding on either end of a divider.

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int dividerVertical

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

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

public static int dropDownListViewStyle

ListPopupWindow comaptibility

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

public static int dropdownListPreferredItemHeight

The preferred item height for dropdown lists.

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

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

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

public static int height

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int homeAsUpIndicator

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

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

public static int homeLayout

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

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

public static int icon

Specifies the drawable used for the application icon.

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

public static int iconifiedByDefault

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

Must be a boolean value, either " true " or " false ".

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int indeterminateProgressStyle

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

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

public static int initialActivityCount

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

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

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int isLightTheme

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

Must be a boolean value, either " true " or " false ".

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int itemPadding

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

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int listChoiceBackgroundIndicator

Drawable used as a background for selected list items.

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

public static int listPopupWindowStyle

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

public static int listPreferredItemHeight

The preferred list item height.

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int listPreferredItemHeightLarge

A larger, more robust list item height.

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int listPreferredItemHeightSmall

A smaller, sleeker list item height.

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int listPreferredItemPaddingLeft

The preferred padding along the left edge of list items.

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int listPreferredItemPaddingRight

The preferred padding along the right edge of list items.

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int logo

Specifies the drawable used for the application logo.

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

public static int navigationMode

The type of navigation to use.

Must be one of the following constant values.

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

public static int paddingEnd

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

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int paddingStart

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

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int panelMenuListTheme

Default Panel Menu style.

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

public static int panelMenuListWidth

Default Panel Menu width.

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int popupMenuStyle

Default PopupMenu style.

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

public static int popupPromptView

Reference to a layout to use for displaying a prompt in the dropdown for spinnerMode="dropdown". This layout must contain a TextView with the id @android:id/text1 to be populated with the prompt text.

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

public static int progressBarPadding

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

Must 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), mm (millimeters).

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int progressBarStyle

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

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

public static int prompt

The prompt to display when the spinner's dialog is shown.

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

public static int queryHint

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

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

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int searchDropdownBackground

SearchView dropdown background

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

public static int searchViewAutoCompleteTextView

SearchView AutoCompleteTextView style

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

public static int searchViewCloseIcon

SearchView close button icon

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

public static int searchViewEditQuery

SearchView query refinement icon

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

public static int searchViewEditQueryBackground

SearchView query refinement icon background

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

public static int searchViewGoIcon

SearchView Go button icon

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

public static int searchViewSearchIcon

SearchView Search icon

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

public static int searchViewTextField

SearchView text field background for the left section

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

public static int searchViewTextFieldRight

SearchView text field background for the right section

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

public static int searchViewVoiceIcon

SearchView Voice button icon

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

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.

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

public static int showAsAction

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

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

Constant Value Description
never 0 Never show this item in an action bar, show it in the overflow menu instead. Mutually exclusive with "ifRoom" and "always".
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".
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".
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.
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.

public static int showDividers

Setting for which dividers to show.

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

Constant Value Description
none 0
beginning 1
middle 2
end 4

public static int spinnerDropDownItemStyle

Default Spinner style.

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

public static int spinnerMode

Display mode for spinner options.

Must be one of the following constant values.

Constant Value Description
dialog 0 Spinner options will be presented to the user as a dialog window.
dropdown 1 Spinner options will be presented to the user as an inline dropdown anchored to the spinner widget itself.

public static int spinnerStyle

Default Spinner style.

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

public static int subtitle

Specifies subtitle text used for navigationMode="normal"

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

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int subtitleTextStyle

Specifies a style to use for subtitle text.

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

public static int textAllCaps

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

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

May be a boolean value, either " true " or " false ".

public static int textAppearanceLargePopupMenu

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

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

public static int textAppearanceListItem

The preferred TextAppearance for the primary text of list items.

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

public static int textAppearanceListItemSmall

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

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

public static int textAppearanceSearchResultSubtitle

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

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

public static int textAppearanceSearchResultTitle

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

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

public static int textAppearanceSmallPopupMenu

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

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

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 to a theme attribute in the form " ?[ package :][ type :] name ".

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

public static int title

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

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int titleTextStyle

Specifies a style to use for title text.

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

public static int windowActionBar

Must be a boolean value, either " true " or " false ".

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int windowActionBarOverlay

Must be a boolean value, either " true " or " false ".

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static 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), 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.

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static 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), 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.

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static 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), 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.

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static 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), 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.

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

public static int windowSplitActionBar

Must be a boolean value, either " true " or " false ".

This may also be a reference to a resource (in the form " @[ package :] type : name ") or theme attribute (in the form " ?[ package :][ type :] name ") containing a value of this type.

Public Constructors

public R.attr ()