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

extends Object
java.lang.Object
   ↳ android.support.v7.appcompat.R.styleable

Summary

Constants
int ActionBarLayout_android_layout_gravity

This symbol is the offset where the layout_gravity attribute's value can be found in the ActionBarLayout array.

int ActionBarWindow_windowActionBar

This symbol is the offset where the windowActionBar attribute's value can be found in the ActionBarWindow array.

int ActionBarWindow_windowActionBarOverlay

This symbol is the offset where the windowActionBarOverlay attribute's value can be found in the ActionBarWindow array.

int ActionBarWindow_windowFixedHeightMajor

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

int ActionBarWindow_windowFixedHeightMinor

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

int ActionBarWindow_windowFixedWidthMajor

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

int ActionBarWindow_windowFixedWidthMinor

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

int ActionBarWindow_windowSplitActionBar

This symbol is the offset where the windowSplitActionBar attribute's value can be found in the ActionBarWindow array.

int ActionBar_background

Specifies a background drawable for the action bar.

int ActionBar_backgroundSplit

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

int ActionBar_backgroundStacked

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

int ActionBar_customNavigationLayout

Specifies a layout for custom navigation.

int ActionBar_displayOptions

Options affecting how the action bar is displayed.

int ActionBar_divider

Specifies the drawable used for item dividers.

int ActionBar_height

Specifies a fixed height.

int ActionBar_homeLayout

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

int ActionBar_icon

Specifies the drawable used for the application icon.

int ActionBar_indeterminateProgressStyle

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

int ActionBar_itemPadding

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

int ActionBar_logo

Specifies the drawable used for the application logo.

int ActionBar_navigationMode

The type of navigation to use.

int ActionBar_progressBarPadding

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

int ActionBar_progressBarStyle

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

int ActionBar_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.

int ActionBar_subtitleTextStyle

Specifies a style to use for subtitle text.

int ActionBar_title

Specifies title text used for navigationMode="normal"

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

int ActionBar_titleTextStyle

Specifies a style to use for title text.

int ActionMenuItemView_android_minWidth

This symbol is the offset where the minWidth attribute's value can be found in the ActionMenuItemView array.

int ActionMode_background

Specifies a background for the action mode bar.

int ActionMode_backgroundSplit

Specifies a background for the split action mode bar.

int ActionMode_height

Specifies a fixed height for the action mode bar.

int ActionMode_subtitleTextStyle

Specifies a style to use for subtitle text.

int ActionMode_titleTextStyle

Specifies a style to use for title text.

int ActivityChooserView_expandActivityOverflowButtonDrawable

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

int ActivityChooserView_initialActivityCount

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

int CompatTextView_textAllCaps

Present the text in ALL CAPS.

int LinearLayoutICS_divider

Drawable to use as a vertical divider between buttons.

int LinearLayoutICS_dividerPadding

Size of padding on either end of a divider.

int LinearLayoutICS_showDividers

Setting for which dividers to show.

int MenuGroup_android_checkableBehavior

Whether the items are capable of displaying a check mark.

int MenuGroup_android_enabled

Whether the items are enabled.

int MenuGroup_android_id

The ID of the group.

int MenuGroup_android_menuCategory

The category applied to all items within this group.

int MenuGroup_android_orderInCategory

The order within the category applied to all items within this group.

int MenuGroup_android_visible

Whether the items are shown/visible.

int MenuItem_actionLayout

An optional layout to be used as an action view.

int MenuItem_actionProviderClass

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

int MenuItem_actionViewClass

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

int MenuItem_android_alphabeticShortcut

The alphabetic shortcut key.

int MenuItem_android_checkable

Whether the item is capable of displaying a check mark.

int MenuItem_android_checked

Whether the item is checked.

int MenuItem_android_enabled

Whether the item is enabled.

int MenuItem_android_icon

The icon associated with this item.

int MenuItem_android_id

The ID of the item.

int MenuItem_android_menuCategory

The category applied to the item.

int MenuItem_android_numericShortcut

The numeric shortcut key.

int MenuItem_android_onClick

Name of a method on the Context used to inflate the menu that will be called when the item is clicked.

int MenuItem_android_orderInCategory

The order within the category applied to the item.

int MenuItem_android_title

The title associated with the item.

int MenuItem_android_titleCondensed

The condensed title associated with the item.

