R.attr
public
static
final
class
R.attr
extends Object
java.lang.Object | |
↳ | android.support.wearable.R.attr |
Summary
Fields | |
---|---|
public
static
int |
actionBarDivider
Custom divider drawable to use for elements in the action bar. |
public
static
int |
actionBarItemBackground
Custom item state list drawable background for action bar items. |
public
static
int |
actionBarPopupTheme
Reference to a theme that should be used to inflate popups shown by widgets in the action bar. |
public
static
int |
actionBarSize
Size of the Action Bar, including the contextual bar used to present Action Modes. |
public
static
int |
actionBarSplitStyle
Reference to a style for the split Action Bar. |
public
static
int |
actionBarStyle
Reference to a style for the Action Bar May be a reference to another resource, in the form
" |
public
static
int |
actionBarTabBarStyle
May be a reference to another resource, in the form
" |
public
static
int |
actionBarTabStyle
Default style for tabs within an action bar May be a reference to another resource, in the form
" |
public
static
int |
actionBarTabTextStyle
May be a reference to another resource, in the form
" |
public
static
int |
actionBarTheme
Reference to a theme that should be used to inflate the action bar. |
public
static
int |
actionBarWidgetTheme
Reference to a theme that should be used to inflate widgets and layouts destined for the action bar. |
public
static
int |
actionButtonStyle
Default action button style. |
public
static
int |
actionDropDownStyle
Default ActionBar dropdown style. |
public
static
int |
actionLayout
An optional layout to be used as an action view. |
public
static
int |
actionMenuTextAppearance
TextAppearance style that will be applied to text that appears within action menu items. |
public
static
int |
actionMenuTextColor
Color for text that appears within action menu items. |
public
static
int |
actionModeBackground
Background drawable to use for action mode UI May be a reference to another resource, in the form
" |
public
static
int |
actionModeCloseButtonStyle
May be a reference to another resource, in the form
" |
public
static
int |
actionModeCloseDrawable
Drawable to use for the close action mode button May be a reference to another resource, in the form
" |
public
static
int |
actionModeCopyDrawable
Drawable to use for the Copy action button in Contextual Action Bar May be a reference to another resource, in the form
" |
public
static
int |
actionModeCutDrawable
Drawable to use for the Cut action button in Contextual Action Bar May be a reference to another resource, in the form
" |
public
static
int |
actionModeFindDrawable
Drawable to use for the Find action button in WebView selection action modes May be a reference to another resource, in the form
" |
public
static
int |
actionModePasteDrawable
Drawable to use for the Paste action button in Contextual Action Bar May be a reference to another resource, in the form
" |
public
static
int |
actionModePopupWindowStyle
PopupWindow style to use for action modes when showing as a window overlay. |
public
static
int |
actionModeSelectAllDrawable
Drawable to use for the Select all action button in Contextual Action Bar May be a reference to another resource, in the form
" |
public
static
int |
actionModeShareDrawable
Drawable to use for the Share action button in WebView selection action modes May be a reference to another resource, in the form
" |
public
static
int |
actionModeSplitBackground
Background drawable to use for action mode UI in the lower split bar May be a reference to another resource, in the form
" |
public
static
int |
actionModeStyle
May be a reference to another resource, in the form
" |
public
static
int |
actionModeWebSearchDrawable
Drawable to use for the Web Search action button in WebView selection action modes May be a reference to another resource, in the form
" |
public
static
int |
actionOverflowButtonStyle
May be a reference to another resource, in the form
" |
public
static
int |
actionOverflowMenuStyle
May be a reference to another resource, in the form
" |
public
static
int |
actionProviderClass
The name of an optional ActionProvider class to instantiate an action view and perform operations such as default action for that menu item. |
public
static
int |
actionViewClass
The name of an optional View class to instantiate and use as an action view. |
public
static
int |
action_menu
May be a reference to another resource, in the form
" |
public
static
int |
activityChooserViewStyle
Default ActivityChooserView style. |
public
static
int |
adjustable
Attribute indicating whether the slider within this preference can be adjusted, that is pressing left/right keys when this preference is focused will move the slider accordingly (e.g. |
public
static
int |
alertDialogButtonGroupStyle
May be a reference to another resource, in the form
" |
public
static
int |
alertDialogCenterButtons
May be a boolean value, such as " |
public
static
int |
alertDialogStyle
May be a reference to another resource, in the form
" |
public
static
int |
alertDialogTheme
Theme to use for alert dialogs spawned from this theme. |
public
static
int |
allowDividerAbove
Whether the preference allows displaying divider on top May be a boolean value, such as " |
public
static
int |
allowDividerAfterLastItem
Whether a divider is allowed to draw after the last item May be a boolean value, such as " |
public
static
int |
allowDividerBelow
Whether the preference allows displaying divider below it May be a boolean value, such as " |
public
static
int |
allowStacking
Whether to automatically stack the buttons when there is not enough space to lay them out side-by-side. |
public
static
int |
alpha
Alpha multiplier applied to the base color. |
public
static
int |
alphabeticModifiers
The alphabetic modifier key. |
public
static
int |
arrowHeadLength
The length of the arrow head when formed to make an arrow May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
arrowShaftLength
The length of the shaft when formed to make an arrow May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
autoCompleteTextViewStyle
Default AutoCompleteTextView style. |
public
static
int |
autoSizeMaxTextSize
The maximum text size constraint to be used when auto-sizing text. |
public
static
int |
autoSizeMinTextSize
The minimum text size constraint to be used when auto-sizing text. |
public
static
int |
autoSizePresetSizes
Resource array of dimensions to be used in conjunction with
|
public
static
int |
autoSizeStepGranularity
Specify the auto-size step size if |
public
static
int |
autoSizeTextType
Specify the type of auto-size. |
public
static
int |
background
Specifies a background drawable for the action bar. |
public
static
int |
backgroundColor
Defines the background color. |
public
static
int |
backgroundDrawable
Defines the drawable to be used as a background. |
public
static
int |
backgroundSplit
Specifies a background drawable for the bottom component of a split action bar. |
public
static
int |
backgroundStacked
Specifies a background drawable for a second stacked row of the action bar. |
public
static
int |
backgroundTint
Tint to apply to the background. |
public
static
int |
backgroundTintMode
Blending mode used to apply the background tint. |
public
static
int |
barLength
The length of the bars when they are parallel to each other May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
bezel_width
May be a fractional value, which is a floating point number appended with
either % or %p, such as " |
public
static
int |
borderColor
Defines border color. |
public
static
int |
borderDashGap
Defines dash gap for borders with style 'dashed'. |
public
static
int |
borderDashWidth
Defines dash width for borders with style 'dashed'. |
public
static
int |
borderRadius
Defines border radius. |
public
static
int |
borderStyle
Defines border style. |
public
static
int |
borderWidth
Defines stroke width for borders. |
public
static
int |
borderlessButtonStyle
Style for buttons without an explicit border, often used in groups. |
public
static
int |
buttonBarButtonStyle
Style for buttons within button bars May be a reference to another resource, in the form
" |
public
static
int |
buttonBarNegativeButtonStyle
Style for the "negative" buttons within button bars May be a reference to another resource, in the form
" |
public
static
int |
buttonBarNeutralButtonStyle
Style for the "neutral" buttons within button bars May be a reference to another resource, in the form
" |
public
static
int |
buttonBarPositiveButtonStyle
Style for the "positive" buttons within button bars May be a reference to another resource, in the form
" |
public
static
int |
buttonBarStyle
Style for button bars May be a reference to another resource, in the form
" |
public
static
int |
buttonCompat
Compat attr to load backported drawable types May be a reference to another resource, in the form
" |
public
static
int |
buttonGravity
Must be one or more (separated by '|') of the following constant values. |
public
static
int |
buttonIconDimen
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
buttonPanelSideLayout
May be a reference to another resource, in the form
" |
public
static
int |
buttonRippleColor
May be a reference to another resource, in the form
" |
public
static
int |
buttonStyle
Normal Button style. |
public
static
int |
buttonStyleSmall
Small Button style. |
public
static
int |
buttonTint
Tint to apply to the button drawable. |
public
static
int |
buttonTintMode
Blending mode used to apply the button tint. |
public
static
int |
checkBoxPreferenceStyle
Default style for CheckBoxPreference. |
public
static
int |
checkboxStyle
Default Checkbox style. |
public
static
int |
checkedTextViewStyle
Default CheckedTextView style. |
public
static
int |
circle_border_cap
Must be one of the following constant values. |
public
static
int |
circle_border_color
May be a color value, in the form of " |
public
static
int |
circle_border_width
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
circle_color
May be a color value, in the form of " |
public
static
int |
circle_padding
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
circle_radius
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
circle_radius_percent
May be a fractional value, which is a floating point number appended with
either % or %p, such as " |
public
static
int |
circle_radius_pressed
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
circle_radius_pressed_percent
May be a fractional value, which is a floating point number appended with
either % or %p, such as " |
public
static
int |
circular_scrolling_gesture_enabled
May be a boolean value, such as " |
public
static
int |
closeIcon
Close button icon May be a reference to another resource, in the form
" |
public
static
int |
closeItemLayout
Specifies a layout to use for the "close" item at the starting edge. |
public
static
int |
collapseContentDescription
Text to set as the content description for the collapse button. |
public
static
int |
collapseIcon
Icon drawable to use for the collapse button. |
public
static
int |
color
The drawing color for the bars May be a color value, in the form of " |
public
static
int |
colorAccent
Bright complement to the primary branding color. |
public
static
int |
colorBackgroundFloating
Default color of background imagery for floating components, ex. |
public
static
int |
colorButtonNormal
The color applied to framework buttons in their normal state. |
public
static
int |
colorControlActivated
The color applied to framework controls in their activated (ex. |
public
static
int |
colorControlHighlight
The color applied to framework control highlights (ex. |
public
static
int |
colorControlNormal
The color applied to framework controls in their normal state. |
public
static
int |
colorError
Color used for error states and things that need to be drawn to the user's attention. |
public
static
int |
colorPrimary
The primary branding color for the app. |
public
static
int |
colorPrimaryDark
Dark variant of the primary branding color. |
public
static
int |
colorSwitchThumbNormal
The color applied to framework switch thumbs in their normal state. |
public
static
int |
color_sequence
May be a reference to another resource, in the form
" |
public
static
int |
commitIcon
Commit icon shown in the query suggestion row May be a reference to another resource, in the form
" |
public
static
int |
contentDescription
The content description associated with the item. |
public
static
int |
contentInsetEnd
Minimum inset for content views within a bar. |
public
static
int |
contentInsetEndWithActions
Minimum inset for content views within a bar when actions from a menu are present. |
public
static
int |
contentInsetLeft
Minimum inset for content views within a bar. |
public
static
int |
contentInsetRight
Minimum inset for content views within a bar. |
public
static
int |
contentInsetStart
Minimum inset for content views within a bar. |
public
static
int |
contentInsetStartWithNavigation
Minimum inset for content views within a bar when a navigation button is present, such as the Up button. |
public
static
int |
controlBackground
The background used by framework controls. |
public
static
int |
coordinatorLayoutStyle
May be a reference to another resource, in the form
" |
public
static
int |
customNavigationLayout
Specifies a layout for custom navigation. |
public
static
int |
defaultQueryHint
Default query hint used when |
public
static
int |
defaultValue
The default value for the preference, which will be set either if persistence is off or persistence is on and the preference is not found in the persistent storage. |
public
static
int |
dependency
The key of another Preference that this Preference will depend on. |
public
static
int |
dialogCornerRadius
Preferred corner radius of dialogs. |
public
static
int |
dialogIcon
The icon for the dialog. |
public
static
int |
dialogLayout
A layout to be used as the content View for the dialog. |
public
static
int |
dialogMessage
The message in the dialog. |
public
static
int |
dialogPreferenceStyle
Default style for DialogPreference. |
public
static
int |
dialogPreferredPadding
Preferred padding for dialog content. |
public
static
int |
dialogTheme
Theme to use for dialogs spawned from this theme. |
public
static
int |
dialogTitle
The title in the dialog. |
public
static
int |
disableDependentsState
The state (true for on, or false for off) that causes dependents to be 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 |
dotColor
May be a color value, in the form of " |
public
static
int |
dotColorSelected
May be a color value, in the form of " |
public
static
int |
dotFadeInDuration
May be an integer value, such as " |
public
static
int |
dotFadeOutDelay
May be an integer value, such as " |
public
static
int |
dotFadeOutDuration
May be an integer value, such as " |
public
static
int |
dotFadeWhenIdle
May be a boolean value, such as " |
public
static
int |
dotRadius
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
dotRadiusSelected
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
dotShadowColor
May be a color value, in the form of " |
public
static
int |
dotShadowDx
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
dotShadowDy
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
dotShadowRadius
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
dotSpacing
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
drawableBottomCompat
May be a reference to another resource, in the form
" |
public
static
int |
drawableEndCompat
May be a reference to another resource, in the form
" |
public
static
int |
drawableLeftCompat
Compound drawables allowing the use of vector drawable when running on older versions of the platform. |
public
static
int |
drawableRightCompat
May be a reference to another resource, in the form
" |
public
static
int |
drawableSize
The total size of the drawable May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
drawableStartCompat
May be a reference to another resource, in the form
" |
public
static
int |
drawableTint
Tint to apply to the compound (left, top, etc.) drawables. |
public
static
int |
drawableTintMode
Blending mode used to apply the compound (left, top, etc.) drawables tint. |
public
static
int |
drawableTopCompat
May be a reference to another resource, in the form
" |
public
static
int |
drawerArrowStyle
May be a reference to another resource, in the form
" |
public
static
int |
drawerLayoutStyle
May be a reference to another resource, in the form
" |
public
static
int |
drawer_content
May be a reference to another resource, in the form
" |
public
static
int |
drawer_title
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character; |
public
static
int |
dropDownListViewStyle
ListPopupWindow compatibility May be a reference to another resource, in the form
" |
public
static
int |
dropdownListPreferredItemHeight
The preferred item height for dropdown lists. |
public
static
int |
dropdownPreferenceStyle
Default style for DropDownPreference. |
public
static
int |
editTextBackground
EditText background drawable. |
public
static
int |
editTextColor
EditText text foreground color. |
public
static
int |
editTextPreferenceStyle
Default style for EditTextPreference. |
public
static
int |
editTextStyle
Default EditText style. |
public
static
int |
elevation
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
enableCopying
Whether the summary of this preference can be copied to the clipboard by long pressing on the preference. |
public
static
int |
enabled
Whether the Preference is enabled. |
public
static
int |
entries
The human-readable array to present as a list. |
public
static
int |
entryValues
The array to find the value to save for a preference when an entry from entries is selected. |
public
static
int |
expandActivityOverflowButtonDrawable
The drawable to show in the button for expanding the activities overflow popup. |
public
static
int |
fastScrollEnabled
May be a boolean value, such as " |
public
static
int |
fastScrollHorizontalThumbDrawable
May be a reference to another resource, in the form
" |
public
static
int |
fastScrollHorizontalTrackDrawable
May be a reference to another resource, in the form
" |
public
static
int |
fastScrollVerticalThumbDrawable
May be a reference to another resource, in the form
" |
public
static
int |
fastScrollVerticalTrackDrawable
May be a reference to another resource, in the form
" |
public
static
int |
firstBaselineToTopHeight
Distance from the top of the TextView to the first text baseline. |
public
static
int |
font
The reference to the font file to be used. |
public
static
int |
fontFamily
The attribute for the font family. |
public
static
int |
fontProviderAuthority
The authority of the Font Provider to be used for the request. |
public
static
int |
fontProviderCerts
The sets of hashes for the certificates the provider should be signed with. |
public
static
int |
fontProviderFetchStrategy
The strategy to be used when fetching font data from a font provider in XML layouts. |
public
static
int |
fontProviderFetchTimeout
The length of the timeout during fetching. |
public
static
int |
fontProviderPackage
The package for the Font Provider to be used for the request. |
public
static
int |
fontProviderQuery
The query to be sent over to the provider. |
public
static
int |
fontStyle
The style of the given font file. |
public
static
int |
fontVariationSettings
The variation settings to be applied to the font. |
public
static
int |
fontWeight
The weight of the given font file. |
public
static
int |
fragment
When used inside of a modern PreferenceActivity, this declares a new PreferenceFragment to be shown when the user selects this item. |
public
static
int |
gapBetweenBars
The max gap between the bars when they are parallel to each other May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
goIcon
Go button icon May be a reference to another resource, in the form
" |
public
static
int |
height
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
hideOnContentScroll
Set true to hide the action bar on a vertical nested scroll of content. |
public
static
int |
highlightColor
Defines highlight color. |
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 |
iconColor
Defines icon tint color. |
public
static
int |
iconSpaceReserved
Whether the space for the preference icon view will be reserved. |
public
static
int |
iconTint
Tint to apply to the icon. |
public
static
int |
iconTintMode
Blending mode used to apply the icon tint. |
public
static
int |
iconifiedByDefault
The default state of the SearchView. |
public
static
int |
imageButtonStyle
ImageButton background drawable. |
public
static
int |
imageScaleMode
Must be one of the following constant values. |
public
static
int |
image_circle_percentage
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
image_horizontal_offcenter_percentage
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
image_tint
May be a color value, in the form of " |
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 |
initialExpandedChildrenCount
The maximal number of children that are shown when the preference group is launched where the rest of the children will be hidden. |
public
static
int |
isLightTheme
May be a boolean value, such as " |
public
static
int |
isPreferenceVisible
Whether the Preference is visible. |
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 |
key
The key to store the Preference value. |
public
static
int |
keylines
A reference to an array of integers representing the locations of horizontal keylines in dp from the starting edge. |
public
static
int |
lastBaselineToBottomHeight
Distance from the bottom of the TextView to the last text baseline. |
public
static
int |
layout
The layout to use for the search view. |
public
static
int |
layoutManager
Class name of the Layout Manager to be used. |
public
static
int |
layout_anchor
The id of an anchor view that this view should position relative to. |
public
static
int |
layout_anchorGravity
Specifies how an object should position relative to an anchor, on both the X and Y axes, within its parent's bounds. |
public
static
int |
layout_aspectRatio
May be a fractional value, which is a floating point number appended with
either % or %p, such as " |
public
static
int |
layout_behavior
The class name of a Behavior class defining special runtime behavior for this child view. |
public
static
int |
layout_box
Must be one or more (separated by '|') of the following constant values. |
public
static
int |
layout_dodgeInsetEdges
Specifies how this view dodges the inset edges of the CoordinatorLayout. |
public
static
int |
layout_gravityRound
Must be one or more (separated by '|') of the following constant values. |
public
static
int |
layout_heightPercent
May be a fractional value, which is a floating point number appended with
either % or %p, such as " |
public
static
int |
layout_heightRound
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
layout_insetEdge
Specifies how this view insets the CoordinatorLayout and make some other views dodge it. |
public
static
int |
layout_keyline
The index of a keyline this view should position relative to. |
public
static
int |
layout_marginBottomPercent
May be a fractional value, which is a floating point number appended with
either % or %p, such as " |
public
static
int |
layout_marginBottomRound
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
layout_marginEndPercent
May be a fractional value, which is a floating point number appended with
either % or %p, such as " |
public
static
int |
layout_marginLeftPercent
May be a fractional value, which is a floating point number appended with
either % or %p, such as " |
public
static
int |
layout_marginLeftRound
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
layout_marginPercent
May be a fractional value, which is a floating point number appended with
either % or %p, such as " |
public
static
int |
layout_marginRightPercent
May be a fractional value, which is a floating point number appended with
either % or %p, such as " |
public
static
int |
layout_marginRightRound
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
layout_marginRound
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
layout_marginStartPercent
May be a fractional value, which is a floating point number appended with
either % or %p, such as " |
public
static
int |
layout_marginTopPercent
May be a fractional value, which is a floating point number appended with
either % or %p, such as " |
public
static
int |
layout_marginTopRound
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
layout_widthPercent
May be a fractional value, which is a floating point number appended with
either % or %p, such as " |
public
static
int |
layout_widthRound
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
lineHeight
Explicit height between lines of text. |
public
static
int |
listChoiceBackgroundIndicator
Drawable used as a background for selected list items. |
public
static
int |
listChoiceIndicatorMultipleAnimated
Animated Drawable to use for single choice indicators. |
public
static
int |
listChoiceIndicatorSingleAnimated
Animated Drawable to use for multiple choice indicators. |
public
static
int |
listDividerAlertDialog
The list divider used in alert dialogs. |
public
static
int |
listItemLayout
May be a reference to another resource, in the form
" |
public
static
int |
listLayout
May be a reference to another resource, in the form
" |
public
static
int |
listMenuViewStyle
Default menu-style ListView style. |
public
static
int |
listPopupWindowStyle
May be a reference to another resource, in the form
" |
public
static
int |
listPreferredItemHeight
The preferred list item height. |
public
static
int |
listPreferredItemHeightLarge
A larger, more robust list item height. |
public
static
int |
listPreferredItemHeightSmall
A smaller, sleeker list item height. |
public
static
int |
listPreferredItemPaddingEnd
The preferred padding along the end edge of list items. |
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 |
listPreferredItemPaddingStart
The preferred padding along the start edge of list items. |
public
static
int |
logo
Specifies the drawable used for the application logo. |
public
static
int |
logoDescription
A content description string to describe the appearance of the associated logo image. |
public
static
int |
maxButtonHeight
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
maxHeight
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
maxTextSize
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
maxWidth
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
measureWithLargestChild
When set to true, all children with a weight will be considered having the minimum size of the largest child. |
public
static
int |
menu
Menu resource to inflate to be shown in the toolbar May be a reference to another resource, in the form
" |
public
static
int |
min
May be an integer value, such as " |
public
static
int |
minTextSize
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
multiChoiceItemLayout
May be a reference to another resource, in the form
" |
public
static
int |
navigationContentDescription
Text to set as the content description for the navigation button located at the start of the toolbar. |
public
static
int |
navigationIcon
Icon drawable to use for the navigation button located at the start of the toolbar. |
public
static
int |
navigationMode
The type of navigation to use. |
public
static
int |
navigation_style
Must be one of the following constant values. |
public
static
int |
negativeButtonIcon
The icon for the negative button for the dialog. |
public
static
int |
negativeButtonText
The negative button text for the dialog. |
public
static
int |
neutralButtonIcon
The icon for the neutral button for the dialog. |
public
static
int |
neutralButtonText
The neutral button text for the dialog. |
public
static
int |
numericModifiers
The numeric modifier key. |
public
static
int |
order
The order for the Preference (lower values are to be ordered first). |
public
static
int |
orderingFromXml
Whether to order the Preference under this group as they appear in the XML file. |
public
static
int |
overlapAnchor
Whether the popup window should overlap its anchor view. |
public
static
int |
paddingBottomNoButtons
Bottom padding to use when no buttons are present. |
public
static
int |
paddingEnd
Sets the padding, in pixels, of the end edge; see |
public
static
int |
paddingStart
Sets the padding, in pixels, of the start edge; see |
public
static
int |
paddingTopNoTitle
Top padding to use when no title is present. |
public
static
int |
pageIndicatorDotColor
May be a color value, in the form of " |
public
static
int |
pageIndicatorDotColorSelected
May be a color value, in the form of " |
public
static
int |
pageIndicatorDotFadeInDuration
May be an integer value, such as " |
public
static
int |
pageIndicatorDotFadeOutDelay
May be an integer value, such as " |
public
static
int |
pageIndicatorDotFadeOutDuration
May be an integer value, such as " |
public
static
int |
pageIndicatorDotFadeWhenIdle
May be a boolean value, such as " |
public
static
int |
pageIndicatorDotRadius
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
pageIndicatorDotRadiusSelected
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
pageIndicatorDotShadowColor
May be a color value, in the form of " |
public
static
int |
pageIndicatorDotShadowDx
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
pageIndicatorDotShadowDy
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
pageIndicatorDotShadowRadius
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
pageIndicatorDotSpacing
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
panelBackground
The background of a panel when it is inset from the left and right edges of the screen. |
public
static
int |
panelMenuListTheme
Default Panel Menu style. |
public
static
int |
panelMenuListWidth
Default Panel Menu width. |
public
static
int |
peek_view
May be a reference to another resource, in the form
" |
public
static
int |
persistent
Whether the Preference stores its value to the shared preferences. |
public
static
int |
popupMenuStyle
Default PopupMenu style. |
public
static
int |
popupTheme
Reference to a theme that should be used to inflate popups shown by widgets in the action bar. |
public
static
int |
popupWindowStyle
Default PopupWindow style. |
public
static
int |
positiveButtonIcon
The icon for the positive button for the dialog. |
public
static
int |
positiveButtonText
The positive button text for the dialog. |
public
static
int |
preferenceCategoryStyle
Default style for PreferenceCategory. |
public
static
int |
preferenceCategoryTitleTextAppearance
The preferred TextAppearance for the title displayed in a PreferenceCategory. |
public
static
int |
preferenceCategoryTitleTextColor
The preferred color for the title displayed in a PreferenceCategory. |
public
static
int |
preferenceFragmentCompatStyle
Default style for Headers pane in PreferenceActivity. |
public
static
int |
preferenceFragmentListStyle
Preference fragment list style May be a reference to another resource, in the form
" |
public
static
int |
preferenceFragmentStyle
Default style for Headers pane in PreferenceActivity. |
public
static
int |
preferenceInformationStyle
Default style for informational Preference. |
public
static
int |
preferenceScreenStyle
Default style for PreferenceScreen. |
public
static
int |
preferenceStyle
Default style for Preference. |
public
static
int |
preferenceTheme
Theme for inflating Preference objects May be a reference to another resource, in the form
" |
public
static
int |
preserveIconSpacing
Whether space should be reserved in layout when an icon is missing. |
public
static
int |
pressedButtonTranslationZ
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
progressBarPadding
Specifies the horizontal padding on either end for an embedded progress bar. |
public
static
int |
progressBarStyle
Specifies a style resource to use for an embedded progress bar. |
public
static
int |
queryBackground
Background for the section containing the search query May be a reference to another resource, in the form
" |
public
static
int |
queryHint
An optional user-defined query hint string to be displayed in the empty query field. |
public
static
int |
radioButtonStyle
Default RadioButton style. |
public
static
int |
rangedValuePrimaryColor
Defines main color for ranged value indicator. |
public
static
int |
rangedValueProgressHidden
Defines visibility for ranged value indicator. |
public
static
int |
rangedValueRingWidth
Defines stroke width for ranged value indicator. |
public
static
int |
rangedValueSecondaryColor
Defines secondary color for ranged value indicator. |
public
static
int |
ratingBarStyle
Default RatingBar style. |
public
static
int |
ratingBarStyleIndicator
Indicator RatingBar style. |
public
static
int |
ratingBarStyleSmall
Small indicator RatingBar style. |
public
static
int |
rectLayout
Resource id of a layout to use in rectangular containers May be a reference to another resource, in the form
" |
public
static
int |
recyclerViewStyle
May be a reference to another resource, in the form
" |
public
static
int |
reverseLayout
May be a boolean value, such as " |
public
static
int |
roundLayout
Resource id of a layout to use in round containers May be a reference to another resource, in the form
" |
public
static
int |
scroll_degrees_per_screen
May be a floating point value, such as " |
public
static
int |
searchHintIcon
Search icon displayed as a text field hint May be a reference to another resource, in the form
" |
public
static
int |
searchIcon
Search icon May be a reference to another resource, in the form
" |
public
static
int |
searchViewStyle
Style for the search query widget. |
public
static
int |
seekBarIncrement
Attribute controlling the amount to increment or decrement the seekbar when the user presses the arrow keys May be an integer value, such as " |
public
static
int |
seekBarPreferenceStyle
Default style for seekbar preferences. |
public
static
int |
seekBarStyle
Default SeekBar style. |
public
static
int |
selectable
Whether the Preference is selectable. |
public
static
int |
selectableItemBackground
A style that may be applied to buttons or other selectable items that should react to pressed and focus states, but that do not have a clear visual border along the edges. |
public
static
int |
selectableItemBackgroundBorderless
Background drawable for borderless standalone items that need focus/pressed states. |
public
static
int |
shadow_width
May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
shouldDisableView
Whether the view of this Preference should be disabled when this Preference is disabled. |
public
static
int |
showAsAction
How this item should display in the Action Bar, if present. |
public
static
int |
showDialogWhenTurningOff
Specifies if the dialog should be shown when the switch is turning off. |
public
static
int |
showDialogWhenTurningOn
Specifies if the dialog should be shown when the switch is turning on. |
public
static
int |
showDividers
Setting for which dividers to show. |
public
static
int |
showNegativeDialogButton
Specifies if the negative button should be shown for the dialog. |
public
static
int |
showPositiveDialogButton
Specifies if the positive button should be shown for the dialog. |
public
static
int |
showSeekBarValue
Flag indicating whether the TextView next to the seekbar that shows the current seekbar value will be displayed. |
public
static
int |
showText
Whether to draw on/off text. |
public
static
int |
showTitle
May be a boolean value, such as " |
public
static
int |
show_overflow_in_peek
Shows the overflow icon in the peek view rather than the first action's icon. |
public
static
int |
singleChoiceItemLayout
May be a reference to another resource, in the form
" |
public
static
int |
singleLineTitle
Whether to use single line for the preference title text. |
public
static
int |
spanCount
May be an integer value, such as " |
public
static
int |
spinBars
Whether bars should rotate or not during transition May be a boolean value, such as " |
public
static
int |
spinnerDropDownItemStyle
Default Spinner style. |
public
static
int |
spinnerStyle
Default Spinner style. |
public
static
int |
splitTrack
Whether to split the track and leave a gap for the thumb drawable. |
public
static
int |
square_dimen
Must be one of the following constant values. |
public
static
int |
srcCompat
Sets a drawable as the content of this ImageView. |
public
static
int |
stackFromEnd
May be a boolean value, such as " |
public
static
int |
state_above_anchor
State identifier indicating the popup will be above the anchor. |
public
static
int |
statusBarBackground
Drawable to display behind the status bar when the view is set to draw behind it. |
public
static
int |
subMenuArrow
Drawable for the arrow icon indicating a particular item is a submenu. |
public
static
int |
submitBackground
Background for the section containing the action (e.g. |
public
static
int |
subtitle
Specifies subtitle text used for navigationMode="normal" May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character; |
public
static
int |
subtitleTextAppearance
May be a reference to another resource, in the form
" |
public
static
int |
subtitleTextColor
A color to apply to the subtitle string. |
public
static
int |
subtitleTextStyle
Specifies a style to use for subtitle text. |
public
static
int |
suggestionRowLayout
Layout for query suggestion rows May be a reference to another resource, in the form
" |
public
static
int |
summary
The summary for the Preference in a PreferenceActivity screen. |
public
static
int |
summaryOff
The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is unchecked. |
public
static
int |
summaryOn
The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is checked. |
public
static
int |
swipeRefreshLayoutProgressSpinnerBackgroundColor
Background color for SwipeRefreshLayout progress spinner. |
public
static
int |
switchMinWidth
Minimum width for the switch component May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
switchPadding
Minimum space between the switch and caption text May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
switchPreferenceCompatStyle
Default style for switch compat preferences. |
public
static
int |
switchPreferenceStyle
Default style for switch preferences. |
public
static
int |
switchStyle
Default style for the Switch widget. |
public
static
int |
switchTextAppearance
TextAppearance style for text displayed on the switch thumb. |
public
static
int |
switchTextOff
The text used on the switch itself when in the "off" state. |
public
static
int |
switchTextOn
The text used on the switch itself when in the "on" state. |
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 |
textAppearanceListItemSecondary
The preferred TextAppearance for the secondary text of list items. |
public
static
int |
textAppearanceListItemSmall
The preferred TextAppearance for the primary text of small list items. |
public
static
int |
textAppearancePopupMenuHeader
Text color, typeface, size, and style for header text inside of a popup menu. |
public
static
int |
textAppearanceSearchResultSubtitle
Text color, typeface, size, and style for system search result subtitle. |
public
static
int |
textAppearanceSearchResultTitle
Text color, typeface, size, and style for system search result title. |
public
static
int |
textAppearanceSmallPopupMenu
Text color, typeface, size, and style for small text inside of a popup menu. |
public
static
int |
textColor
Defines text color for short text and long text fields. |
public
static
int |
textColorAlertDialogListItem
Color of list item text in alert dialogs. |
public
static
int |
textColorSearchUrl
Text color for urls in search suggestions, used by things like global search May be a reference to another resource, in the form
" |
public
static
int |
textLocale
Set the textLocale by a comma-separated language tag string, for example "ja-JP,zh-CN". |
public
static
int |
textSize
Defines text size for short text and long text fields. |
public
static
int |
textTypeface
Defines typeface for short text and long text fields. |
public
static
int |
theme
Deprecated. |
public
static
int |
thickness
The thickness (stroke size) for the bar paint May be a dimension value, which is a floating point number appended with a
unit such as " |
public
static
int |
thumbTextPadding
Amount of padding on either side of text within the switch thumb. |
public
static
int |
thumbTint
Tint to apply to the thumb drawable. |
public
static
int |
thumbTintMode
Blending mode used to apply the thumb tint. |
public
static
int |
tickMark
Drawable displayed at each progress position on a seekbar. |
public
static
int |
tickMarkTint
Tint to apply to the tick mark drawable. |
public
static
int |
tickMarkTintMode
Blending mode used to apply the tick mark tint. |
public
static
int |
tint
Tint to apply to the image source. |
public
static
int |
tintMode
Blending mode used to apply the image source tint. |
public
static
int |
title
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character; |
public
static
int |
titleColor
Defines text color for short title and long title fields. |
public
static
int |
titleMargin
Specifies extra space on the left, start, right and end sides of the toolbar's title. |
public
static
int |
titleMarginBottom
Specifies extra space on the bottom side of the toolbar's title. |
public
static
int |
titleMarginEnd
Specifies extra space on the end side of the toolbar's title. |
public
static
int |
titleMarginStart
Specifies extra space on the start side of the toolbar's title. |
public
static
int |
titleMarginTop
Specifies extra space on the top side of the toolbar's title. |
public
static
int |
titleMargins
This field is deprecated. Use titleMargin |
public
static
int |
titleSize
Defines text size for short title and long title fields. |
public
static
int |
titleTextAppearance
May be a reference to another resource, in the form
" |
public
static
int |
titleTextColor
A color to apply to the title string. |
public
static
int |
titleTextStyle
Specifies a style to use for title text. |
public
static
int |
titleTypeface
Defines typeface for short title and long title fields. |
public
static
int |
toolbarNavigationButtonStyle
Default Toolar NavigationButtonStyle May be a reference to another resource, in the form
" |
public
static
int |
toolbarStyle
Default Toolbar style. |
public
static
int |
tooltipForegroundColor
Foreground color to use for tooltips May be a reference to another resource, in the form
" |
public
static
int |
tooltipFrameBackground
Background to use for tooltips May be a reference to another resource, in the form
" |
public
static
int |
tooltipText
The tooltip text associated with the item. |
public
static
int |
track
Drawable to use as the "track" that the switch thumb slides within. |
public
static
int |
trackTint
Tint to apply to the track. |
public
static
int |
trackTintMode
Blending mode used to apply the track tint. |
public
static
int |
ttcIndex
The index of the font in the tcc font file. |
public
static
int |
update_interval
May be an integer value, such as " |
public
static
int |
updatesContinuously
Flag indicating whether the SeekBarPreference should continuously save the Seekbar value while the Seekbar is being dragged. |
public
static
int |
useSimpleSummaryProvider
Whether the preference should automatically set its summary to the value saved for the preference, and update the summary when the value is changed. |
public
static
int |
viewInflaterClass
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character; |
public
static
int |
voiceIcon
Voice button icon May be a reference to another resource, in the form
" |
public
static
int |
widgetLayout
The layout for the controllable widget portion of a Preference. |
public
static
int |
windowActionBar
Flag indicating whether this window should have an Action Bar in place of the usual title bar. |
public
static
int |
windowActionBarOverlay
Flag indicating whether this window's Action Bar should overlay application content. |
public
static
int |
windowActionModeOverlay
Flag indicating whether action modes should overlay window content when there is not reserved space for their UI (such as an Action Bar). |
public
static
int |
windowFixedHeightMajor
A fixed height for the window along the major axis of the screen, that is, when in portrait. |
public
static
int |
windowFixedHeightMinor
A fixed height for the window along the minor axis of the screen, that is, when in landscape. |
public
static
int |
windowFixedWidthMajor
A fixed width for the window along the major axis of the screen, that is, when in landscape. |
public
static
int |
windowFixedWidthMinor
A fixed width for the window along the minor axis of the screen, that is, when in portrait. |
public
static
int |
windowMinWidthMajor
The minimum width the window is allowed to be, along the major axis of the screen. |
public
static
int |
windowMinWidthMinor
The minimum width the window is allowed to be, along the minor axis of the screen. |
public
static
int |
windowNoTitle
Flag indicating whether there should be no title on this window. |
Public constructors | |
---|---|
R.attr()
|
Inherited methods | |
---|---|
![]()
java.lang.Object
|
Fields
actionBarDivider
int actionBarDivider
Custom divider drawable to use for elements in the action bar.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionBarItemBackground
int actionBarItemBackground
Custom item state list drawable background for action bar items.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionBarPopupTheme
int actionBarPopupTheme
Reference to a theme that should be used to inflate popups shown by widgets in the action bar.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionBarSize
int actionBarSize
Size of the Action Bar, including the contextual bar used to present Action Modes.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
wrap_content | 0 |
actionBarSplitStyle
int actionBarSplitStyle
Reference to a style for the split Action Bar. This style controls the split component that holds the menu/action buttons. actionBarStyle is still used for the primary bar.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionBarStyle
int actionBarStyle
Reference to a style for the Action Bar
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionBarTabBarStyle
int actionBarTabBarStyle
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionBarTabStyle
int actionBarTabStyle
Default style for tabs within an action bar
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionBarTabTextStyle
int actionBarTabTextStyle
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionBarTheme
int actionBarTheme
Reference to a theme that should be used to inflate the action bar. This will be inherited by any widget inflated into the action bar.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionBarWidgetTheme
int actionBarWidgetTheme
Reference to a theme that should be used to inflate widgets and layouts destined for the action bar. Most of the time this will be a reference to the current theme, but when the action bar has a significantly different contrast profile than the rest of the activity the difference can become important. If this is set to @null the current theme will be used.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionButtonStyle
int actionButtonStyle
Default action button style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionDropDownStyle
int actionDropDownStyle
Default ActionBar dropdown style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionLayout
int actionLayout
An optional layout to be used as an action view.
See setActionView(android.view.View)
for more info.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionMenuTextAppearance
int actionMenuTextAppearance
TextAppearance style that will be applied to text that appears within action menu items.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionMenuTextColor
int actionMenuTextColor
Color for text that appears within action menu items.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
actionModeBackground
int actionModeBackground
Background drawable to use for action mode UI
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionModeCloseButtonStyle
int actionModeCloseButtonStyle
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionModeCloseDrawable
int actionModeCloseDrawable
Drawable to use for the close action mode button
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionModeCopyDrawable
int actionModeCopyDrawable
Drawable to use for the Copy action button in Contextual Action Bar
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionModeCutDrawable
int actionModeCutDrawable
Drawable to use for the Cut action button in Contextual Action Bar
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionModeFindDrawable
int actionModeFindDrawable
Drawable to use for the Find action button in WebView selection action modes
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionModePasteDrawable
int actionModePasteDrawable
Drawable to use for the Paste action button in Contextual Action Bar
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionModePopupWindowStyle
int actionModePopupWindowStyle
PopupWindow style to use for action modes when showing as a window overlay.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionModeSelectAllDrawable
int actionModeSelectAllDrawable
Drawable to use for the Select all action button in Contextual Action Bar
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionModeShareDrawable
int actionModeShareDrawable
Drawable to use for the Share action button in WebView selection action modes
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionModeSplitBackground
int actionModeSplitBackground
Background drawable to use for action mode UI in the lower split bar
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionModeStyle
int actionModeStyle
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionModeWebSearchDrawable
int actionModeWebSearchDrawable
Drawable to use for the Web Search action button in WebView selection action modes
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionOverflowButtonStyle
int actionOverflowButtonStyle
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionOverflowMenuStyle
int actionOverflowMenuStyle
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
actionProviderClass
int actionProviderClass
The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.
See setActionProvider(android.view.ActionProvider)
for more info.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
actionViewClass
int actionViewClass
The name of an optional View class to instantiate and use as an
action view. See setActionView(android.view.View)
for more info.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
action_menu
int action_menu
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
activityChooserViewStyle
int activityChooserViewStyle
Default ActivityChooserView style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
adjustable
int adjustable
Attribute indicating whether the slider within this preference can be adjusted, that is pressing left/right keys when this preference is focused will move the slider accordingly (e.g. inline adjustable preferences). False, if the slider within the preference is read-only and cannot be adjusted. By default, the seekbar is adjustable.
May be a boolean value, such as "true
" or
"false
".
alertDialogButtonGroupStyle
int alertDialogButtonGroupStyle
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
alertDialogCenterButtons
int alertDialogCenterButtons
May be a boolean value, such as "true
" or
"false
".
alertDialogStyle
int alertDialogStyle
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
alertDialogTheme
int alertDialogTheme
Theme to use for alert dialogs spawned from this theme.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
allowDividerAbove
int allowDividerAbove
Whether the preference allows displaying divider on top
May be a boolean value, such as "true
" or
"false
".
allowDividerAfterLastItem
int allowDividerAfterLastItem
Whether a divider is allowed to draw after the last item
May be a boolean value, such as "true
" or
"false
".
allowDividerBelow
int allowDividerBelow
Whether the preference allows displaying divider below it
May be a boolean value, such as "true
" or
"false
".
allowStacking
int allowStacking
Whether to automatically stack the buttons when there is not enough space to lay them out side-by-side.
May be a boolean value, such as "true
" or
"false
".
alpha
int alpha
Alpha multiplier applied to the base color.
May be a floating point value, such as "1.2
".
alphabeticModifiers
int alphabeticModifiers
The alphabetic modifier key. This is the modifier when using a keyboard with alphabetic keys. The values should be kept in sync with KeyEvent
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
ALT | 2 | |
CTRL | 1000 | |
FUNCTION | 8 | |
META | 10000 | |
SHIFT | 1 | |
SYM | 4 |
arrowHeadLength
int arrowHeadLength
The length of the arrow head when formed to make an arrow
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
arrowShaftLength
int arrowShaftLength
The length of the shaft when formed to make an arrow
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
autoCompleteTextViewStyle
int autoCompleteTextViewStyle
Default AutoCompleteTextView style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
autoSizeMaxTextSize
int autoSizeMaxTextSize
The maximum text size constraint to be used when auto-sizing text.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
autoSizeMinTextSize
int autoSizeMinTextSize
The minimum text size constraint to be used when auto-sizing text.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
autoSizePresetSizes
int autoSizePresetSizes
Resource array of dimensions to be used in conjunction with
autoSizeTextType
set to uniform
. Overrides
autoSizeStepGranularity
if set.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
autoSizeStepGranularity
int autoSizeStepGranularity
Specify the auto-size step size if autoSizeTextType
is set to
uniform
. The default is 1px. Overwrites
autoSizePresetSizes
if set.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
autoSizeTextType
int autoSizeTextType
Specify the type of auto-size. Note that this feature is not supported by EditText, works only for TextView.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
none | 0 | No auto-sizing (default). |
uniform | 1 | Uniform horizontal and vertical text size scaling to fit within the container. |
background
int background
Specifies a background drawable for the action bar.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
backgroundColor
int backgroundColor
Defines the background color.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
backgroundDrawable
int backgroundDrawable
Defines the drawable to be used as a background. Corners of the drawable will be rounded if border radius of the complication drawable is non-zero. Even if a background drawable is set, background color will still be used to fill background of the complication before drawing the drawable.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
backgroundSplit
int backgroundSplit
Specifies a background drawable for the bottom component of a split action bar.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
backgroundStacked
int backgroundStacked
Specifies a background drawable for a second stacked row of the action bar.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
backgroundTint
int backgroundTint
Tint to apply to the background.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
backgroundTintMode
int backgroundTintMode
Blending mode used to apply the background tint.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
add | 10 | Combines the tint and icon color and alpha channels, clamping the result to valid color values. Saturate(S + D) |
multiply | e | Multiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc] |
screen | f | [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] |
src_atop | 9 | The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] |
src_in | 5 | The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da] |
src_over | 3 | The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] |
barLength
int barLength
The length of the bars when they are parallel to each other
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
bezel_width
int bezel_width
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.
borderColor
int borderColor
Defines border color.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
borderDashGap
int borderDashGap
Defines dash gap for borders with style 'dashed'.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
borderDashWidth
int borderDashWidth
Defines dash width for borders with style 'dashed'.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
borderRadius
int borderRadius
Defines border radius. Padding will be applied to the content to avoid overflow if border radius is not zero.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
borderStyle
int borderStyle
Defines border style.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
dashed | 2 | Draw dashed borders. borderDashWidth and borderDashGap attributes can be used to customize dashed borders. |
none | 0 | Do not draw any borders. |
solid | 1 | Draw solid borders. |
borderWidth
int borderWidth
Defines stroke width for borders.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
borderlessButtonStyle
int borderlessButtonStyle
Style for buttons without an explicit border, often used in groups.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
buttonBarButtonStyle
int buttonBarButtonStyle
Style for buttons within button bars
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
buttonBarNegativeButtonStyle
int buttonBarNegativeButtonStyle
Style for the "negative" buttons within button bars
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
buttonBarNeutralButtonStyle
int buttonBarNeutralButtonStyle
Style for the "neutral" buttons within button bars
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
buttonBarPositiveButtonStyle
int buttonBarPositiveButtonStyle
Style for the "positive" buttons within button bars
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
buttonBarStyle
int buttonBarStyle
Style for button bars
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
buttonCompat
int buttonCompat
Compat attr to load backported drawable types
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
buttonGravity
int buttonGravity
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
bottom | 50 | Push object to the bottom of its container, not changing its size. |
center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
top | 30 | Push object to the top of its container, not changing its size. |
buttonIconDimen
int buttonIconDimen
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
buttonPanelSideLayout
int buttonPanelSideLayout
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
buttonRippleColor
int buttonRippleColor
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
buttonStyle
int buttonStyle
Normal Button style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
buttonStyleSmall
int buttonStyleSmall
Small Button style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
buttonTint
int buttonTint
Tint to apply to the button drawable.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
buttonTintMode
int buttonTintMode
Blending mode used to apply the button tint.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
add | 10 | Combines the tint and icon color and alpha channels, clamping the result to valid color values. Saturate(S + D) |
multiply | e | Multiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc] |
screen | f | [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] |
src_atop | 9 | The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] |
src_in | 5 | The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da] |
src_over | 3 | The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] |
checkBoxPreferenceStyle
int checkBoxPreferenceStyle
Default style for CheckBoxPreference.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
checkboxStyle
int checkboxStyle
Default Checkbox style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
checkedTextViewStyle
int checkedTextViewStyle
Default CheckedTextView style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
circle_border_cap
int circle_border_cap
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
butt | 0 | |
round | 1 | |
square | 2 |
circle_border_color
int circle_border_color
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
circle_border_width
int circle_border_width
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
circle_color
int circle_color
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
circle_padding
int circle_padding
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
circle_radius
int circle_radius
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
circle_radius_percent
int circle_radius_percent
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.
circle_radius_pressed
int circle_radius_pressed
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
circle_radius_pressed_percent
int circle_radius_pressed_percent
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.
circular_scrolling_gesture_enabled
int circular_scrolling_gesture_enabled
May be a boolean value, such as "true
" or
"false
".
closeIcon
int closeIcon
Close button icon
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
closeItemLayout
int closeItemLayout
Specifies a layout to use for the "close" item at the starting edge.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
collapseContentDescription
int collapseContentDescription
Text to set as the content description for the collapse button.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
collapseIcon
int collapseIcon
Icon drawable to use for the collapse button.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
color
int color
The drawing color for the bars
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
colorAccent
int colorAccent
Bright complement to the primary branding color. By default, this is the color applied to framework controls (via colorControlActivated).
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
colorBackgroundFloating
int colorBackgroundFloating
Default color of background imagery for floating components, ex. dialogs, popups, and cards.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
colorButtonNormal
int colorButtonNormal
The color applied to framework buttons in their normal state.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
colorControlActivated
int colorControlActivated
The color applied to framework controls in their activated (ex. checked) state.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
colorControlHighlight
int colorControlHighlight
The color applied to framework control highlights (ex. ripples, list selectors).
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
colorControlNormal
int colorControlNormal
The color applied to framework controls in their normal state.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
colorError
int colorError
Color used for error states and things that need to be drawn to the user's attention.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
colorPrimary
int colorPrimary
The primary branding color for the app. By default, this is the color applied to the action bar background.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
colorPrimaryDark
int colorPrimaryDark
Dark variant of the primary branding color. By default, this is the color applied to the status bar (via statusBarColor) and navigation bar (via navigationBarColor).
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
colorSwitchThumbNormal
int colorSwitchThumbNormal
The color applied to framework switch thumbs in their normal state.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
color_sequence
int color_sequence
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
commitIcon
int commitIcon
Commit icon shown in the query suggestion row
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
contentDescription
int contentDescription
The content description associated with the item.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
contentInsetEnd
int contentInsetEnd
Minimum inset for content views within a bar. Navigation buttons and menu views are excepted. Only valid for some themes and configurations.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
contentInsetEndWithActions
int contentInsetEndWithActions
Minimum inset for content views within a bar when actions from a menu are present. Only valid for some themes and configurations.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
contentInsetLeft
int contentInsetLeft
Minimum inset for content views within a bar. Navigation buttons and menu views are excepted. Only valid for some themes and configurations.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
contentInsetRight
int contentInsetRight
Minimum inset for content views within a bar. Navigation buttons and menu views are excepted. Only valid for some themes and configurations.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
contentInsetStart
int contentInsetStart
Minimum inset for content views within a bar. Navigation buttons and menu views are excepted. Only valid for some themes and configurations.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
contentInsetStartWithNavigation
int contentInsetStartWithNavigation
Minimum inset for content views within a bar when a navigation button is present, such as the Up button. Only valid for some themes and configurations.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
controlBackground
int controlBackground
The background used by framework controls.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
coordinatorLayoutStyle
int coordinatorLayoutStyle
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
customNavigationLayout
int customNavigationLayout
Specifies a layout for custom navigation. Overrides navigationMode.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
defaultQueryHint
int defaultQueryHint
Default query hint used when queryHint
is undefined and
the search view's SearchableInfo
does not provide a hint.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
defaultValue
int defaultValue
The default value for the preference, which will be set either if persistence is off or persistence is on and the preference is not found in the persistent storage.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
May be an integer value, such as "100
".
May be a boolean value, such as "true
" or
"false
".
May be a floating point value, such as "1.2
".
dependency
int dependency
The key of another Preference that this Preference will depend on. If the other Preference is not set or is off, this Preference will be disabled.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
dialogCornerRadius
int dialogCornerRadius
Preferred corner radius of dialogs.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
dialogIcon
int dialogIcon
The icon for the dialog.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
dialogLayout
int dialogLayout
A layout to be used as the content View for the dialog. By default, this shouldn't be needed. If a custom DialogPreference is required, this should be set. For example, the EditTextPreference uses a layout with an EditText as this attribute.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
dialogMessage
int dialogMessage
The message in the dialog. If a dialogLayout is provided and contains a TextView with ID android:id/message, this message will be placed in there.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
dialogPreferenceStyle
int dialogPreferenceStyle
Default style for DialogPreference.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
dialogPreferredPadding
int dialogPreferredPadding
Preferred padding for dialog content.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
dialogTheme
int dialogTheme
Theme to use for dialogs spawned from this theme.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
dialogTitle
int dialogTitle
The title in the dialog.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
disableDependentsState
int disableDependentsState
The state (true for on, or false for off) that causes dependents to be disabled. By default, dependents will be disabled when this is unchecked, so the value of this preference is false.
May be a boolean value, such as "true
" or
"false
".
displayOptions
int displayOptions
Options affecting how the action bar is displayed.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
disableHome | 20 | |
homeAsUp | 4 | |
none | 0 | |
showCustom | 10 | |
showHome | 2 | |
showTitle | 8 | |
useLogo | 1 |
divider
int divider
Specifies the drawable used for item dividers.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
dividerHorizontal
int dividerHorizontal
A drawable that may be used as a horizontal divider between visual elements.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
dividerPadding
int dividerPadding
Size of padding on either end of a divider.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
dividerVertical
int dividerVertical
A drawable that may be used as a vertical divider between visual elements.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
dotColor
int dotColor
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
dotColorSelected
int dotColorSelected
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
dotFadeInDuration
int dotFadeInDuration
May be an integer value, such as "100
".
dotFadeOutDelay
int dotFadeOutDelay
May be an integer value, such as "100
".
dotFadeOutDuration
int dotFadeOutDuration
May be an integer value, such as "100
".
dotFadeWhenIdle
int dotFadeWhenIdle
May be a boolean value, such as "true
" or
"false
".
dotRadius
int dotRadius
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
dotRadiusSelected
int dotRadiusSelected
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
dotShadowColor
int dotShadowColor
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
dotShadowDx
int dotShadowDx
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
dotShadowDy
int dotShadowDy
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
dotShadowRadius
int dotShadowRadius
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
dotSpacing
int dotSpacing
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
drawableBottomCompat
int drawableBottomCompat
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
drawableEndCompat
int drawableEndCompat
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
drawableLeftCompat
int drawableLeftCompat
Compound drawables allowing the use of vector drawable when running on older versions of the platform.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
drawableRightCompat
int drawableRightCompat
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
drawableSize
int drawableSize
The total size of the drawable
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
drawableStartCompat
int drawableStartCompat
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
drawableTint
int drawableTint
Tint to apply to the compound (left, top, etc.) drawables.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
drawableTintMode
int drawableTintMode
Blending mode used to apply the compound (left, top, etc.) drawables tint.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
add | 10 | Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D) |
multiply | e | Multiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc] |
screen | f | [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] |
src_atop | 9 | The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] |
src_in | 5 | The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da] |
src_over | 3 | The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] |
drawableTopCompat
int drawableTopCompat
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
drawerArrowStyle
int drawerArrowStyle
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
drawerLayoutStyle
int drawerLayoutStyle
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
drawer_content
int drawer_content
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
drawer_title
int drawer_title
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
dropDownListViewStyle
int dropDownListViewStyle
ListPopupWindow compatibility
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
dropdownListPreferredItemHeight
int dropdownListPreferredItemHeight
The preferred item height for dropdown lists.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
dropdownPreferenceStyle
int dropdownPreferenceStyle
Default style for DropDownPreference.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
editTextBackground
int editTextBackground
EditText background drawable.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
editTextColor
int editTextColor
EditText text foreground color.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
editTextPreferenceStyle
int editTextPreferenceStyle
Default style for EditTextPreference.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
editTextStyle
int editTextStyle
Default EditText style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
elevation
int elevation
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
enableCopying
int enableCopying
Whether the summary of this preference can be copied to the clipboard by long pressing on the preference. By default, this is set to false.
May be a boolean value, such as "true
" or
"false
".
enabled
int enabled
Whether the Preference is enabled.
May be a boolean value, such as "true
" or
"false
".
entries
int entries
The human-readable array to present as a list. Each entry must have a corresponding index in entryValues.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
entryValues
int entryValues
The array to find the value to save for a preference when an entry from entries is selected. If a user clicks on the second item in entries, the second item in this array will be saved to the preference.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
expandActivityOverflowButtonDrawable
int expandActivityOverflowButtonDrawable
The drawable to show in the button for expanding the activities overflow popup. Note: Clients would like to set this drawable as a clue about the action the chosen activity will perform. For example, if share activity is to be chosen the drawable should give a clue that sharing is to be performed.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
fastScrollEnabled
int fastScrollEnabled
May be a boolean value, such as "true
" or
"false
".
fastScrollHorizontalThumbDrawable
int fastScrollHorizontalThumbDrawable
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
fastScrollHorizontalTrackDrawable
int fastScrollHorizontalTrackDrawable
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
fastScrollVerticalThumbDrawable
int fastScrollVerticalThumbDrawable
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
fastScrollVerticalTrackDrawable
int fastScrollVerticalTrackDrawable
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
firstBaselineToTopHeight
int firstBaselineToTopHeight
Distance from the top of the TextView to the first text baseline. If set, this overrides the value set for paddingTop.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
font
int font
The reference to the font file to be used. This should be a file in the res/font folder and should therefore have an R reference value. E.g. @font/myfont
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
fontFamily
int fontFamily
The attribute for the font family.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
fontProviderAuthority
int fontProviderAuthority
The authority of the Font Provider to be used for the request.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
fontProviderCerts
int fontProviderCerts
The sets of hashes for the certificates the provider should be signed with. This is used to verify the identity of the provider, and is only required if the provider is not part of the system image. This value may point to one list or a list of lists, where each individual list represents one collection of signature hashes. Refer to your font provider's documentation for these values.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
fontProviderFetchStrategy
int fontProviderFetchStrategy
The strategy to be used when fetching font data from a font provider in XML layouts.
This attribute is ignored when the resource is loaded from code, as it is equivalent to the
choice of API between getFont(Context, int)
(blocking) and
getFont(Context, int, FontCallback, Handler)
(async).
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
async | 1 | The async font fetch works as follows. First, check the local cache, then if the requeted font is not cached, trigger a request the font and continue with layout inflation. Once the font fetch succeeds, the target text view will be refreshed with the downloaded font data. The fontProviderFetchTimeout will be ignored if async loading is specified. |
blocking | 0 | The blocking font fetch works as follows. First, check the local cache, then if the requested font is not cached, request the font from the provider and wait until it is finished. You can change the length of the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the default typeface will be used instead. |
fontProviderFetchTimeout
int fontProviderFetchTimeout
The length of the timeout during fetching.
May be an integer value, such as "100
".
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not timeout and wait until a reply is received from the font provider. |
fontProviderPackage
int fontProviderPackage
The package for the Font Provider to be used for the request. This is used to verify the identity of the provider.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
fontProviderQuery
int fontProviderQuery
The query to be sent over to the provider. Refer to your font provider's documentation on the format of this string.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
fontStyle
int fontStyle
The style of the given font file. This will be used when the font is being loaded into the font stack and will override any style information in the font's header tables. If unspecified, the value in the font's header tables will be used.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
italic | 1 | |
normal | 0 |
fontVariationSettings
int fontVariationSettings
The variation settings to be applied to the font. The string should be in the following format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be used, or the font used does not support variation settings, this attribute needs not be specified.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
fontWeight
int fontWeight
The weight of the given font file. This will be used when the font is being loaded into the font stack and will override any weight information in the font's header tables. Must be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most common values are 400 for regular weight and 700 for bold weight. If unspecified, the value in the font's header tables will be used.
May be an integer value, such as "100
".
fragment
int fragment
When used inside of a modern PreferenceActivity, this declares a new PreferenceFragment to be shown when the user selects this item.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
gapBetweenBars
int gapBetweenBars
The max gap between the bars when they are parallel to each other
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
goIcon
int goIcon
Go button icon
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
height
int height
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
hideOnContentScroll
int hideOnContentScroll
Set true to hide the action bar on a vertical nested scroll of content.
May be a boolean value, such as "true
" or
"false
".
highlightColor
int highlightColor
Defines highlight color.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
homeAsUpIndicator
int homeAsUpIndicator
Specifies a drawable to use for the 'home as up' indicator.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
homeLayout
int homeLayout
Specifies a layout to use for the "home" section of the action bar.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
icon
int icon
Specifies the drawable used for the application icon.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
iconColor
int iconColor
Defines icon tint color.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
iconSpaceReserved
int iconSpaceReserved
Whether the space for the preference icon view will be reserved. If set to true, the preference will be offset as if it would have the icon and thus aligned with other preferences having icons. By default, preference icon view visibility will be set to GONE when there is no icon provided, so the default value of this attribute is false.
May be a boolean value, such as "true
" or
"false
".
iconTint
int iconTint
Tint to apply to the icon.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
iconTintMode
int iconTintMode
Blending mode used to apply the icon tint.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
add | 10 | Combines the tint and icon color and alpha channels, clamping the result to valid color values. Saturate(S + D) |
multiply | e | Multiplies the color and alpha channels of the icon with those of the tint. [Sa * Da, Sc * Dc] |
screen | f | [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] |
src_atop | 9 | The tint is drawn above the icon, but with the icon’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] |
src_in | 5 | The tint is masked by the alpha channel of the icon. The icon’s color channels are thrown out. [Sa * Da, Sc * Da] |
src_over | 3 | The tint is drawn on top of the icon. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] |
iconifiedByDefault
int iconifiedByDefault
The default state of the SearchView. If true, it will be iconified when not in use and expanded when clicked.
May be a boolean value, such as "true
" or
"false
".
imageButtonStyle
int imageButtonStyle
ImageButton background drawable.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
imageScaleMode
int imageScaleMode
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
center | 1 | |
fit | 0 |
image_circle_percentage
int image_circle_percentage
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
image_horizontal_offcenter_percentage
int image_horizontal_offcenter_percentage
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
image_tint
int image_tint
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
indeterminateProgressStyle
int indeterminateProgressStyle
Specifies a style resource to use for an indeterminate progress spinner.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
initialActivityCount
int initialActivityCount
The maximal number of items initially shown in the activity list.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
initialExpandedChildrenCount
int initialExpandedChildrenCount
The maximal number of children that are shown when the preference group is launched where the rest of the children will be hidden. If some children are hidden an expand button will be provided to show all the hidden children. Any child in any level of the hierarchy that is also a preference group (e.g. preference category) will not be counted towards the limit. But instead the children of such group will be counted. By default, all children will be shown, so the default value of this attribute is equal to Integer.MAX_VALUE. The group should have a key defined if an expandable preference is present to correctly persist state.
May be an integer value, such as "100
".
isLightTheme
int isLightTheme
May be a boolean value, such as "true
" or
"false
".
isPreferenceVisible
int isPreferenceVisible
Whether the Preference is visible. By default, this is set to true.
May be a boolean value, such as "true
" or
"false
".
itemPadding
int itemPadding
Specifies padding that should be applied to the left and right sides of system-provided items in the bar.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
key
int key
The key to store the Preference value.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
keylines
int keylines
A reference to an array of integers representing the locations of horizontal keylines in dp from the starting edge. Child views can refer to these keylines for alignment using layout_keyline="index" where index is a 0-based index into this array.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
lastBaselineToBottomHeight
int lastBaselineToBottomHeight
Distance from the bottom of the TextView to the last text baseline. If set, this overrides the value set for paddingBottom.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
layout
int layout
The layout to use for the search view.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
layoutManager
int layoutManager
Class name of the Layout Manager to be used.
The class must ext androidx.recyclerview.widget.RecyclerViewView$LayoutManager and have either a default constructor or constructor with the signature (android.content.Context, android.util.AttributeSet, int, int). If the name starts with a '.', application package is prefixed. Else, if the name contains a '.', the classname is assumed to be a full class name. Else, the recycler view package naandroidx.appcompat.widgetdget) is prefixed.May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
layout_anchor
int layout_anchor
The id of an anchor view that this view should position relative to.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
layout_anchorGravity
int layout_anchorGravity
Specifies how an object should position relative to an anchor, on both the X and Y axes, within its parent's bounds.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
bottom | 50 | Push object to the bottom of its container, not changing its size. |
center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of the child clipped to its container's bounds. The clip will be based on the horizontal gravity: a left gravity will clip the right edge, a right gravity will clip the left edge, and neither will clip both edges. |
clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of the child clipped to its container's bounds. The clip will be based on the vertical gravity: a top gravity will clip the bottom edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
end | 800005 | Push object to the end of its container, not changing its size. |
fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
left | 3 | Push object to the left of its container, not changing its size. |
right | 5 | Push object to the right of its container, not changing its size. |
start | 800003 | Push object to the beginning of its container, not changing its size. |
top | 30 | Push object to the top of its container, not changing its size. |
layout_aspectRatio
int layout_aspectRatio
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.
layout_behavior
int layout_behavior
The class name of a Behavior class defining special runtime behavior for this child view.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
layout_box
int layout_box
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
all | f | |
bottom | 8 | |
left | 1 | |
right | 4 | |
top | 2 |
layout_dodgeInsetEdges
int layout_dodgeInsetEdges
Specifies how this view dodges the inset edges of the CoordinatorLayout.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
all | 77 | Dodge all the inset edges. |
bottom | 50 | Dodge the bottom inset edge. |
end | 800005 | Dodge the end inset edge. |
left | 3 | Dodge the left inset edge. |
none | 0 | Don't dodge any edges |
right | 5 | Dodge the right inset edge. |
start | 800003 | Dodge the start inset edge. |
top | 30 | Dodge the top inset edge. |
layout_gravityRound
int layout_gravityRound
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
bottom | 50 | Push object to the bottom of its container, not changing its size. |
center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of the child clipped to its container's bounds. The clip will be based on the horizontal gravity: a left gravity will clip the right edge, a right gravity will clip the left edge, and neither will clip both edges. |
clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of the child clipped to its container's bounds. The clip will be based on the vertical gravity: a top gravity will clip the bottom edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
end | 800005 | Push object to the end of its container, not changing its size. |
fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
left | 3 | Push object to the left of its container, not changing its size. |
right | 5 | Push object to the right of its container, not changing its size. |
start | 800003 | Push object to the beginning of its container, not changing its size. |
top | 30 | Push object to the top of its container, not changing its size. |
layout_heightPercent
int layout_heightPercent
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.
layout_heightRound
int layout_heightRound
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
layout_insetEdge
int layout_insetEdge
Specifies how this view insets the CoordinatorLayout and make some other views dodge it.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
bottom | 50 | Inset the bottom edge. |
end | 800005 | Inset the end edge. |
left | 3 | Inset the left edge. |
none | 0 | Don't inset. |
right | 5 | Inset the right edge. |
start | 800003 | Inset the start edge. |
top | 30 | Inset the top edge. |
layout_keyline
int layout_keyline
The index of a keyline this view should position relative to. android:layout_gravity will affect how the view aligns to the specified keyline.
May be an integer value, such as "100
".
layout_marginBottomPercent
int layout_marginBottomPercent
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.
layout_marginBottomRound
int layout_marginBottomRound
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
layout_marginEndPercent
int layout_marginEndPercent
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.
layout_marginLeftPercent
int layout_marginLeftPercent
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.
layout_marginLeftRound
int layout_marginLeftRound
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
layout_marginPercent
int layout_marginPercent
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.
layout_marginRightPercent
int layout_marginRightPercent
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.
layout_marginRightRound
int layout_marginRightRound
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
layout_marginRound
int layout_marginRound
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
layout_marginStartPercent
int layout_marginStartPercent
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.
layout_marginTopPercent
int layout_marginTopPercent
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.
layout_marginTopRound
int layout_marginTopRound
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
layout_widthPercent
int layout_widthPercent
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.
layout_widthRound
int layout_widthRound
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
lineHeight
int lineHeight
Explicit height between lines of text. If set, this will override the values set for lineSpacingExtra and lineSpacingMultiplier.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
listChoiceBackgroundIndicator
int listChoiceBackgroundIndicator
Drawable used as a background for selected list items.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
listChoiceIndicatorMultipleAnimated
int listChoiceIndicatorMultipleAnimated
Animated Drawable to use for single choice indicators.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
listChoiceIndicatorSingleAnimated
int listChoiceIndicatorSingleAnimated
Animated Drawable to use for multiple choice indicators.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
listDividerAlertDialog
int listDividerAlertDialog
The list divider used in alert dialogs.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
listItemLayout
int listItemLayout
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
listLayout
int listLayout
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
listMenuViewStyle
int listMenuViewStyle
Default menu-style ListView style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
listPopupWindowStyle
int listPopupWindowStyle
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
listPreferredItemHeight
int listPreferredItemHeight
The preferred list item height.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
listPreferredItemHeightLarge
int listPreferredItemHeightLarge
A larger, more robust list item height.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
listPreferredItemHeightSmall
int listPreferredItemHeightSmall
A smaller, sleeker list item height.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
listPreferredItemPaddingEnd
int listPreferredItemPaddingEnd
The preferred padding along the end edge of list items.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
listPreferredItemPaddingLeft
int listPreferredItemPaddingLeft
The preferred padding along the left edge of list items.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
listPreferredItemPaddingRight
int listPreferredItemPaddingRight
The preferred padding along the right edge of list items.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
listPreferredItemPaddingStart
int listPreferredItemPaddingStart
The preferred padding along the start edge of list items.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
logo
int logo
Specifies the drawable used for the application logo.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
logoDescription
int logoDescription
A content description string to describe the appearance of the associated logo image.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
maxButtonHeight
int maxButtonHeight
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
maxHeight
int maxHeight
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
maxTextSize
int maxTextSize
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
maxWidth
int maxWidth
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
measureWithLargestChild
int measureWithLargestChild
When set to true, all children with a weight will be considered having the minimum size of the largest child. If false, all children are measured normally.
May be a boolean value, such as "true
" or
"false
".
menu
int menu
Menu resource to inflate to be shown in the toolbar
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
min
int min
May be an integer value, such as "100
".
minTextSize
int minTextSize
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
multiChoiceItemLayout
int multiChoiceItemLayout
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
navigationContentDescription
int navigationContentDescription
Text to set as the content description for the navigation button located at the start of the toolbar.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
navigationIcon
int navigationIcon
Icon drawable to use for the navigation button located at the start of the toolbar.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
navigationMode
int navigationMode
The type of navigation to use.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
listMode | 1 | The action bar will use a selection list for navigation. |
normal | 0 | Normal static title text |
tabMode | 2 | The action bar will use a series of horizontal tabs for navigation. |
navigation_style
int navigation_style
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
multi_page | 1 | |
single_page | 0 |
negativeButtonIcon
int negativeButtonIcon
The icon for the negative button for the dialog.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
negativeButtonText
int negativeButtonText
The negative button text for the dialog. Set to @null to hide the negative button.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
neutralButtonIcon
int neutralButtonIcon
The icon for the neutral button for the dialog.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
neutralButtonText
int neutralButtonText
The neutral button text for the dialog. Set to @null to hide the neutral button.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
numericModifiers
int numericModifiers
The numeric modifier key. This is the modifier when using a numeric (e.g., 12-key) keyboard. The values should be kept in sync with KeyEvent
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
ALT | 2 | |
CTRL | 1000 | |
FUNCTION | 8 | |
META | 10000 | |
SHIFT | 1 | |
SYM | 4 |
order
int order
The order for the Preference (lower values are to be ordered first). If this is not specified, the default ordering will be alphabetic.
May be an integer value, such as "100
".
orderingFromXml
int orderingFromXml
Whether to order the Preference under this group as they appear in the XML file. If this is false, the ordering will follow the Preference order attribute and default to alphabetic for those without the order attribute.
May be a boolean value, such as "true
" or
"false
".
overlapAnchor
int overlapAnchor
Whether the popup window should overlap its anchor view.
May be a boolean value, such as "true
" or
"false
".
paddingBottomNoButtons
int paddingBottomNoButtons
Bottom padding to use when no buttons are present.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
paddingEnd
int paddingEnd
Sets the padding, in pixels, of the end edge; see padding
.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
paddingStart
int paddingStart
Sets the padding, in pixels, of the start edge; see padding
.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
paddingTopNoTitle
int paddingTopNoTitle
Top padding to use when no title is present.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
pageIndicatorDotColor
int pageIndicatorDotColor
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
pageIndicatorDotColorSelected
int pageIndicatorDotColorSelected
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
pageIndicatorDotFadeInDuration
int pageIndicatorDotFadeInDuration
May be an integer value, such as "100
".
pageIndicatorDotFadeOutDelay
int pageIndicatorDotFadeOutDelay
May be an integer value, such as "100
".
pageIndicatorDotFadeOutDuration
int pageIndicatorDotFadeOutDuration
May be an integer value, such as "100
".
pageIndicatorDotFadeWhenIdle
int pageIndicatorDotFadeWhenIdle
May be a boolean value, such as "true
" or
"false
".
pageIndicatorDotRadius
int pageIndicatorDotRadius
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
pageIndicatorDotRadiusSelected
int pageIndicatorDotRadiusSelected
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
pageIndicatorDotShadowColor
int pageIndicatorDotShadowColor
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
pageIndicatorDotShadowDx
int pageIndicatorDotShadowDx
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
pageIndicatorDotShadowDy
int pageIndicatorDotShadowDy
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
pageIndicatorDotShadowRadius
int pageIndicatorDotShadowRadius
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
pageIndicatorDotSpacing
int pageIndicatorDotSpacing
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
panelBackground
int panelBackground
The background of a panel when it is inset from the left and right edges of the screen.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
panelMenuListTheme
int panelMenuListTheme
Default Panel Menu style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
panelMenuListWidth
int panelMenuListWidth
Default Panel Menu width.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
peek_view
int peek_view
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
persistent
int persistent
Whether the Preference stores its value to the shared preferences.
May be a boolean value, such as "true
" or
"false
".
popupMenuStyle
int popupMenuStyle
Default PopupMenu style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
popupTheme
int popupTheme
Reference to a theme that should be used to inflate popups shown by widgets in the action bar.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
popupWindowStyle
int popupWindowStyle
Default PopupWindow style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
positiveButtonIcon
int positiveButtonIcon
The icon for the positive button for the dialog.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
positiveButtonText
int positiveButtonText
The positive button text for the dialog. Set to @null to hide the positive button.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
preferenceCategoryStyle
int preferenceCategoryStyle
Default style for PreferenceCategory.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
preferenceCategoryTitleTextAppearance
int preferenceCategoryTitleTextAppearance
The preferred TextAppearance for the title displayed in a PreferenceCategory. This is needed as there are no relevant android: attributes we can use for this as we do with other text appearance styles.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
preferenceCategoryTitleTextColor
int preferenceCategoryTitleTextColor
The preferred color for the title displayed in a PreferenceCategory. If this is not specified by a developer, we use ?android:attr/colorAccent above Lollipop, and ?attr/colorAccent below Lollipop (when using an AppCompat theme).
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
preferenceFragmentCompatStyle
int preferenceFragmentCompatStyle
Default style for Headers pane in PreferenceActivity.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
preferenceFragmentListStyle
int preferenceFragmentListStyle
Preference fragment list style
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
preferenceFragmentStyle
int preferenceFragmentStyle
Default style for Headers pane in PreferenceActivity.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
preferenceInformationStyle
int preferenceInformationStyle
Default style for informational Preference.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
preferenceScreenStyle
int preferenceScreenStyle
Default style for PreferenceScreen.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
preferenceStyle
int preferenceStyle
Default style for Preference.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
preferenceTheme
int preferenceTheme
Theme for inflating Preference objects
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
preserveIconSpacing
int preserveIconSpacing
Whether space should be reserved in layout when an icon is missing.
May be a boolean value, such as "true
" or
"false
".
pressedButtonTranslationZ
int pressedButtonTranslationZ
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
progressBarPadding
int progressBarPadding
Specifies the horizontal padding on either end for an embedded progress bar.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
progressBarStyle
int progressBarStyle
Specifies a style resource to use for an embedded progress bar.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
queryBackground
int queryBackground
Background for the section containing the search query
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
queryHint
int queryHint
An optional user-defined query hint string to be displayed in the empty query field.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
radioButtonStyle
int radioButtonStyle
Default RadioButton style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
rangedValuePrimaryColor
int rangedValuePrimaryColor
Defines main color for ranged value indicator.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
rangedValueProgressHidden
int rangedValueProgressHidden
Defines visibility for ranged value indicator.
May be a boolean value, such as "true
" or
"false
".
rangedValueRingWidth
int rangedValueRingWidth
Defines stroke width for ranged value indicator.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
rangedValueSecondaryColor
int rangedValueSecondaryColor
Defines secondary color for ranged value indicator.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
ratingBarStyle
int ratingBarStyle
Default RatingBar style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
ratingBarStyleIndicator
int ratingBarStyleIndicator
Indicator RatingBar style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
ratingBarStyleSmall
int ratingBarStyleSmall
Small indicator RatingBar style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
rectLayout
int rectLayout
Resource id of a layout to use in rectangular containers
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
recyclerViewStyle
int recyclerViewStyle
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
reverseLayout
int reverseLayout
May be a boolean value, such as "true
" or
"false
".
roundLayout
int roundLayout
Resource id of a layout to use in round containers
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
scroll_degrees_per_screen
int scroll_degrees_per_screen
May be a floating point value, such as "1.2
".
searchHintIcon
int searchHintIcon
Search icon displayed as a text field hint
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
searchIcon
int searchIcon
Search icon
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
searchViewStyle
int searchViewStyle
Style for the search query widget.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
seekBarIncrement
int seekBarIncrement
Attribute controlling the amount to increment or decrement the seekbar when the user presses the arrow keys
May be an integer value, such as "100
".
seekBarPreferenceStyle
int seekBarPreferenceStyle
Default style for seekbar preferences.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
seekBarStyle
int seekBarStyle
Default SeekBar style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
selectable
int selectable
Whether the Preference is selectable.
May be a boolean value, such as "true
" or
"false
".
selectableItemBackground
int selectableItemBackground
A style that may be applied to buttons or other selectable items that should react to pressed and focus states, but that do not have a clear visual border along the edges.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
selectableItemBackgroundBorderless
int selectableItemBackgroundBorderless
Background drawable for borderless standalone items that need focus/pressed states.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
shadow_width
int shadow_width
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
shouldDisableView
int shouldDisableView
Whether the view of this Preference should be disabled when this Preference is disabled.
May be a boolean value, such as "true
" or
"false
".
showAsAction
int showAsAction
How this item should display in the Action Bar, if present.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
always | 2 | Always show this item in an actionbar, even if it would override the system's limits of how much stuff to put there. This may make your action bar look bad on some screens. In most cases you should use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". |
collapseActionView | 8 | This item's action view collapses to a normal menu item. When expanded, the action view takes over a larger segment of its container. |
ifRoom | 1 | Show this item in an action bar if there is room for it as determined by the system. Favor this option over "always" where possible. Mutually exclusive with "never" and "always". |
never | 0 | Never show this item in an action bar, show it in the overflow menu instead. Mutually exclusive with "ifRoom" and "always". |
withText | 4 | When this item is shown as an action in the action bar, show a text label with it even if it has an icon representation. |
showDialogWhenTurningOff
int showDialogWhenTurningOff
Specifies if the dialog should be shown when the switch is turning off. Default value is false.
May be a boolean value, such as "true
" or
"false
".
showDialogWhenTurningOn
int showDialogWhenTurningOn
Specifies if the dialog should be shown when the switch is turning on. Default value is true.
May be a boolean value, such as "true
" or
"false
".
showDividers
int showDividers
Setting for which dividers to show.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
beginning | 1 | |
end | 4 | |
middle | 2 | |
none | 0 |
showNegativeDialogButton
int showNegativeDialogButton
Specifies if the negative button should be shown for the dialog. Default value is true.
May be a boolean value, such as "true
" or
"false
".
showPositiveDialogButton
int showPositiveDialogButton
Specifies if the positive button should be shown for the dialog. Default value is true.
May be a boolean value, such as "true
" or
"false
".
showSeekBarValue
int showSeekBarValue
Flag indicating whether the TextView next to the seekbar that shows the current seekbar value will be displayed. If true, the view is VISIBLE; if false, the view will be GONE. By default, this view is GONE.
May be a boolean value, such as "true
" or
"false
".
showText
int showText
Whether to draw on/off text.
May be a boolean value, such as "true
" or
"false
".
showTitle
int showTitle
May be a boolean value, such as "true
" or
"false
".
show_overflow_in_peek
int show_overflow_in_peek
Shows the overflow icon in the peek view rather than the first action's icon. Also, taps on the peek view will open the drawer rather than executing the first action.
May be a boolean value, such as "true
" or
"false
".
singleChoiceItemLayout
int singleChoiceItemLayout
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
singleLineTitle
int singleLineTitle
Whether to use single line for the preference title text. By default, preference title will be constrained to one line, so the default value of this attribute is true.
May be a boolean value, such as "true
" or
"false
".
spanCount
int spanCount
May be an integer value, such as "100
".
spinBars
int spinBars
Whether bars should rotate or not during transition
May be a boolean value, such as "true
" or
"false
".
spinnerDropDownItemStyle
int spinnerDropDownItemStyle
Default Spinner style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
spinnerStyle
int spinnerStyle
Default Spinner style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
splitTrack
int splitTrack
Whether to split the track and leave a gap for the thumb drawable.
May be a boolean value, such as "true
" or
"false
".
square_dimen
int square_dimen
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
height | 1 | |
none | 0 | |
width | 2 |
srcCompat
int srcCompat
Sets a drawable as the content of this ImageView. Allows the use of vector drawable when running on older versions of the platform.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
stackFromEnd
int stackFromEnd
May be a boolean value, such as "true
" or
"false
".
state_above_anchor
int state_above_anchor
State identifier indicating the popup will be above the anchor.
May be a boolean value, such as "true
" or
"false
".
statusBarBackground
int statusBarBackground
Drawable to display behind the status bar when the view is set to draw behind it.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
subMenuArrow
int subMenuArrow
Drawable for the arrow icon indicating a particular item is a submenu.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
submitBackground
int submitBackground
Background for the section containing the action (e.g. voice search)
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
subtitle
int subtitle
Specifies subtitle text used for navigationMode="normal"
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
subtitleTextAppearance
int subtitleTextAppearance
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
subtitleTextColor
int subtitleTextColor
A color to apply to the subtitle string.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
subtitleTextStyle
int subtitleTextStyle
Specifies a style to use for subtitle text.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
suggestionRowLayout
int suggestionRowLayout
Layout for query suggestion rows
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
summary
int summary
The summary for the Preference in a PreferenceActivity screen.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
summaryOff
int summaryOff
The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is unchecked. If separate on/off summaries are not needed, the summary attribute can be used instead.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
summaryOn
int summaryOn
The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is checked. If separate on/off summaries are not needed, the summary attribute can be used instead.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
swipeRefreshLayoutProgressSpinnerBackgroundColor
int swipeRefreshLayoutProgressSpinnerBackgroundColor
Background color for SwipeRefreshLayout progress spinner.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
switchMinWidth
int switchMinWidth
Minimum width for the switch component
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
switchPadding
int switchPadding
Minimum space between the switch and caption text
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
switchPreferenceCompatStyle
int switchPreferenceCompatStyle
Default style for switch compat preferences.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
switchPreferenceStyle
int switchPreferenceStyle
Default style for switch preferences.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
switchStyle
int switchStyle
Default style for the Switch widget.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
switchTextAppearance
int switchTextAppearance
TextAppearance style for text displayed on the switch thumb.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
switchTextOff
int switchTextOff
The text used on the switch itself when in the "off" state. This should be a very SHORT string, as it appears in a small space.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
switchTextOn
int switchTextOn
The text used on the switch itself when in the "on" state. This should be a very SHORT string, as it appears in a small space.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
textAllCaps
int textAllCaps
Present the text in ALL CAPS. This may use a small-caps form when available.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a boolean value, such as "true
" or
"false
".
textAppearanceLargePopupMenu
int textAppearanceLargePopupMenu
Text color, typeface, size, and style for the text inside of a popup menu.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
textAppearanceListItem
int textAppearanceListItem
The preferred TextAppearance for the primary text of list items.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
textAppearanceListItemSecondary
int textAppearanceListItemSecondary
The preferred TextAppearance for the secondary text of list items.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
textAppearanceListItemSmall
int textAppearanceListItemSmall
The preferred TextAppearance for the primary text of small list items.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
textAppearancePopupMenuHeader
int textAppearancePopupMenuHeader
Text color, typeface, size, and style for header text inside of a popup menu.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
textAppearanceSearchResultSubtitle
int textAppearanceSearchResultSubtitle
Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
textAppearanceSearchResultTitle
int textAppearanceSearchResultTitle
Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
textAppearanceSmallPopupMenu
int textAppearanceSmallPopupMenu
Text color, typeface, size, and style for small text inside of a popup menu.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
textColor
int textColor
Defines text color for short text and long text fields.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
textColorAlertDialogListItem
int textColorAlertDialogListItem
Color of list item text in alert dialogs.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
textColorSearchUrl
int textColorSearchUrl
Text color for urls in search suggestions, used by things like global search
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
textLocale
int textLocale
Set the textLocale by a comma-separated language tag string,
for example "ja-JP,zh-CN". This attribute only takes effect on API 21 and above.
Before API 24, only the first language tag is used. Starting from API 24,
the string will be converted into a LocaleList
and then used by
TextView
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
textSize
int textSize
Defines text size for short text and long text fields.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
textTypeface
int textTypeface
Defines typeface for short text and long text fields.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
theme
int theme
Deprecated.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
thickness
int thickness
The thickness (stroke size) for the bar paint
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
thumbTextPadding
int thumbTextPadding
Amount of padding on either side of text within the switch thumb.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
thumbTint
int thumbTint
Tint to apply to the thumb drawable.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
thumbTintMode
int thumbTintMode
Blending mode used to apply the thumb tint.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
add | 10 | Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D) |
multiply | e | Multiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc] |
screen | f | [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] |
src_atop | 9 | The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] |
src_in | 5 | The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da] |
src_over | 3 | The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] |
tickMark
int tickMark
Drawable displayed at each progress position on a seekbar.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
tickMarkTint
int tickMarkTint
Tint to apply to the tick mark drawable.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
tickMarkTintMode
int tickMarkTintMode
Blending mode used to apply the tick mark tint.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
add | 10 | Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D) |
multiply | e | Multiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc] |
screen | f | [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] |
src_atop | 9 | The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] |
src_in | 5 | The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da] |
src_over | 3 | The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] |
tint
int tint
Tint to apply to the image source.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
tintMode
int tintMode
Blending mode used to apply the image source tint.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
add | 10 | Combines the tint and icon color and alpha channels, clamping the result to valid color values. Saturate(S + D) |
multiply | e | Multiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc] |
screen | f | [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] |
src_atop | 9 | The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] |
src_in | 5 | The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da] |
src_over | 3 | The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] |
title
int title
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
titleColor
int titleColor
Defines text color for short title and long title fields.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
titleMargin
int titleMargin
Specifies extra space on the left, start, right and end sides of the toolbar's title. Margin values should be positive.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
titleMarginBottom
int titleMarginBottom
Specifies extra space on the bottom side of the toolbar's title. If both this attribute and titleMargin are specified, then this attribute takes precedence. Margin values should be positive.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
titleMarginEnd
int titleMarginEnd
Specifies extra space on the end side of the toolbar's title. If both this attribute and titleMargin are specified, then this attribute takes precedence. Margin values should be positive.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
titleMarginStart
int titleMarginStart
Specifies extra space on the start side of the toolbar's title. If both this attribute and titleMargin are specified, then this attribute takes precedence. Margin values should be positive.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
titleMarginTop
int titleMarginTop
Specifies extra space on the top side of the toolbar's title. If both this attribute and titleMargin are specified, then this attribute takes precedence. Margin values should be positive.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
titleMargins
int titleMargins
This field is deprecated.
Use titleMargin
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
titleSize
int titleSize
Defines text size for short title and long title fields.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
titleTextAppearance
int titleTextAppearance
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
titleTextColor
int titleTextColor
A color to apply to the title string.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
titleTextStyle
int titleTextStyle
Specifies a style to use for title text.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
titleTypeface
int titleTypeface
Defines typeface for short title and long title fields.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
toolbarNavigationButtonStyle
int toolbarNavigationButtonStyle
Default Toolar NavigationButtonStyle
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
toolbarStyle
int toolbarStyle
Default Toolbar style.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
tooltipForegroundColor
int tooltipForegroundColor
Foreground color to use for tooltips
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
tooltipFrameBackground
int tooltipFrameBackground
Background to use for tooltips
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
tooltipText
int tooltipText
The tooltip text associated with the item.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
track
int track
Drawable to use as the "track" that the switch thumb slides within.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
trackTint
int trackTint
Tint to apply to the track.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
", or
"#aarrggbb
".
trackTintMode
int trackTintMode
Blending mode used to apply the track tint.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
add | 10 | Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D) |
multiply | e | Multiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc] |
screen | f | [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] |
src_atop | 9 | The tint is drawn above the drawable, but with the drawable’s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] |
src_in | 5 | The tint is masked by the alpha channel of the drawable. The drawable’s color channels are thrown out. [Sa * Da, Sc * Da] |
src_over | 3 | The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] |
ttcIndex
int ttcIndex
The index of the font in the tcc font file. If the font file referenced is not in the tcc format, this attribute needs not be specified.
May be an integer value, such as "100
".
update_interval
int update_interval
May be an integer value, such as "100
".
updatesContinuously
int updatesContinuously
Flag indicating whether the SeekBarPreference should continuously save the Seekbar value while the Seekbar is being dragged. If true, the SeekBarPreference should continuously save the Seekbar value while it is being dragged. If false, the Seekbar value is only saved when released. By default, this boolean is false.
May be a boolean value, such as "true
" or
"false
".
useSimpleSummaryProvider
int useSimpleSummaryProvider
Whether the preference should automatically set its summary to the value saved for the preference, and update the summary when the value is changed. Defaults to false.
May be a boolean value, such as "true
" or
"false
".
viewInflaterClass
int viewInflaterClass
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;
voiceIcon
int voiceIcon
Voice button icon
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
widgetLayout
int widgetLayout
The layout for the controllable widget portion of a Preference. This is inflated into the layout for a Preference and should be used more frequently than the layout attribute. For example, a checkbox preference would specify a custom layout (consisting of just the CheckBox) here.
May be a reference to another resource, in the form
"@[+][package:]type/name
" or a theme
attribute in the form
"?[package:]type/name
".
windowActionBar
int windowActionBar
Flag indicating whether this window should have an Action Bar in place of the usual title bar.
May be a boolean value, such as "true
" or
"false
".
windowActionBarOverlay
int windowActionBarOverlay
Flag indicating whether this window's Action Bar should overlay application content. Does nothing if the window would not have an Action Bar.
May be a boolean value, such as "true
" or
"false
".
windowActionModeOverlay
int windowActionModeOverlay
Flag indicating whether action modes should overlay window content when there is not reserved space for their UI (such as an Action Bar).
May be a boolean value, such as "true
" or
"false
".
windowFixedHeightMajor
int windowFixedHeightMajor
A fixed height for the window along the major axis of the screen, that is, when in portrait. Can be either an absolute dimension or a fraction of the screen size in that dimension.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
May be a fractional value, which is a floating point number appended with
either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size;
the optional %p suffix provides a size relative to some parent container.
windowFixedHeightMinor
int windowFixedHeightMinor
A fixed height for the window along the minor axis of the screen, that is, when in landscape. Can be either an absolute dimension or a fraction of the screen size in that dimension.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
May be a fractional value, which is a floating point number appended with
either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size;
the optional %p suffix provides a size relative to some parent container.
windowFixedWidthMajor
int windowFixedWidthMajor
A fixed width for the window along the major axis of the screen, that is, when in landscape. Can be either an absolute dimension or a fraction of the screen size in that dimension.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
May be a fractional value, which is a floating point number appended with
either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size;
the optional %p suffix provides a size relative to some parent container.
windowFixedWidthMinor
int windowFixedWidthMinor
A fixed width for the window along the minor axis of the screen, that is, when in portrait. Can be either an absolute dimension or a fraction of the screen size in that dimension.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
May be a fractional value, which is a floating point number appended with
either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size;
the optional %p suffix provides a size relative to some parent container.
windowMinWidthMajor
int windowMinWidthMajor
The minimum width the window is allowed to be, along the major axis of the screen. That is, when in landscape. Can be either an absolute dimension or a fraction of the screen size in that dimension.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
May be a fractional value, which is a floating point number appended with
either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size;
the optional %p suffix provides a size relative to some parent container.
windowMinWidthMinor
int windowMinWidthMinor
The minimum width the window is allowed to be, along the minor axis of the screen. That is, when in portrait. Can be either an absolute dimension or a fraction of the screen size in that dimension.
May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).
May be a fractional value, which is a floating point number appended with
either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size;
the optional %p suffix provides a size relative to some parent container.
windowNoTitle
int windowNoTitle
Flag indicating whether there should be no title on this window.
May be a boolean value, such as "true
" or
"false
".
Public constructors
R.attr
R.attr ()