int MenuItem_android_visible

Whether the item is shown/visible.

int MenuItem_showAsAction

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

int MenuView_android_headerBackground

Default background for the menu header.

int MenuView_android_horizontalDivider

Default horizontal divider between rows of menu items.

int MenuView_android_itemBackground

Default background for each menu item.

int MenuView_android_itemIconDisabledAlpha

Default disabled icon alpha for each menu item that shows an icon.

int MenuView_android_itemTextAppearance

Default appearance of menu item text.

int MenuView_android_preserveIconSpacing

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

int MenuView_android_verticalDivider

Default vertical divider between menu items.

int MenuView_android_windowAnimationStyle

Default animations for the menu.

int SearchView_android_imeOptions

The IME options to set on the query text field.

int SearchView_android_inputType

The input type to set on the query text field.

int SearchView_android_maxWidth

An optional maximum width of the SearchView.

int SearchView_iconifiedByDefault

The default state of the SearchView.

int SearchView_queryHint

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

int Spinner_android_dropDownHorizontalOffset

Horizontal offset from the spinner widget for positioning the dropdown in spinnerMode="dropdown".

int Spinner_android_dropDownSelector

List selector to use for spinnerMode="dropdown" display.

int Spinner_android_dropDownVerticalOffset

Vertical offset from the spinner widget for positioning the dropdown in spinnerMode="dropdown".

int Spinner_android_dropDownWidth

Width of the dropdown in spinnerMode="dropdown".

int Spinner_android_gravity

Gravity setting for positioning the currently selected item.

int Spinner_android_popupBackground

Background drawable to use for the dropdown in spinnerMode="dropdown".

int Spinner_disableChildrenWhenDisabled

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

int Spinner_popupPromptView

Reference to a layout to use for displaying a prompt in the dropdown for spinnerMode="dropdown".

int Spinner_prompt

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

int Spinner_spinnerMode

Display mode for spinner options.

int Theme_actionDropDownStyle

Default ActionBar dropdown style.

int Theme_dropdownListPreferredItemHeight

The preferred item height for dropdown lists.

int Theme_listChoiceBackgroundIndicator

Drawable used as a background for selected list items.

int Theme_panelMenuListTheme

Default Panel Menu style.

int Theme_panelMenuListWidth

Default Panel Menu width.

int Theme_popupMenuStyle

Default PopupMenu style.

int View_android_focusable

Boolean that controls whether a view can take focus.

int View_paddingEnd

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

int View_paddingStart

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

Fields
public static final int[] ActionBar ============================================ Attributes used to style the Action Bar.
public static final int[] ActionBarLayout Valid LayoutParams for views placed in the action bar as custom views.
public static final int[] ActionBarWindow These attributes are meant to be specified and customized by the app.
public static final int[] ActionMenuItemView Attributes that can be used with a ActionMenuItemView.
public static final int[] ActionMenuView Size of padding on either end of a divider.
public static final int[] ActionMode Attributes that can be used with a ActionMode.
public static final int[] ActivityChooserView Attrbitutes for a ActivityChooserView.
public static final int[] CompatTextView Attributes that can be used with a CompatTextView.
public static final int[] LinearLayoutICS Attributes that can be used with a LinearLayoutICS.
public static final int[] MenuGroup Base attributes that are available to all groups.
public static final int[] MenuItem Base attributes that are available to all Item objects.
public static final int[] MenuView Attributes that can be used with a MenuView.
public static final int[] SearchView Attributes that can be used with a SearchView.
public static final int[] Spinner Attributes that can be used with a Spinner.
public static final int[] Theme These are the standard attributes that make up a complete theme.
public static final int[] View Attributes that can be used with a View.
Public Constructors
R.styleable ()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int ActionBarLayout_android_layout_gravity

This symbol is the offset where the layout_gravity attribute's value can be found in the ActionBarLayout array.

Constant Value: 0 (0x00000000)

public static final int ActionBarWindow_windowActionBar

This symbol is the offset where the windowActionBar attribute's value can be found in the ActionBarWindow array.

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.

Constant Value: 0 (0x00000000)

public static final int ActionBarWindow_windowActionBarOverlay

This symbol is the offset where the windowActionBarOverlay attribute's value can be found in the ActionBarWindow array.

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.

Constant Value: 1 (0x00000001)

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

This is a private symbol.

Constant Value: 6 (0x00000006)

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

This is a private symbol.

Constant Value: 4 (0x00000004)

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

This is a private symbol.

Constant Value: 3 (0x00000003)

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

This is a private symbol.

Constant Value: 5 (0x00000005)

public static final int ActionBarWindow_windowSplitActionBar

This symbol is the offset where the windowSplitActionBar attribute's value can be found in the ActionBarWindow array.

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.

Constant Value: 2 (0x00000002)

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

This is a private symbol.

Constant Value: 10 (0x0000000a)

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

This is a private symbol.

Constant Value: 12 (0x0000000c)

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

This is a private symbol.

Constant Value: 11 (0x0000000b)

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

This is a private symbol.

Constant Value: 13 (0x0000000d)

public static final int ActionBar_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

This is a private symbol.

Constant Value: 3 (0x00000003)

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

This is a private symbol.

Constant Value: 9 (0x00000009)

public static final int ActionBar_height

Specifies a fixed 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.

This is a private symbol.

Constant Value: 1 (0x00000001)

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

This is a private symbol.

Constant Value: 14 (0x0000000e)

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

This is a private symbol.

Constant Value: 7 (0x00000007)

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

This is a private symbol.

Constant Value: 16 (0x00000010)

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

This is a private symbol.

Constant Value: 18 (0x00000012)

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

This is a private symbol.

Constant Value: 8 (0x00000008)

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

This is a private symbol.

Constant Value: 2 (0x00000002)

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

This is a private symbol.

Constant Value: 17 (0x00000011)

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

This is a private symbol.

Constant Value: 15 (0x0000000f)

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

This is a private symbol.

Constant Value: 4 (0x00000004)

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

This is a private symbol.

Constant Value: 6 (0x00000006)

public static final int ActionBar_title

Specifies title 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.

This is a private symbol.

Constant Value: 0 (0x00000000)

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

This is a private symbol.

Constant Value: 5 (0x00000005)

public static final int ActionMenuItemView_android_minWidth

This symbol is the offset where the minWidth attribute's value can be found in the ActionMenuItemView array.

Constant Value: 0 (0x00000000)

public static final int ActionMode_background

Specifies a background for the action mode 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 ".

This is a private symbol.

Constant Value: 3 (0x00000003)

public static final int ActionMode_backgroundSplit

Specifies a background for the split action mode 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 ".

This is a private symbol.

Constant Value: 4 (0x00000004)

public static final int ActionMode_height

Specifies a fixed height for the action mode 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.

This is a private symbol.

Constant Value: 0 (0x00000000)

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

This is a private symbol.

Constant Value: 2 (0x00000002)

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

This is a private symbol.

Constant Value: 1 (0x00000001)

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

This is a private symbol.

Constant Value: 1 (0x00000001)

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

This is a private symbol.

Constant Value: 0 (0x00000000)

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

This is a private symbol.

Constant Value: 0 (0x00000000)

public static final int LinearLayoutICS_divider

Drawable to use as a vertical divider between buttons.

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

This is a private symbol.

Constant Value: 0 (0x00000000)

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

This is a private symbol.

Constant Value: 2 (0x00000002)

public static final int LinearLayoutICS_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

This is a private symbol.

Constant Value: 1 (0x00000001)

public static final int MenuGroup_android_checkableBehavior

Whether the items are capable of displaying a check mark.

This corresponds to the global attribute resource symbol checkableBehavior .

Constant Value: 5 (0x00000005)

public static final int MenuGroup_android_enabled

Whether the items are enabled.

This corresponds to the global attribute resource symbol enabled .

Constant Value: 0 (0x00000000)

public static final int MenuGroup_android_id

The ID of the group.

This corresponds to the global attribute resource symbol id .

Constant Value: 1 (0x00000001)

public static final int MenuGroup_android_menuCategory

The category applied to all items within this group. (This will be or'ed with the orderInCategory attribute.)

This corresponds to the global attribute resource symbol menuCategory .

Constant Value: 3 (0x00000003)

public static final int MenuGroup_android_orderInCategory

The order within the category applied to all items within this group. (This will be or'ed with the category attribute.)

This corresponds to the global attribute resource symbol orderInCategory .

Constant Value: 4 (0x00000004)

public static final int MenuGroup_android_visible

Whether the items are shown/visible.

This corresponds to the global attribute resource symbol visible .

Constant Value: 2 (0x00000002)

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

This is a private symbol.

Constant Value: 14 (0x0000000e)

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

This is a private symbol.

Constant Value: 16 (0x00000010)

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

This is a private symbol.

Constant Value: 15 (0x0000000f)

public static final int MenuItem_android_alphabeticShortcut

The alphabetic shortcut key. This is the shortcut when using a keyboard with alphabetic keys.

This corresponds to the global attribute resource symbol alphabeticShortcut .

Constant Value: 9 (0x00000009)

public static final int MenuItem_android_checkable

Whether the item is capable of displaying a check mark.

This corresponds to the global attribute resource symbol checkable .

Constant Value: 11 (0x0000000b)

public static final int MenuItem_android_checked

Whether the item is checked. Note that you must first have enabled checking with the checkable attribute or else the check mark will not appear.

This corresponds to the global attribute resource symbol checked .

Constant Value: 3 (0x00000003)

public static final int MenuItem_android_enabled

Whether the item is enabled.

This corresponds to the global attribute resource symbol enabled .

Constant Value: 1 (0x00000001)

public static final int MenuItem_android_icon

The icon associated with this item. This icon will not always be shown, so the title should be sufficient in describing this item.

This corresponds to the global attribute resource symbol icon .

Constant Value: 0 (0x00000000)

public static final int MenuItem_android_id

The ID of the item.

This corresponds to the global attribute resource symbol id .

Constant Value: 2 (0x00000002)

public static final int MenuItem_android_menuCategory

The category applied to the item. (This will be or'ed with the orderInCategory attribute.)

This corresponds to the global attribute resource symbol menuCategory .

Constant Value: 5 (0x00000005)

public static final int MenuItem_android_numericShortcut

The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key) keyboard.

This corresponds to the global attribute resource symbol numericShortcut .

Constant Value: 10 (0x0000000a)

public static final int MenuItem_android_onClick

Name of a method on the Context used to inflate the menu that will be called when the item is clicked.

This corresponds to the global attribute resource symbol onClick .

Constant Value: 12 (0x0000000c)

public static final int MenuItem_android_orderInCategory

The order within the category applied to the item. (This will be or'ed with the category attribute.)

This corresponds to the global attribute resource symbol orderInCategory .

Constant Value: 6 (0x00000006)

public static final int MenuItem_android_title

The title associated with the item.

This corresponds to the global attribute resource symbol title .

Constant Value: 7 (0x00000007)

public static final int MenuItem_android_titleCondensed

The condensed title associated with the item. This is used in situations where the normal title may be too long to be displayed.

This corresponds to the global attribute resource symbol titleCondensed .

Constant Value: 8 (0x00000008)

public static final int MenuItem_android_visible

Whether the item is shown/visible.

This corresponds to the global attribute resource symbol visible .

Constant Value: 4 (0x00000004)

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

This is a private symbol.

Constant Value: 13 (0x0000000d)

public static final int MenuView_android_headerBackground

Default background for the menu header.

This corresponds to the global attribute resource symbol headerBackground .

Constant Value: 4 (0x00000004)

public static final int MenuView_android_horizontalDivider

Default horizontal divider between rows of menu items.

This corresponds to the global attribute resource symbol horizontalDivider .

Constant Value: 2 (0x00000002)

public static final int MenuView_android_itemBackground

Default background for each menu item.

This corresponds to the global attribute resource symbol itemBackground .

Constant Value: 5 (0x00000005)

public static final int MenuView_android_itemIconDisabledAlpha

Default disabled icon alpha for each menu item that shows an icon.

This corresponds to the global attribute resource symbol itemIconDisabledAlpha .

Constant Value: 6 (0x00000006)

public static final int MenuView_android_itemTextAppearance

Default appearance of menu item text.

This corresponds to the global attribute resource symbol itemTextAppearance .

Constant Value: 1 (0x00000001)

public static final int MenuView_android_preserveIconSpacing

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

This is a private symbol.

Constant Value: 7 (0x00000007)

public static final int MenuView_android_verticalDivider

Default vertical divider between menu items.

This corresponds to the global attribute resource symbol verticalDivider .

Constant Value: 3 (0x00000003)

public static final int MenuView_android_windowAnimationStyle

Default animations for the menu.

This corresponds to the global attribute resource symbol windowAnimationStyle .

Constant Value: 0 (0x00000000)

public static final int SearchView_android_imeOptions

The IME options to set on the query text field.

This corresponds to the global attribute resource symbol imeOptions .

Constant Value: 2 (0x00000002)

public static final int SearchView_android_inputType

The input type to set on the query text field.

This corresponds to the global attribute resource symbol inputType .

Constant Value: 1 (0x00000001)

public static final int SearchView_android_maxWidth

An optional maximum width of the SearchView.

This corresponds to the global attribute resource symbol maxWidth .

Constant Value: 0 (0x00000000)

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

This is a private symbol.

Constant Value: 3 (0x00000003)

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

This is a private symbol.

Constant Value: 4 (0x00000004)

public static final int Spinner_android_dropDownHorizontalOffset

Horizontal offset from the spinner widget for positioning the dropdown in spinnerMode="dropdown".

This corresponds to the global attribute resource symbol dropDownHorizontalOffset .

Constant Value: 4 (0x00000004)

public static final int Spinner_android_dropDownSelector

List selector to use for spinnerMode="dropdown" display.

This corresponds to the global attribute resource symbol dropDownSelector .

Constant Value: 1 (0x00000001)

public static final int Spinner_android_dropDownVerticalOffset

Vertical offset from the spinner widget for positioning the dropdown in spinnerMode="dropdown".

This corresponds to the global attribute resource symbol dropDownVerticalOffset .

Constant Value: 5 (0x00000005)

public static final int Spinner_android_dropDownWidth

Width of the dropdown in spinnerMode="dropdown".

This corresponds to the global attribute resource symbol dropDownWidth .

Constant Value: 3 (0x00000003)

public static final int Spinner_android_gravity

Gravity setting for positioning the currently selected item.

This corresponds to the global attribute resource symbol gravity .

Constant Value: 0 (0x00000000)

public static final int Spinner_android_popupBackground

Background drawable to use for the dropdown in spinnerMode="dropdown".

This corresponds to the global attribute resource symbol popupBackground .

Constant Value: 2 (0x00000002)

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

This is a private symbol.

Constant Value: 9 (0x00000009)

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

This is a private symbol.

Constant Value: 8 (0x00000008)

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

This is a private symbol.

Constant Value: 6 (0x00000006)

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

This is a private symbol.

Constant Value: 7 (0x00000007)

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

This is a private symbol.

Constant Value: 0 (0x00000000)

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

This is a private symbol.

Constant Value: 1 (0x00000001)

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

This is a private symbol.

Constant Value: 5 (0x00000005)

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

This is a private symbol.

Constant Value: 4 (0x00000004)

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

This is a private symbol.

Constant Value: 3 (0x00000003)

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

This is a private symbol.

Constant Value: 2 (0x00000002)

public static final int View_android_focusable

Boolean that controls whether a view can take focus. By default the user can not move focus to a view; by setting this attribute to true the view is allowed to take focus. This value does not impact the behavior of directly calling requestFocus() , which will always request focus regardless of this view. It only impacts where focus navigation will try to move focus.

This corresponds to the global attribute resource symbol focusable .

Constant Value: 0 (0x00000000)

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

This is a private symbol.

Constant Value: 2 (0x00000002)

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

This is a private symbol.

Constant Value: 1 (0x00000001)

Fields

public static final int[] ActionBar

============================================ Attributes used to style the Action Bar. These should be set on your theme; the default actionBarStyle will propagate them to the correct elements as needed. Please Note: when overriding attributes for an ActionBar style you must specify each attribute twice: once with the "android:" namespace prefix and once without.

Includes the following attributes:

Attribute Description
android.support.v7.appcompat:background Specifies a background drawable for the action bar.
android.support.v7.appcompat:backgroundSplit Specifies a background drawable for the bottom component of a split action bar.
android.support.v7.appcompat:backgroundStacked Specifies a background drawable for a second stacked row of the action bar.
android.support.v7.appcompat:customNavigationLayout Specifies a layout for custom navigation.
android.support.v7.appcompat:displayOptions Options affecting how the action bar is displayed.
android.support.v7.appcompat:divider Specifies the drawable used for item dividers.
android.support.v7.appcompat:height Specifies a fixed height.
android.support.v7.appcompat:homeLayout Specifies a layout to use for the "home" section of the action bar.
android.support.v7.appcompat:icon Specifies the drawable used for the application icon.
android.support.v7.appcompat:indeterminateProgressStyle Specifies a style resource to use for an indeterminate progress spinner.
android.support.v7.appcompat:itemPadding Specifies padding that should be applied to the left and right sides of system-provided items in the bar.
android.support.v7.appcompat:logo Specifies the drawable used for the application logo.
android.support.v7.appcompat:navigationMode The type of navigation to use.
android.support.v7.appcompat:progressBarPadding Specifies the horizontal padding on either end for an embedded progress bar.
android.support.v7.appcompat:progressBarStyle Specifies a style resource to use for an embedded progress bar.
android.support.v7.appcompat:subtitle Specifies subtitle text used for navigationMode="normal"
android.support.v7.appcompat:subtitleTextStyle Specifies a style to use for subtitle text.
android.support.v7.appcompat:title Specifies title text used for navigationMode="normal"
android.support.v7.appcompat:titleTextStyle Specifies a style to use for title text.

public static final int[] ActionBarLayout

Valid LayoutParams for views placed in the action bar as custom views.

Includes the following attributes:

Attribute Description
android:layout_gravity

public static final int[] ActionBarWindow

These attributes are meant to be specified and customized by the app. The system will read and apply them as needed. These attributes control properties of the activity window, such as whether an action bar should be present and whether it should overlay content.

Includes the following attributes:

Attribute Description
android.support.v7.appcompat:windowActionBar
android.support.v7.appcompat:windowActionBarOverlay
android.support.v7.appcompat:windowFixedHeightMajor A fixed height for the window along the major axis of the screen, that is, when in portrait.
android.support.v7.appcompat:windowFixedHeightMinor A fixed height for the window along the minor axis of the screen, that is, when in landscape.
android.support.v7.appcompat:windowFixedWidthMajor A fixed width for the window along the major axis of the screen, that is, when in landscape.
android.support.v7.appcompat:windowFixedWidthMinor A fixed width for the window along the minor axis of the screen, that is, when in portrait.
android.support.v7.appcompat:windowSplitActionBar

public static final int[] ActionMenuItemView

Attributes that can be used with a ActionMenuItemView.

Includes the following attributes:

Attribute Description
android:minWidth

public static final int[] ActionMenuView

Size of padding on either end of a divider.

public static final int[] ActionMode

Attributes that can be used with a ActionMode.

Includes the following attributes:

Attribute Description
android.support.v7.appcompat:background Specifies a background for the action mode bar.
android.support.v7.appcompat:backgroundSplit Specifies a background for the split action mode bar.
android.support.v7.appcompat:height Specifies a fixed height for the action mode bar.
android.support.v7.appcompat:subtitleTextStyle Specifies a style to use for subtitle text.
android.support.v7.appcompat:titleTextStyle Specifies a style to use for title text.

public static final int[] ActivityChooserView

Attrbitutes for a ActivityChooserView.

Includes the following attributes:

Attribute Description
android.support.v7.appcompat:expandActivityOverflowButtonDrawable The drawable to show in the button for expanding the activities overflow popup.
android.support.v7.appcompat:initialActivityCount The maximal number of items initially shown in the activity list.

public static final int[] CompatTextView

Attributes that can be used with a CompatTextView.

Includes the following attributes:

Attribute Description
android.support.v7.appcompat:textAllCaps Present the text in ALL CAPS.

public static final int[] LinearLayoutICS

Attributes that can be used with a LinearLayoutICS.

Includes the following attributes:

Attribute Description
android.support.v7.appcompat:divider Drawable to use as a vertical divider between buttons.
android.support.v7.appcompat:dividerPadding Size of padding on either end of a divider.
android.support.v7.appcompat:showDividers Setting for which dividers to show.

public static final int[] MenuGroup

Base attributes that are available to all groups.

Includes the following attributes:

Attribute Description
android:checkableBehavior Whether the items are capable of displaying a check mark.
android:enabled Whether the items are enabled.
android:id The ID of the group.
android:menuCategory The category applied to all items within this group.
android:orderInCategory The order within the category applied to all items within this group.
android:visible Whether the items are shown/visible.

public static final int[] MenuItem

Base attributes that are available to all Item objects.

Includes the following attributes:

Attribute Description
android.support.v7.appcompat:actionLayout An optional layout to be used as an action view.
android.support.v7.appcompat:actionProviderClass The name of an optional ActionProvider class to instantiate an action view and perform operations such as default action for that menu item.
android.support.v7.appcompat:actionViewClass The name of an optional View class to instantiate and use as an action view.
android:alphabeticShortcut The alphabetic shortcut key.
android:checkable Whether the item is capable of displaying a check mark.
android:checked Whether the item is checked.
android:enabled Whether the item is enabled.
android:icon The icon associated with this item.
android:id The ID of the item.
android:menuCategory The category applied to the item.
android:numericShortcut The numeric shortcut key.
android:onClick Name of a method on the Context used to inflate the menu that will be called when the item is clicked.
android:orderInCategory The order within the category applied to the item.
android:title The title associated with the item.
android:titleCondensed The condensed title associated with the item.
android:visible Whether the item is shown/visible.
android.support.v7.appcompat:showAsAction How this item should display in the Action Bar, if present.

public static final int[] MenuView

Attributes that can be used with a MenuView.

Includes the following attributes:

Attribute Description
android:headerBackground Default background for the menu header.
android:horizontalDivider Default horizontal divider between rows of menu items.
android:itemBackground Default background for each menu item.
android:itemIconDisabledAlpha Default disabled icon alpha for each menu item that shows an icon.
android:itemTextAppearance Default appearance of menu item text.
android:preserveIconSpacing Whether space should be reserved in layout when an icon is missing.
android:verticalDivider Default vertical divider between menu items.
android:windowAnimationStyle Default animations for the menu.

public static final int[] SearchView

Attributes that can be used with a SearchView.

Includes the following attributes:

Attribute Description
android:imeOptions The IME options to set on the query text field.
android:inputType The input type to set on the query text field.
android:maxWidth An optional maximum width of the SearchView.
android.support.v7.appcompat:iconifiedByDefault The default state of the SearchView.
android.support.v7.appcompat:queryHint An optional query hint string to be displayed in the empty query field.

public static final int[] Spinner

Attributes that can be used with a Spinner.

Includes the following attributes:

Attribute Description
android:dropDownHorizontalOffset Horizontal offset from the spinner widget for positioning the dropdown in spinnerMode="dropdown".
android:dropDownSelector List selector to use for spinnerMode="dropdown" display.
android:dropDownVerticalOffset Vertical offset from the spinner widget for positioning the dropdown in spinnerMode="dropdown".
android:dropDownWidth Width of the dropdown in spinnerMode="dropdown".
android:gravity Gravity setting for positioning the currently selected item.
android:popupBackground Background drawable to use for the dropdown in spinnerMode="dropdown".
android.support.v7.appcompat:disableChildrenWhenDisabled Whether this spinner should mark child views as enabled/disabled when the spinner itself is enabled/disabled.
android.support.v7.appcompat:popupPromptView Reference to a layout to use for displaying a prompt in the dropdown for spinnerMode="dropdown".
android.support.v7.appcompat:prompt The prompt to display when the spinner's dialog is shown.
android.support.v7.appcompat:spinnerMode Display mode for spinner options.

public static final int[] Theme

These are the standard attributes that make up a complete theme.

Includes the following attributes:

Attribute Description
android.support.v7.appcompat:actionDropDownStyle Default ActionBar dropdown style.
android.support.v7.appcompat:dropdownListPreferredItemHeight The preferred item height for dropdown lists.
android.support.v7.appcompat:listChoiceBackgroundIndicator Drawable used as a background for selected list items.
android.support.v7.appcompat:panelMenuListTheme Default Panel Menu style.
android.support.v7.appcompat:panelMenuListWidth Default Panel Menu width.
android.support.v7.appcompat:popupMenuStyle Default PopupMenu style.

public static final int[] View

Attributes that can be used with a View.

Includes the following attributes:

Attribute Description
android:focusable Boolean that controls whether a view can take focus.
android.support.v7.appcompat:paddingEnd Sets the padding, in pixels, of the end edge; see padding .
android.support.v7.appcompat:paddingStart Sets the padding, in pixels, of the start edge; see padding .

Public Constructors

public R.styleable ()