|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.R.attr
public static final class R.attr
| Field Summary | |
|---|---|
static int |
absListViewStyle
Default AbsListView style. |
static int |
action
The action name to assign to the Intent, as per Intent.setAction(). |
static int |
activityCloseEnterAnimation
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
activityCloseExitAnimation
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
activityOpenEnterAnimation
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
activityOpenExitAnimation
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
addStatesFromChildren
Sets whether this ViewGroup's drawable states also include its children's drawable states. |
static int |
adjustViewBounds
Set this to true if you want the ImageView to adjust its bounds to preserve the aspect ratio of its drawable. |
static int |
alertDialogStyle
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
allowClearUserData
Option to let applications specify that user data can/cannot be cleared. |
static int |
allowTaskReparenting
Specify that an activity can be moved out of a task it is in to the task it has an affinity for when appropriate. |
static int |
alphabeticShortcut
The alphabetic shortcut key. |
static int |
alwaysDrawnWithCache
Defines whether the ViewGroup should always draw its children using their drawing cache or not. |
static int |
alwaysRetainTaskState
Specify whether an acitivty's task state should always be maintained by the system, or if it is allowed to reset the task to its initial state in certain situations. |
static int |
angle
Must be a floating point value, such as " 1.2". |
static int |
animation
Animation to use on each child. |
static int |
animationCache
Defines whether layout animations should create a drawing cache for their children. |
static int |
animationDuration
Sets how long a transition animation should run (in milliseconds) when layout has changed. |
static int |
animationOrder
The order in which the animations will be started. |
static int |
antialias
Enables or disables antialiasing. |
static int |
apiKey
An API Key required to use MapView. |
static int |
authorities
Specify the authorities under which this content provider can be found. |
static int |
autoCompleteTextViewStyle
Default AutoCompleteTextView style. |
static int |
autoLink
Controls whether links such as urls and email addresses are automatically found and converted to clickable links. |
static int |
autoText
If set, specifies that this TextView has a textual input method and automatically corrects some common spelling errors. |
static int |
background
A drawable to use as the background. |
static int |
backgroundDimAmount
Default background dim amount when a menu, dialog, or something similar pops up. |
static int |
baselineAlignBottom
If true, the image view will be baseline aligned with based on its bottom edge |
static int |
baselineAligned
When set to false, prevents the layout from aligning its children's baselines. |
static int |
baselineAlignedChildIndex
When a linear layout is part of another layout that is baseline aligned, it can specify which of its children to baseline align to (i.e which child TextView). |
static int |
bottom
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
bottomBright
May be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
bottomDark
May be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
bottomLeftRadius
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
bottomMedium
May be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
bottomRightRadius
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
bufferType
Determines the minimum type that getText() will return. |
static int |
button
Drawable used for the button graphic (e.g. |
static int |
buttonStyle
Normal Button style. |
static int |
buttonStyleInset
Button style to inset into an EditText. |
static int |
buttonStyleSmall
Small Button style. |
static int |
buttonStyleToggle
ToggleButton style. |
static int |
cacheColorHint
Indicates that this list will always be drawn on top of solid, single-color opaque background. |
static int |
capitalize
If set, specifies that this TextView has a textual input method and should automatically capitalize what the user types. |
static int |
centerBright
May be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
centerColor
Optional center color. |
static int |
centerDark
May be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
centerMedium
May be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
centerX
May be a floating point value, such as " 1.2". |
static int |
centerY
May be a floating point value, such as " 1.2". |
static int |
checkable
Whether the item is capable of displaying a check mark. |
static int |
checkableBehavior
Whether the items are capable of displaying a check mark. |
static int |
checkBoxPreferenceStyle
Default style for CheckBoxPreference. |
static int |
checkboxStyle
Default Checkbox style. |
static int |
checked
Indicates the initial checked state of this button |
static int |
checkedButton
The id of the child radio button that should be checked by default within this radio group. |
static int |
checkMark
Drawable used for the check mark graphic |
static int |
childDivider
Drawable or color that is used as a divider for children. |
static int |
childIndicator
Indicator shown beside the child View. |
static int |
childIndicatorLeft
The left bound for a child's indicator. |
static int |
childIndicatorRight
The right bound for a child's indicator. |
static int |
choiceMode
Defines the choice behavior for the List. |
static int |
clearTaskOnLaunch
Specify whether an activity's task should be cleared when it is re-launched from the home screen. |
static int |
clickable
Defines whether this view reacts to click events. |
static int |
clipChildren
Defines whether a child is limited to draw inside of its bounds or not. |
static int |
clipOrientation
The orientation for the clip. |
static int |
clipToPadding
Defines whether the ViewGroup will clip its drawing surface so as to exclude the padding area. |
static int |
collapseColumns
The 0 based index of the columns to collapse. |
static int |
color
Must be a color value, in the form of " #rgb", "#argb",
"#rrggbb", or "#aarrggbb". |
static int |
colorBackground
Color that matches (as closely as possible) the window background. |
static int |
colorForeground
Default color of foreground imagery. |
static int |
colorForegroundInverse
Default color of foreground imagery on an inverted background. |
static int |
columnDelay
Fraction of the animation duration used to delay the beginning of the animation of each column. |
static int |
columnWidth
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
completionHint
Defines the hint displayed in the drop down menu. |
static int |
completionHintView
Defines the hint view displayed in the drop down menu. |
static int |
completionThreshold
Defines the number of characters that the user must type before completion suggestions are displayed in a drop down menu. |
static int |
configChanges
Specify one or more configuration changes that the activity will handle itself. |
static int |
constantSize
If true, the drawable's reported internal size will remain constant as the state changes; the size is the maximum of all of the states. |
static int |
cropToPadding
If true, the image will be cropped to fit within its padding |
static int |
cursorVisible
Makes the cursor visible (the default) or invisible |
static int |
cycles
Must be a floating point value, such as " 1.2". |
static int |
dashGap
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
dashWidth
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
data
The data URI to assign to the Intent, as per Intent.setData(). |
static int |
debuggable
Flag indicating whether the application can be debugged, even when running on a device that is running in user mode. |
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. |
static int |
delay
Fraction of the animation duration used to delay the beginning of the animation of each child. |
static int |
dependency
The key of another Preference that this Preference will depend on. |
static int |
descendantFocusability
Defines the relationship between the ViewGroup and its descendants when looking for a View to take focus. |
static int |
description
A longer descriptive text about a particular application or permission that can be granted. |
static int |
dial
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
dialogIcon
The icon for the dialog. |
static int |
dialogLayout
A layout to be used as the content View for the dialog. |
static int |
dialogMessage
The message in the dialog. |
static int |
dialogPreferenceStyle
Default style for DialogPreference. |
static int |
dialogTitle
The title in the dialog. |
static int |
digits
If set, specifies that this TextView has a numeric input method and that these specific characters are the ones that it will accept. |
static int |
direction
Direction of the animation in the grid. |
static int |
directionPriority
Priority of the rows and columns. |
static int |
disabledAlpha
Default disabled alpha for widgets that set enabled/disabled alpha programmatically. |
static int |
disableDependentsState
The state (true for on, or false for off) that causes dependents to be disabled. |
static int |
dither
Enables or disables dithering of the bitmap if the bitmap does not have the same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with an RGB 565 screen.) |
static int |
divider
Drawable or color to draw between list items. |
static int |
dividerHeight
Height of the divider. |
static int |
drawable
Reference to a drawable resource to use for the frame. |
static int |
drawableBottom
The drawable to be drawn below the text. |
static int |
drawableLeft
The drawable to be drawn to the left of the text. |
static int |
drawablePadding
The padding between the drawables and the text. |
static int |
drawableRight
The drawable to be drawn to the right of the text. |
static int |
drawableTop
The drawable to be drawn above the text. |
static int |
drawingCacheQuality
Defines the quality of translucent drawing caches. |
static int |
drawSelectorOnTop
When set to true, the selector will be drawn over the selected item. |
static int |
dropDownHintAppearance
Default style for drop down hints. |
static int |
dropDownItemStyle
Default style for drop down items. |
static int |
dropDownListViewStyle
Default ListView style for drop downs. |
static int |
dropDownSelector
Selector in a drop down list. |
static int |
duplicateParentState
When this attribute is set to true, the view gets its drawable state (focused, pressed, etc.) from its direct parent rather than from itself. |
static int |
duration
Amount of time (in milliseconds) to display this frame. |
static int |
editable
If set, specifies that this TextView has an input method. |
static int |
editTextPreferenceStyle
Default style for EditTextPreference. |
static int |
editTextStyle
Default EditText style. |
static int |
ellipsize
Where to ellipsize text. |
static int |
ems
Makes the TextView be exactly this many ems wide |
static int |
enabled
Deprecated: use state_enabled instead. |
static int |
endColor
Must be a color value, in the form of " #rgb", "#argb",
"#rrggbb", or "#aarrggbb". |
static int |
endYear
The last year (inclusive) i.e. |
static int |
entries
Reference to an array resource that will populate a list/adapter |
static int |
entryValues
The array to find the value to save for a preference when an entry from entries is selected. |
static int |
excludeFromRecents
Indicates that an Activity should be excluded from the list of recently launched activities. |
static int |
expandableListPreferredChildIndicatorLeft
The preferred left bound for an expandable list child's indicator. |
static int |
expandableListPreferredChildIndicatorRight
The preferred right bound for an expandable list child's indicator. |
static int |
expandableListPreferredChildPaddingLeft
The preferred left padding for an expandable list item that is a child. |
static int |
expandableListPreferredItemIndicatorLeft
The preferred left bound for an expandable list item's indicator. |
static int |
expandableListPreferredItemIndicatorRight
The preferred right bound for an expandable list item's indicator. |
static int |
expandableListPreferredItemPaddingLeft
The preferred left padding for an expandable list item (for child-specific layouts, use expandableListPreferredChildPaddingLeft). |
static int |
expandableListViewStyle
Default ExpandableListView style. |
static int |
exported
Flag indicating whether the given application component is available to other applications. |
static int |
factor
This is the amount of deceleration to ad when easing in. |
static int |
fadingEdge
Defines which edges should be fadeded on scrolling. |
static int |
fadingEdgeLength
Defines the length of the fading edges. |
static int |
fillAfter
When set to true, the animation transformation is applied after the animation is over. |
static int |
fillBefore
When set to true, the animation transformation is applied before the animation has started. |
static int |
fillViewport
Defines whether the scrollview should stretch its content to fill the viewport. |
static int |
filter
Enables or disables bitmap filtering. |
static int |
finishOnTaskLaunch
Specify whether an activity should be finished when its task is brought to the foreground by relaunching from the home screen. |
static int |
fitsSystemWindows
Boolean internal attribute to adjust view layout based on system windows such as the status bar. |
static int |
flipInterval
Must be an integer value, such as " 100". |
static int |
focusable
Boolean that controls whether a view can take focus. |
static int |
focusableInTouchMode
Boolean that controls whether a view can take focus while in touch mode. |
static int |
foreground
Defines the drawable to draw over the content. |
static int |
foregroundGravity
Defines the gravity to apply to the foreground drawable. |
static int |
format
Format string: if specified, the Chronometer will display this string, with the first "%s" replaced by the current timer value in "MM:SS" or "H:MM:SS" form. |
static int |
freezesText
If set, the text view will include its current complete text inside of its frozen icicle in addition to meta-data such as the current cursor position. |
static int |
fromAlpha
Must be a floating point value, such as " 1.2". |
static int |
fromDegrees
Must be a floating point value, such as " 1.2". |
static int |
fromXDelta
May be a floating point value, such as " 1.2". |
static int |
fromXScale
Must be a floating point value, such as " 1.2". |
static int |
fromYDelta
May be a floating point value, such as " 1.2". |
static int |
fromYScale
Must be a floating point value, such as " 1.2". |
static int |
fullBright
May be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
fullDark
May be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
functionalTest
Flag indicating that an Instrumentation class should be run as a functional test. |
static int |
galleryItemBackground
The preferred background for gallery items. |
static int |
galleryStyle
Default Gallery style. |
static int |
gradientRadius
May be a floating point value, such as " 1.2". |
static int |
grantUriPermissions
If true, the Context.grantUriPermission or corresponding Intent flags can
be used to allow others to access specific URIs in the content
provider, even if they do not have an explicit read or write
permission. |
static int |
gravity
Specifies how to place an object, both its x and y axis, within a larger containing object. |
static int |
gridViewStyle
Default GridView style. |
static int |
groupIndicator
Indicator shown beside the group View. |
static int |
hand_hour
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
hand_minute
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
handleProfiling
Flag indicating that an Instrumentation class wants to take care of starting/stopping profiling itself, rather than relying on the default behavior of profiling the complete time it is running. |
static int |
hasCode
Indicate whether this application contains code. |
static int |
headerBackground
Default background for the menu header. |
static int |
height
Makes the TextView be exactly this many pixels tall. |
static int |
hint
Hint text to display when the text is empty. |
static int |
horizontalDivider
Default horizontal divider between rows of menu items. |
static int |
horizontalSpacing
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
host
Specify a URI authority host that is handled, as per IntentFilter.addDataAuthority(). |
static int |
icon
A Drawable resource providing a graphical representation of its associated item. |
static int |
id
Supply an identifier name for this view, to later retrieve it with View.findViewById() or
Activity.findViewById(). |
static int |
ignoreGravity
Indicates what view should not be affected by gravity. |
static int |
imageButtonStyle
The style resource to use for an ImageButton |
static int |
imageWellStyle
The style resource to use for an ImageButton that is an image well |
static int |
inAnimation
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
includeFontPadding
Leave enough room for ascenders and descenders instead of using the font ascent and descent strictly. |
static int |
indeterminate
Allows to enable the indeterminate mode. |
static int |
indeterminateBehavior
Defines how the indeterminate mode should behave when the progress reaches max. |
static int |
indeterminateDrawable
Drawable used for the indeterminate mode. |
static int |
indeterminateDuration
Duration of the indeterminate animation. |
static int |
indeterminateOnly
Restricts to ONLY indeterminate mode (state-keeping progress mode will not work). |
static int |
indicatorLeft
The left bound for an item's indicator. |
static int |
indicatorRight
The right bound for an item's indicator. |
static int |
inflatedId
Overrides the id of the inflated View with this value. |
static int |
initOrder
Specify the order in which content providers hosted by a process are instantiated when that process is created. |
static int |
innerRadiusRatio
Must be a floating point value, such as " 1.2". |
static int |
inputMethod
If set, specifies that this TextView should use the specified input method (specified by fully-qualified class name). |
static int |
insetBottom
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
insetLeft
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
insetRight
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
insetTop
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
interpolator
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
isIndicator
Whether this rating bar is an indicator (and non-changeable by the user). |
static int |
itemBackground
Default background for each menu item. |
static int |
itemIconDisabledAlpha
Default disabled icon alpha for each menu item that shows an icon. |
static int |
itemTextAppearance
Default appearance of menu item text. |
static int |
keepScreenOn
Controls whether the view's window should keep the screen on while visible. |
static int |
key
The key to store the Preference value. |
static int |
keycode
This enum provides the same keycode values as can be found in KeyEvent |
static int |
label
A user-legible name for the given item. |
static int |
launchMode
Specify how an activity should be launched. |
static int |
layout
Supply an identifier for the layout resource to inflate when the ViewStub becomes visible or when forced to do so. |
static int |
layout_above
Positions the bottom edge of this view above the given anchor view ID. |
static int |
layout_alignBaseline
Positions the baseline of this view on the baseline of the given anchor view ID. |
static int |
layout_alignBottom
Makes the bottom edge of this view match the bottom edge of the given anchor view ID. |
static int |
layout_alignLeft
Makes the left edge of this view match the left edge of the given anchor view ID. |
static int |
layout_alignParentBottom
f true, makes the bottom edge of this view match the bottom edge of the parent. |
static int |
layout_alignParentLeft
If true, makes the left edge of this view match the left edge of the parent. |
static int |
layout_alignParentRight
If true, makes the right edge of this view match the right edge of the parent. |
static int |
layout_alignParentTop
If true, makes the top edge of this view match the top edge of the parent. |
static int |
layout_alignRight
Makes the right edge of this view match the right edge of the given anchor view ID. |
static int |
layout_alignTop
Makes the top edge of this view match the top edge of the given anchor view ID. |
static int |
layout_alignWithParentIfMissing
If set to true, the parent will be used as the anchor when the anchor cannot be be found for layout_toLeftOf, layout_toRightOf, etc. |
static int |
layout_below
Positions the top edge of this view below the given anchor view ID. |
static int |
layout_centerHorizontal
If true, centers this child horizontally within its parent. |
static int |
layout_centerInParent
If true, centers this child horizontally and vertically within its parent. |
static int |
layout_centerVertical
If true, centers this child vertically within its parent. |
static int |
layout_column
The index of the column in which this child should be. |
static int |
layout_gravity
Standard gravity constant that a child can supply to its parent. |
static int |
layout_height
Specifies the basic height of the view. |
static int |
layout_margin
Specifies extra space on the left, top, right and bottom sides of this view. |
static int |
layout_marginBottom
Specifies extra space on the bottom side of this view. |
static int |
layout_marginLeft
Specifies extra space on the left side of this view. |
static int |
layout_marginRight
Specifies extra space on the right side of this view. |
static int |
layout_marginTop
Specifies extra space on the top side of this view. |
static int |
layout_scale
Must be a floating point value, such as " 1.2". |
static int |
layout_span
Defines how many columns this child should span. |
static int |
layout_toLeftOf
Positions the right edge of this view to the left of the given anchor view ID. |
static int |
layout_toRightOf
Positions the left edge of this view to the right of the given anchor view ID. |
static int |
layout_weight
Must be a floating point value, such as " 1.2". |
static int |
layout_width
Specifies the basic width of the view. |
static int |
layout_x
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
layout_y
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
layoutAnimation
Defines the layout animation to use the first time the ViewGroup is laid out. |
static int |
left
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
lines
Makes the TextView be exactly this many lines tall |
static int |
lineSpacingExtra
Extra spacing between lines of text. |
static int |
lineSpacingMultiplier
Extra spacing between lines of text, as a multiplier. |
static int |
linksClickable
If set to false, keeps the movement method from being set to the link movement method even if autoLink causes links to be found. |
static int |
listChoiceIndicatorMultiple
Drawable to use for multiple choice indicators |
static int |
listChoiceIndicatorSingle
Drawable to use for single choice indicators |
static int |
listDivider
The drawable for the list divider |
static int |
listPreferredItemHeight
The preferred list item height |
static int |
listSelector
Drawable used to indicate the currently selected item in the list. |
static int |
listSeparatorTextViewStyle
TextView style for list separators. |
static int |
listViewStyle
Default ListView style. |
static int |
listViewWhiteStyle
ListView with white background. |
static int |
longClickable
Defines whether this view reacts to long click events. |
static int |
manageSpaceActivity
Name of the activity to be launched to manage application's space on device. |
static int |
mapViewStyle
Default MapView style. |
static int |
max
Defines the maximum value the progress can take. |
static int |
maxEms
Makes the TextView be at most this many ems wide |
static int |
maxHeight
An optional argument to supply a maximum height for this view. |
static int |
maxItemsPerRow
Defines the maximum number of items per row. |
static int |
maxLength
Set an input filter to constrain the text length to the specified number. |
static int |
maxLevel
Must be an integer value, such as " 100". |
static int |
maxLines
Makes the TextView be at most this many lines tall |
static int |
maxRows
Defines the maximum number of rows displayed. |
static int |
maxWidth
An optional argument to supply a maximum width for this view. |
static int |
measureAllChildren
Determines whether to measure all children or just those in the VISIBLE or INVISIBLE state when measuring. |
static int |
menuCategory
The category applied to all items within this group. |
static int |
mimeType
Specify a MIME type that is handled, as per IntentFilter.addDataType(). |
static int |
minEms
Makes the TextView be at least this many ems wide |
static int |
minHeight
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
minLevel
Must be an integer value, such as " 100". |
static int |
minLines
Makes the TextView be at least this many lines tall |
static int |
minSdkVersion
This is the minimum SDK version number that the application requires. |
static int |
minWidth
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
mode
Must be one of the following constant values. |
static int |
moreIcon
'More' icon |
static int |
multiprocess
Specify whether a component is allowed to have multiple instances of itself running in different processes. |
static int |
name
A unique name for the given item. |
static int |
negativeButtonText
The negative button text for the dialog. |
static int |
nextFocusDown
Defines the next view to give focus to when the next focus is View.FOCUS_DOWN
If the reference refers to a view that does not exist or is part
of a hierarchy that is invisible, a RuntimeException
will result when the reference is accessed. |
static int |
nextFocusLeft
Defines the next view to give focus to when the next focus is View.FOCUS_LEFT. |
static int |
nextFocusRight
Defines the next view to give focus to when the next focus is View.FOCUS_RIGHT
If the reference refers to a view that does not exist or is part
of a hierarchy that is invisible, a RuntimeException
will result when the reference is accessed. |
static int |
nextFocusUp
Defines the next view to give focus to when the next focus is View.FOCUS_UP
If the reference refers to a view that does not exist or is part
of a hierarchy that is invisible, a RuntimeException
will result when the reference is accessed. |
static int |
numColumns
May be an integer value, such as " 100". |
static int |
numeric
If set, specifies that this TextView has a numeric input method. |
static int |
numericShortcut
The numeric shortcut key. |
static int |
numStars
The number of stars (or rating items) to show. |
static int |
oneshot
If true, the animation will only run a single time and then stop. |
static int |
order
The order for the Preference (lower values are to be ordered first). |
static int |
orderInCategory
The order within the category applied to all items within this group. |
static int |
orderingFromXml
Whether to order the Preference under this group as they appear in the XML file. |
static int |
orientation
Standard orientation constant. |
static int |
outAnimation
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
padding
Sets the padding, in pixels, of all four edges. |
static int |
paddingBottom
Sets the padding, in pixels, of the bottom edge; see padding. |
static int |
paddingLeft
Sets the padding, in pixels, of the left edge; see padding. |
static int |
paddingRight
Sets the padding, in pixels, of the right edge; see padding. |
static int |
paddingTop
Sets the padding, in pixels, of the top edge; see padding. |
static int |
panelBackground
The background of a panel when it is inset from the left and right edges of the screen. |
static int |
panelColorBackground
Color that matches (as closely as possible) the panel background. |
static int |
panelColorForeground
Default color of foreground panel imagery. |
static int |
panelFullBackground
The background of a panel when it extends to the left and right edges of the screen. |
static int |
panelTextAppearance
Default appearance of panel text. |
static int |
password
Whether the characters of the field are displayed as password dots instead of themselves. |
static int |
path
Specify a URI path that must exactly match, as per PatternMatcher with
PatternMatcher.PATTERN_LITERAL. |
static int |
pathPattern
Specify a URI path that matches a simple pattern, as per PatternMatcher with
PatternMatcher.PATTERN_SIMPLE_GLOB. |
static int |
pathPrefix
Specify a URI path that must be a prefix to match, as per PatternMatcher with
PatternMatcher.PATTERN_PREFIX. |
static int |
permission
Specify a permission that a client is required to have in order to use the associated object. |
static int |
permissionGroup
Specified the name of a group that this permission is associated with. |
static int |
persistent
Flag to control special persistent mode of an application. |
static int |
persistentDrawingCache
Defines the persistence of the drawing cache. |
static int |
phoneNumber
If set, specifies that this TextView has a phone number input method. |
static int |
pivotX
May be a floating point value, such as " 1.2". |
static int |
pivotY
May be a floating point value, such as " 1.2". |
static int |
popupBackground
May be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
popupWindowStyle
Default PopupWindow style. |
static int |
port
Specify a URI authority port that is handled, as per IntentFilter.addDataAuthority(). |
static int |
positiveButtonText
The positive button text for the dialog. |
static int |
preferenceCategoryStyle
Default style for PreferenceCategory. |
static int |
preferenceInformationStyle
Default style for informational Preference. |
static int |
preferenceLayoutChild
The preference layout that has the child/tabbed effect. |
static int |
preferenceScreenStyle
Default style for PreferenceScreen. |
static int |
preferenceStyle
Default style for Preference. |
static int |
priority
Specify the relative importance or ability in handling a particular Intent. |
static int |
process
Specify a specific process that the associated code is to run in. |
static int |
progress
Defines the default progress value, between 0 and max. |
static int |
progressBarStyle
Default ProgressBar style. |
static int |
progressBarStyleHorizontal
Horizontal ProgressBar style. |
static int |
progressBarStyleLarge
Large ProgressBar style. |
static int |
progressBarStyleSmall
Small ProgressBar style. |
static int |
progressBarStyleSmallTitle
Small ProgressBar in title style. |
static int |
progressDrawable
Drawable used for the progress mode. |
static int |
prompt
The prompt to display when the spinner's dialog is shown. |
static int |
protectionLevel
Characterizes the potential risk implied in a permission and indicates the procedure the system should follow when determining whether to grant the permission to an application requesting it. |
static int |
queryActionMsg
If you wish to handle an action key during normal search query entry, you must define an action string here. |
static int |
radioButtonStyle
Default RadioButton style. |
static int |
radius
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
rating
The rating to set by default. |
static int |
ratingBarStyle
Default RatingBar style. |
static int |
ratingBarStyleIndicator
Indicator RatingBar style. |
static int |
ratingBarStyleSmall
Small indicator RatingBar style. |
static int |
readPermission
A specific permission name for read-only
access to a ContentProvider. |
static int |
repeatCount
Defines how many times the animation should repeat. |
static int |
repeatMode
Defines the animation behavior when it reaches the end and the repeat count is greater than 0 or infinite. |
static int |
resource
Resource identifier to assign to this piece of named meta-data. |
static int |
right
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
ringtonePreferenceStyle
Default style for RingtonePreference. |
static int |
ringtoneType
Which ringtone type(s) to show in the picker. |
static int |
rowDelay
Fraction of the animation duration used to delay the beginning of the animation of each row. |
static int |
rowHeight
Defines the height of each row. |
static int |
saveEnabled
If unset, no state will be saved for this view when it is being frozen. |
static int |
scaleGravity
Specifies where the drawable is positioned after scaling. |
static int |
scaleHeight
Scale height, expressed as a percentage of the drawable's bound. |
static int |
scaleType
Controls how the image should be resized or moved to match the size of this ImageView. |
static int |
scaleWidth
Scale width, expressed as a percentage of the drawable's bound. |
static int |
scheme
Specify a URI scheme that is handled, as per IntentFilter.addDataScheme(). |
static int |
screenOrientation
Specify the orientation an activity should be run in. |
static int |
scrollbarAlwaysDrawHorizontalTrack
Defines whether the horizontal scrollbar track should always be drawn. |
static int |
scrollbarAlwaysDrawVerticalTrack
Defines whether the vertical scrollbar track should always be drawn |
static int |
scrollbars
Defines which scrollbars should be displayed on scrolling or not. |
static int |
scrollbarSize
Sets the width of vertical scrollbars and height of horizontal scrollbars. |
static int |
scrollbarStyle
Controls the scrollbar style and position. |
static int |
scrollbarThumbHorizontal
Defines the horizontal scrollbar thumb drawable. |
static int |
scrollbarThumbVertical
Defines the vertical scrollbar thumb drawable. |
static int |
scrollbarTrackHorizontal
Defines the horizontal scrollbar track drawable. |
static int |
scrollbarTrackVertical
Defines the vertical scrollbar track drawable. |
static int |
scrollHorizontally
Whether the text is allowed to be wider than the view (and therefore can be scrolled horizontally). |
static int |
scrollingCache
When set to true, the list uses a drawing cache during scrolling. |
static int |
scrollViewStyle
Default ScrollView style. |
static int |
scrollX
The initial horizontal scroll offset, in pixels. |
static int |
scrollY
The initial vertical scroll offset, in pixels. |
static int |
searchButtonText
If supplied, this string will be displayed as the text of the "Search" button. |
static int |
searchMode
Additional features are controlled by mode bits in this field. |
static int |
searchSuggestAuthority
If provided, this is the trigger indicating that the searchable activity provides suggestions as well. |
static int |
searchSuggestIntentAction
If provided, and not overridden by an action in the selected suggestion, this string will be placed in the action field of the Intent
when the user clicks a suggestion. |
static int |
searchSuggestIntentData
If provided, and not overridden by an action in the selected suggestion, this string will be placed in the data field of the Intent
when the user clicks a suggestion. |
static int |
searchSuggestPath
If provided, this will be inserted in the suggestions query Uri, after the authority you have provide but before the standard suggestions path. |
static int |
searchSuggestSelection
If provided, suggestion queries will be passed into your query function as the selection parameter. |
static int |
secondaryProgress
Defines the secondary progress value, between 0 and max. |
static int |
seekBarStyle
Default SeekBar style. |
static int |
selectable
Whether the Preference is selectable. |
static int |
selectAllOnFocus
If the text is selectable, select it all when the view takes focus instead of moving the cursor to the start or end. |
static int |
shadowColor
Place a shadow of the specified color behind the text. |
static int |
shadowDx
Horizontal offset of the shadow. |
static int |
shadowDy
Vertical offset of the shadow. |
static int |
shadowRadius
Radius of the shadow. |
static int |
shape
Must be one of the following constant values. |
static int |
sharedUserId
Specify the name of a user ID that will be shared between multiple packages. |
static int |
shareInterpolator
Must be a boolean value, either " true" or "false". |
static int |
shouldDisableView
Whether the view of this Preference should be disabled when this Preference is disabled. |
static int |
showDefault
Whether to show an item for a default sound. |
static int |
showSilent
Whether to show an item for 'Silent'. |
static int |
shrinkColumns
The 0 based index of the columns to shrink. |
static int |
singleLine
Constrains the text to a single horizontally scrolling line instead of letting it wrap onto multiple lines, and advances focus instead of inserting a newline when you press the enter key. |
static int |
soundEffectsEnabled
Boolean that controls whether a view should have sound effects enabled for events such as clicking and touching. |
static int |
spacing
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
spinnerDropDownItemStyle
Default style for spinner drop down items. |
static int |
spinnerItemStyle
Default spinner item style. |
static int |
spinnerStyle
Default Spinner style. |
static int |
src
Sets a drawable as the content of this ImageView. |
static int |
stackFromBottom
Used by ListView and GridView to stack their content from the bottom. |
static int |
starStyle
Default Star style. |
static int |
startColor
Must be a color value, in the form of " #rgb", "#argb",
"#rrggbb", or "#aarrggbb". |
static int |
startOffset
Delay in milliseconds before the animation runs, once start time is reached. |
static int |
startYear
The first year (inclusive) i.e. |
static int |
state_above_anchor
State identifier indicating the popup will be above the anchor. |
static int |
state_active
State value for StateListDrawable. |
static int |
state_checkable
State identifier indicating that the object may display a check mark. |
static int |
state_checked
State identifier indicating that the object is currently checked. |
static int |
state_empty
State identifier indicating the group is empty (has no children). |
static int |
state_enabled
State value for StateListDrawable. |
static int |
state_expanded
State identifier indicating the group is expanded. |
static int |
state_first
State value for StateListDrawable. |
static int |
state_focused
State value for StateListDrawable. |
static int |
state_last
State value for StateListDrawable. |
static int |
state_middle
State value for StateListDrawable. |
static int |
state_pressed
State value for StateListDrawable. |
static int |
state_selected
State value for StateListDrawable. |
static int |
state_single
State value for StateListDrawable. |
static int |
state_window_focused
State value for StateListDrawable. |
static int |
stateNotNeeded
Indicates that an Activity does not need to have its freeze state (as returned by Activity.onSaveInstanceState(android.os.Bundle)
retained in order to be restarted. |
static int |
stepSize
The step size of the rating. |
static int |
streamType
Different audio stream types. |
static int |
stretchColumns
The 0 based index of the columns to stretch. |
static int |
stretchMode
Must be one of the following constant values. |
static int |
suggestActionMsg
If you wish to handle an action key while a suggestion is being displayed and selected, there are two ways to handle this. |
static int |
suggestActionMsgColumn
If you wish to handle an action key while a suggestion is being displayed and selected, but you do not wish to enable this action key for every suggestion, then you can use this attribute to control it on a suggestion-by-suggestion basis. |
static int |
summary
The summary for the Preference in a PreferenceActivity screen. |
static int |
summaryOff
The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is unchecked. |
static int |
summaryOn
The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is checked. |
static int |
syncable
Flag indicating whether this content provider would like to participate in data synchronization. |
static int |
tabWidgetStyle
Default TabWidget style. |
static int |
tag
Supply a tag for this view containing a String, to be retrieved later with View.getTag() or
searched for with View.findViewWithTag(). |
static int |
targetActivity
The name of the activity this alias should launch. |
static int |
targetClass
The class part of the ComponentName to assign to the Intent, as per Intent.setComponent(). |
static int |
targetPackage
The name of the application package that an Instrumentation object will run against. |
static int |
taskAffinity
Specify a task name that activities have an "affinity" to. |
static int |
taskCloseEnterAnimation
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
taskCloseExitAnimation
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
taskOpenEnterAnimation
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
taskOpenExitAnimation
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
taskToBackEnterAnimation
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
taskToBackExitAnimation
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
taskToFrontEnterAnimation
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
taskToFrontExitAnimation
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
text
Text to display. |
static int |
textAppearance
Default appearance of text: color, typeface, size, and style |
static int |
textAppearanceButton
Text color, typeface, size, and style for the text inside of a button. |
static int |
textAppearanceInverse
Default appearance of text against an inverted background: color, typeface, size, and style |
static int |
textAppearanceLarge
Text color, typeface, size, and style for "large" text. |
static int |
textAppearanceLargeInverse
Text color, typeface, size, and style for "large" inverse text. |
static int |
textAppearanceMedium
Text color, typeface, size, and style for "medium" text. |
static int |
textAppearanceMediumInverse
Text color, typeface, size, and style for "medium" inverse text. |
static int |
textAppearanceSmall
Text color, typeface, size, and style for "small" text. |
static int |
textAppearanceSmallInverse
Text color, typeface, size, and style for "small" inverse text. |
static int |
textCheckMark
Drawable to use for check marks |
static int |
textCheckMarkInverse
Must be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
textColor
Color of text (usually same as colorForeground). |
static int |
textColorHighlight
Color of highlighted text. |
static int |
textColorHint
Color of hint text (displayed when the field is empty). |
static int |
textColorHintInverse
Inverse hint text color |
static int |
textColorLink
Color of link text (URLs). |
static int |
textColorPrimary
The most prominent text color, for the |
static int |
textColorPrimaryDisableOnly
Bright text color. |
static int |
textColorPrimaryInverse
Primary inverse text color, useful for inverted backgrounds |
static int |
textColorPrimaryInverseNoDisable
Bright inverse text color. |
static int |
textColorPrimaryNoDisable
Bright text color. |
static int |
textColorSecondary
Secondary text color |
static int |
textColorSecondaryInverse
Secondary inverse text color, useful for inverted backgrounds |
static int |
textColorSecondaryInverseNoDisable
Dim inverse text color. |
static int |
textColorSecondaryNoDisable
Dim text color. |
static int |
textColorTertiary
Tertiary text color |
static int |
textColorTertiaryInverse
Tertiary inverse text color, useful for inverted backgrounds |
static int |
textFilterEnabled
When set to true, the list will filter results as the user types. |
static int |
textOff
The text for the button when it is not checked. |
static int |
textOn
The text for the button when it is checked. |
static int |
textScaleX
Sets the horizontal scaling factor for the text |
static int |
textSize
Size of text (example: 15sp). |
static int |
textStyle
Default text typeface style. |
static int |
textViewStyle
Default TextView style. |
static int |
theme
The overall theme to use for an activity. |
static int |
thicknessRatio
Must be a floating point value, such as " 1.2". |
static int |
thumb
Draws the thumb on a seekbar |
static int |
thumbOffset
An offset for the thumb that allows it to extend out of the range of the track. |
static int |
tileMode
Defines the tile mode. |
static int |
tint
Set a tinting color for the image |
static int |
title
The title associated with the item. |
static int |
titleCondensed
The condensed title associated with the item. |
static int |
toAlpha
Must be a floating point value, such as " 1.2". |
static int |
toDegrees
Must be a floating point value, such as " 1.2". |
static int |
top
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
topBright
May be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
topDark
May be a reference to another resource, in the form " @[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name". |
static int |
topLeftRadius
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
topRightRadius
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
toXDelta
May be a floating point value, such as " 1.2". |
static int |
toXScale
Must be a floating point value, such as " 1.2". |
static int |
toYDelta
May be a floating point value, such as " 1.2". |
static int |
toYScale
Must be a floating point value, such as " 1.2". |
static int |
transcriptMode
Sets the transcript mode for the list. |
static int |
type
Must be one of the following constant values. |
static int |
typeface
Default text typeface. |
static int |
unselectedAlpha
Sets the alpha on the items that are not selected. |
static int |
useLevel
Must be a boolean value, either " true" or "false". |
static int |
value
Concrete value to assign to this piece of named meta-data. |
static int |
variablePadding
If true, allows the drawable's padding to change based on the current state that is selected. |
static int |
versionCode
Internal version code. |
static int |
versionName
The text shown to the user to indicate the version they have. |
static int |
verticalDivider
Default vertical divider between menu items. |
static int |
verticalSpacing
Must be a dimension value, which is a floating point number appended with a unit such as " 14.5sp". |
static int |
visibility
Controls the initial visibility of the view. |
static int |
visible
Provides initial visibility state of the drawable; the default value is false. |
static int |
webViewStyle
Default WebView style. |
static int |
weightSum
Defines the maximum weight sum. |
static int |
widgetLayout
The layout for the controllable widget portion of a Preference. |
static int |
width
Makes the TextView be exactly this many pixels wide. |
static int |
windowAnimationStyle
Reference to a style resource holding the set of window animations to use, which can be any of the attributes defined by R.styleable.WindowAnimation. |
static int |
windowBackground
Drawable to use as the overall window background. |
static int |
windowContentOverlay
This Drawable is overlaid over the foreground of the Window's content area, usually to place a shadow below the title. |
static int |
windowEnterAnimation
The animation used when a window is being added. |
static int |
windowExitAnimation
The animation used when a window is being removed. |
static int |
windowFrame
Drawable to use as a frame around the window. |
static int |
windowFullscreen
Flag indicating whether this window should fill the entire screen. |
static int |
windowHideAnimation
The animation used when a window is going from VISIBLE to INVISIBLE. |
static int |
windowIsFloating
Flag indicating whether this is a floating window. |
static int |
windowIsTranslucent
Flag indicating whether this is a translucent window. |
static int |
windowNoTitle
Flag indicating whether there should be no title on this window. |
static int |
windowShowAnimation
The animation used when a window is going from INVISIBLE to VISIBLE. |
static int |
windowTitleBackgroundStyle
The style resource to use for a window's title area. |
static int |
windowTitleSize
The style resource to use for a window's title bar height. |
static int |
windowTitleStyle
The style resource to use for a window's title text. |
static int |
writePermission
A specific permission name for write
access to a ContentProvider. |
static int |
x
A coordinate in the X dimension. |
static int |
y
A coordinate in the Y dimension. |
static int |
yesNoPreferenceStyle
Default style for YesNoPreference. |
static int |
zAdjustment
Allows for an adjustment of the Z ordering of the content being animated for the duration of the animation. |
| Constructor Summary | |
|---|---|
R.attr()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int absListViewStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int action
Intent.setAction().
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int activityCloseEnterAnimation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int activityCloseExitAnimation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int activityOpenEnterAnimation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int activityOpenExitAnimation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int addStatesFromChildren
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int adjustViewBounds
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int alertDialogStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int allowClearUserData
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int allowTaskReparenting
Normally when an application is started, it is associated with
the task of the activity that started it and stays there for its
entire lifetime. You can use the allowTaskReparenting feature to force an
activity to be re-parented to a different task when the task it is
in goes to the background. Typically this is used to cause the
activities of an application to move back to the main task associated
with that application. The activity is re-parented to the task
with the same taskAffinity as it has.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int alphabeticShortcut
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int alwaysDrawnWithCache
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int alwaysRetainTaskState
Normally the system will reset a task (remove all activities from the stack and reset the root activity) in certain situations when the user re-selects that task from the home screen. Typically this will be done if the user hasn't visited that task for a certain amount of time, such as 30 minutes.
By setting this attribute, the user will always return to your task in its last state, regardless of how they get there. This is useful, for example, in an application like the web browser where there is a lot of state (such as multiple open tabs) that the application would not like to lose.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int angle
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int animation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int animationCache
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int animationDuration
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int animationOrder
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
normal | 0 | Animations are started in the natural order. |
reverse | 1 | Animations are started in the reverse order. |
random | 2 | Animations are started randomly. |
public static final int antialias
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int apiKey
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int authorities
com.google.provider.MyProvider)
in order to avoid conflicts. Typically this name is the same
as the class implementation describing the provider's data structure.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int autoCompleteTextViewStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int autoLink
Must be one or more (separated by '|') of the following constant values.
| Constant | Value | Description |
|---|---|---|
none | 0x00 | Match no patterns (default) |
web | 0x01 | Match Web URLs |
email | 0x02 | Match email addresses |
phone | 0x04 | Match phone numbers |
map | 0x08 | Match map addresses |
all | 0x0f | Match all patterns (equivalent to web|email|phone|map) |
public static final int autoText
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int background
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int backgroundDimAmount
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int baselineAlignBottom
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int baselineAligned
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int baselineAlignedChildIndex
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int bottom
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int bottomBright
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int bottomDark
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int bottomLeftRadius
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int bottomMedium
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int bottomRightRadius
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int bufferType
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
normal | 0 | Can return any CharSequence, possibly a Spanned one if the source text was Spanned. |
spannable | 1 | Can only return Spannable. |
editable | 2 | Can only return Spannable and Editable. |
public static final int button
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int buttonStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int buttonStyleInset
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int buttonStyleSmall
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int buttonStyleToggle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int cacheColorHint
Must be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int capitalize
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
none | 0 | Don't automatically capitalize anything. |
sentences | 1 | Capitalize the first word of each sentence. |
words | 2 | Capitalize the first letter of every word. |
characters | 3 | Capitalize every character. |
public static final int centerBright
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int centerColor
Must be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int centerDark
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int centerMedium
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int centerX
May be a floating point value, such as "1.2".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int centerY
May be a floating point value, such as "1.2".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int checkBoxPreferenceStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int checkMark
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int checkable
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int checkableBehavior
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
none | 0 | The items are not checkable. |
all | 1 | The items are all checkable. |
single | 2 | The items are checkable and there will only be a single checked item in this group. |
public static final int checkboxStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int checked
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int checkedButton
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int childDivider
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int childIndicator
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int childIndicatorLeft
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int childIndicatorRight
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int choiceMode
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
none | 0 | Normal list that does not indicate choices |
singleChoice | 1 | The list allows up to one choice |
multipleChoice | 2 | The list allows multiple choices |
public static final int clearTaskOnLaunch
An example of the use of this flag would be for the case where a user launches activity A from home, and from there goes to activity B. They now press home, and then return to activity A. Normally they would see activity B, since that is what they were last doing in A's task. However, if A has set this flag to true, then upon going to the background all of the tasks on top of it (B in this case) are removed, so when the user next returns to A they will restart at its original activity.
When this option is used in conjunction with
allowTaskReparenting, the allowTaskReparenting trumps the
clear. That is, all activities above the root activity of the
task will be removed: those that have an affinity will be moved
to the task they are associated with, otherwise they will simply
be dropped as described here.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int clickable
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int clipChildren
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int clipOrientation
Must be one or more (separated by '|') of the following constant values.
| Constant | Value | Description |
|---|---|---|
horizontal | 1 | Clip the drawable horizontally. |
vertical | 2 | Clip the drawable vertically. |
public static final int clipToPadding
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int collapseColumns
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int color
Must be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int colorBackground
Must be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int colorForeground
Must be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int colorForegroundInverse
Must be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int columnDelay
May be a floating point value, such as "1.2".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int columnWidth
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int completionHint
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int completionHintView
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int completionThreshold
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int configChanges
Activity.onConfigurationChanged
method called with the new configuration.
Note that all of these configuration changes can impact the resource values seen by the application, so you will generally need to re-retrieve all resources (including view layouts, drawables, etc) to correctly handle any configuration change.
These values must be kept in sync with those in
ActivityInfo and
include/utils/ResourceTypes.h.
Must be one or more (separated by '|') of the following constant values.
| Constant | Value | Description |
|---|---|---|
mcc | 0x0001 | The IMSI MCC has changed, that is a SIM has been detected and updated the Mobile Country Code. |
mnc | 0x0002 | The IMSI MNC has changed, that is a SIM has been detected and updated the Mobile Network Code. |
locale | 0x0004 | The locale has changed, that is the user has selected a new language that text should be displayed in. |
touchscreen | 0x0008 | The touchscreen has changed. Should never normally happen. |
keyboard | 0x0010 | The keyboard type has changed, for example the user has plugged in an external keyboard. |
keyboardHidden | 0x0020 | The keyboard accessibility has changed, for example the user has slid the keyboard out to expose it. |
navigation | 0x0040 | The navigation type has changed. Should never normally happen. |
orientation | 0x0080 | The screen orientation has changed, that is the user has rotated the device. |
fontScale | 0x40000000 | The font scaling factor has changed, that is the user has selected a new global font size. |
public static final int constantSize
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int cropToPadding
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int cursorVisible
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int cycles
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int dashGap
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int dashWidth
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int data
Intent.setData().
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int debuggable
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int defaultValue
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a 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, either "true" or "false".
May be a floating point value, such as "1.2".
public static final int delay
May be a floating point value, such as "1.2".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int dependency
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int descendantFocusability
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
beforeDescendants | 0 | The ViewGroup will get focus before any of its descendants. |
afterDescendants | 1 | The ViewGroup will get focus only if none of its descendants want it. |
blocksDescendants | 2 | The ViewGroup will block its descendants from receiving focus. |
public static final int description
label attribute, this can not be a
raw string.
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int dial
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int dialogIcon
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int dialogLayout
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int dialogMessage
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int dialogPreferenceStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int dialogTitle
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int digits
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int direction
Must be one or more (separated by '|') of the following constant values.
| Constant | Value | Description |
|---|---|---|
left_to_right | 0x0 | Animates columns from left to right. |
right_to_left | 0x1 | Animates columns from right to left. |
top_to_bottom | 0x0 | Animates rows from top to bottom. |
bottom_to_top | 0x2 | Animates rows from bottom to top. |
public static final int directionPriority
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
none | 0 | Rows and columns are animated at the same time. |
column | 1 | Columns are animated first. |
row | 2 | Rows are animated first. |
public static final int disableDependentsState
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int disabledAlpha
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int dither
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int divider
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int dividerHeight
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int drawSelectorOnTop
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int drawable
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int drawableBottom
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int drawableLeft
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int drawablePadding
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int drawableRight
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int drawableTop
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int drawingCacheQuality
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
auto | 0 | Lets the framework decide what quality level should be used for the drawing cache. |
low | 1 | Low quality. When set to low quality, the drawing cache uses a lower color depth, thus losing precision in rendering gradients, but uses less memory. |
high | 2 | High quality. When set to high quality, the drawing cache uses a higher color depth but uses more memory. |
public static final int dropDownHintAppearance
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int dropDownItemStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int dropDownListViewStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int dropDownSelector
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int duplicateParentState
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int duration
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int editTextPreferenceStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int editTextStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int editable
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int ellipsize
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
none | 0 | |
start | 1 | |
middle | 2 | |
end | 3 |
public static final int ems
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int enabled
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int endColor
Must be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int endYear
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int entries
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int entryValues
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int excludeFromRecents
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int expandableListPreferredChildIndicatorLeft
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int expandableListPreferredChildIndicatorRight
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int expandableListPreferredChildPaddingLeft
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int expandableListPreferredItemIndicatorLeft
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int expandableListPreferredItemIndicatorRight
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int expandableListPreferredItemPaddingLeft
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int expandableListViewStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int exported
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int factor
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int fadingEdge
Must be one or more (separated by '|') of the following constant values.
| Constant | Value | Description |
|---|---|---|
none | 0x00000000 | No edge is faded. |
horizontal | 0x00001000 | Fades horizontal edges only. |
vertical | 0x00002000 | Fades vertical edges only. |
public static final int fadingEdgeLength
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int fillAfter
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int fillBefore
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int fillViewport
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int filter
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int finishOnTaskLaunch
If both this option and allowTaskReparenting are
specified, the finish trumps the affinity: the affinity will be
ignored and the activity simply finished.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int fitsSystemWindows
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int flipInterval
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int focusable
View.requestFocus(), which will
always request focus regardless of this view. It only impacts where
focus navigation will try to move focus.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int focusableInTouchMode
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int foreground
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int foregroundGravity
Must be one or more (separated by '|') of the following constant values.
| Constant | Value | Description |
|---|---|---|
top | 0x30 | Push object to the top of its container, not changing its size. |
bottom | 0x50 | Push object to the bottom of its container, not changing its size. |
left | 0x03 | Push object to the left of its container, not changing its size. |
right | 0x05 | Push object to the right of its container, not changing its size. |
center_vertical | 0x10 | Place object in the vertical center of its container, not changing its size. |
fill_vertical | 0x70 | Grow the vertical size of the object if needed so it completely fills its container. |
center_horizontal | 0x01 | Place object in the horizontal center of its container, not changing its size. |
fill_horizontal | 0x07 | Grow the horizontal size of the object if needed so it completely fills its container. |
center | 0x11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
fill | 0x77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
public static final int format
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int freezesText
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int fromAlpha
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int fromDegrees
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int fromXDelta
May be a floating point value, such as "1.2".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int fromXScale
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int fromYDelta
May be a floating point value, such as "1.2".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int fromYScale
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int fullBright
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int fullDark
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int functionalTest
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int galleryItemBackground
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int galleryStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int gradientRadius
May be a floating point value, such as "1.2".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int grantUriPermissions
Context.grantUriPermission or corresponding Intent flags can
be used to allow others to access specific URIs in the content
provider, even if they do not have an explicit read or write
permission. If you are supporting this feature, you must be
sure to call Context.revokeUriPermission when URIs are deleted from your
provider.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int gravity
Must be one or more (separated by '|') of the following constant values.
| Constant | Value | Description |
|---|---|---|
top | 0x30 | Push object to the top of its container, not changing its size. |
bottom | 0x50 | Push object to the bottom of its container, not changing its size. |
left | 0x03 | Push object to the left of its container, not changing its size. |
right | 0x05 | Push object to the right of its container, not changing its size. |
center_vertical | 0x10 | Place object in the vertical center of its container, not changing its size. |
fill_vertical | 0x70 | Grow the vertical size of the object if needed so it completely fills its container. |
center_horizontal | 0x01 | Place object in the horizontal center of its container, not changing its size. |
fill_horizontal | 0x07 | Grow the horizontal size of the object if needed so it completely fills its container. |
center | 0x11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
fill | 0x77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
public static final int gridViewStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int groupIndicator
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int hand_hour
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int hand_minute
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int handleProfiling
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int hasCode
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int headerBackground
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int height
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int hint
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int horizontalDivider
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int horizontalSpacing
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int host
IntentFilter.addDataAuthority().
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int icon
The given icon will be used to display to the user a graphical representation of its associated component; for example, as the icon for main activity that is displayed in the launcher. This must be a reference to a Drawable resource containing the image definition.
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int id
View.findViewById() or
Activity.findViewById().
This must be a
resource reference; typically you set this using the
@+ syntax to create a new ID resources.
For example: android:id="@+id/my_id" which
allows you to later retrieve the view
with findViewById(R.id.my_id).
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int ignoreGravity
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int imageButtonStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int imageWellStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int inAnimation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int includeFontPadding
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int indeterminate
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int indeterminateBehavior
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
repeat | 1 | Progress starts over from 0. |
cycle | 2 | Progress keeps the current value and goes back to 0. |
public static final int indeterminateDrawable
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int indeterminateDuration
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int indeterminateOnly
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int indicatorLeft
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int indicatorRight
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int inflatedId
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int initOrder
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int innerRadiusRatio
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int inputMethod
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int insetBottom
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int insetLeft
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int insetRight
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int insetTop
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int interpolator
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int isIndicator
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int itemBackground
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int itemIconDisabledAlpha
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int itemTextAppearance
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int keepScreenOn
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int key
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int keycode
KeyEvent
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
KEYCODE_UNKNOWN | 0 | |
KEYCODE_SOFT_LEFT | 1 | |
KEYCODE_SOFT_RIGHT | 2 | |
KEYCODE_HOME | 3 | |
KEYCODE_BACK | 4 | |
KEYCODE_CALL | 5 | |
KEYCODE_ENDCALL | 6 | |
KEYCODE_0 | 7 | |
KEYCODE_1 | 8 | |
KEYCODE_2 | 9 | |
KEYCODE_3 | 10 | |
KEYCODE_4 | 11 | |
KEYCODE_5 | 12 | |
KEYCODE_6 | 13 | |
KEYCODE_7 | 14 | |
KEYCODE_8 | 15 | |
KEYCODE_9 | 16 | |
KEYCODE_STAR | 17 | |
KEYCODE_POUND | 18 | |
KEYCODE_DPAD_UP | 19 | |
KEYCODE_DPAD_DOWN | 20 | |
KEYCODE_DPAD_LEFT | 21 | |
KEYCODE_DPAD_RIGHT | 22 | |
KEYCODE_DPAD_CENTER | 23 | |
KEYCODE_VOLUME_UP | 24 | |
KEYCODE_VOLUME_DOWN | 25 | |
KEYCODE_POWER | 26 | |
KEYCODE_CAMERA | 27 | |
KEYCODE_CLEAR | 28 | |
KEYCODE_A | 29 | |
KEYCODE_B | 30 | |
KEYCODE_C | 31 | |
KEYCODE_D | 32 | |
KEYCODE_E | 33 | |
KEYCODE_F | 34 | |
KEYCODE_G | 35 | |
KEYCODE_H | 36 | |
KEYCODE_I | 37 | |
KEYCODE_J | 38 | |
KEYCODE_K | 39 | |
KEYCODE_L | 40 | |
KEYCODE_M | 41 | |
KEYCODE_N | 42 | |
KEYCODE_O | 43 | |
KEYCODE_P | 44 | |
KEYCODE_Q | 45 | |
KEYCODE_R | 46 | |
KEYCODE_S | 47 | |
KEYCODE_T | 48 | |
KEYCODE_U | 49 | |
KEYCODE_V | 50 | |
KEYCODE_W | 51 | |
KEYCODE_X | 52 | |
KEYCODE_Y | 53 | |
KEYCODE_Z | 54 | |
KEYCODE_COMMA | 55 | |
KEYCODE_PERIOD | 56 | |
KEYCODE_ALT_LEFT | 57 | |
KEYCODE_ALT_RIGHT | 58 | |
KEYCODE_SHIFT_LEFT | 59 | |
KEYCODE_SHIFT_RIGHT | 60 | |
KEYCODE_TAB | 61 | |
KEYCODE_SPACE | 62 | |
KEYCODE_SYM | 63 | |
KEYCODE_EXPLORER | 64 | |
KEYCODE_ENVELOPE | 65 | |
KEYCODE_ENTER | 66 | |
KEYCODE_DEL | 67 | |
KEYCODE_GRAVE | 68 | |
KEYCODE_MINUS | 69 | |
KEYCODE_EQUALS | 70 | |
KEYCODE_LEFT_BRACKET | 71 | |
KEYCODE_RIGHT_BRACKET | 72 | |
KEYCODE_BACKSLASH | 73 | |
KEYCODE_SEMICOLON | 74 | |
KEYCODE_APOSTROPHE | 75 | |
KEYCODE_SLASH | 76 | |
KEYCODE_AT | 77 | |
KEYCODE_NUM | 78 | |
KEYCODE_HEADSETHOOK | 79 | |
KEYCODE_FOCUS | 80 | |
KEYCODE_PLUS | 81 | |
KEYCODE_MENU | 82 | |
KEYCODE_NOTIFICATION | 83 | |
KEYCODE_SEARCH | 84 |
public static final int label
The given label will be used wherever the user sees information about its associated component; for example, as the name of a main activity that is displayed in the launcher. You should generally set this to a reference to a string resource, so that it can be localized, however it is also allowed to supply a plain string for quick and dirty programming.
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
public static final int launchMode
If this attribute is not specified, standard launch
mode will be used. Note that the particular launch behavior can
be changed in some ways at runtime through the
Intent flags
Intent.FLAG_ACTIVITY_SINGLE_TOP,
Intent.FLAG_ACTIVITY_NEW_TASK, and
Intent.FLAG_ACTIVITY_MULTIPLE_TASK.
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
standard | 0 | The default mode, which will usually create a new instance of
the activity when it is started, though this behavior may change
with the introduction of other options such as
Intent.FLAG_ACTIVITY_NEW_TASK. |
singleTop | 1 | If, when starting the activity, there is already an
instance of the same activity class in the foreground that is
interacting with the user, then
re-use that instance. This existing instance will receive a call to
Activity.onNewIntent() with
the new Intent that is being started. |
singleTask | 2 | If, when starting the activity, there is already a task running
that starts with this activity, then instead of starting a new
instance the current task is brought to the front. The existing
instance will receive a call to Activity.onNewIntent()
with the new Intent that is being started, and with the
Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT flag set. This is a superset
of the singleTop mode, where if there is already an instance
of the activity being started at the top of the stack, it will
receive the Intent as described there (without the
FLAG_ACTIVITY_BROUGHT_TO_FRONT flag set). See the
Application Model
documentation for more details on tasks. |
singleInstance | 3 | Only allow one instance of this activity to ever be
running. This activity gets a unique task with only itself running
in it; if it is ever launched again with the same Intent, then that
task will be brought forward and its
Activity.onNewIntent()
method called. If this
activity tries to start a new activity, that new activity will be
launched in a separate task. See the
Application Model
documentation for more details on tasks. |
public static final int layout
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int layoutAnimation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int layout_above
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int layout_alignBaseline
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int layout_alignBottom
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int layout_alignLeft
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int layout_alignParentBottom
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int layout_alignParentLeft
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int layout_alignParentRight
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int layout_alignParentTop
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int layout_alignRight
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int layout_alignTop
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int layout_alignWithParentIfMissing
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int layout_below
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int layout_centerHorizontal
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int layout_centerInParent
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int layout_centerVertical
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int layout_column
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int layout_gravity
Must be one or more (separated by '|') of the following constant values.
| Constant | Value | Description |
|---|---|---|
top | 0x30 | Push object to the top of its container, not changing its size. |
bottom | 0x50 | Push object to the bottom of its container, not changing its size. |
left | 0x03 | Push object to the left of its container, not changing its size. |
right | 0x05 | Push object to the right of its container, not changing its size. |
center_vertical | 0x10 | Place object in the vertical center of its container, not changing its size. |
fill_vertical | 0x70 | Grow the vertical size of the object if needed so it completely fills its container. |
center_horizontal | 0x01 | Place object in the horizontal center of its container, not changing its size. |
fill_horizontal | 0x07 | Grow the horizontal size of the object if needed so it completely fills its container. |
center | 0x11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
fill | 0x77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
public static final int layout_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), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
May be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
fill_parent | -1 | The view should be as big as its parent (minus padding). |
wrap_content | -2 | The view should be only big enough to enclose its content (plus padding). |
public static final int layout_margin
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int layout_marginBottom
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int layout_marginLeft
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int layout_marginRight
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int layout_marginTop
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int layout_scale
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int layout_span
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int layout_toLeftOf
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int layout_toRightOf
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int layout_weight
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int layout_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), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
May be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
fill_parent | -1 | The view should be as big as its parent (minus padding). |
wrap_content | -2 | The view should be only big enough to enclose its content (plus padding). |
public static final int layout_x
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int layout_y
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int left
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int lineSpacingExtra
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int lineSpacingMultiplier
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int lines
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int linksClickable
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int listChoiceIndicatorMultiple
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int listChoiceIndicatorSingle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int listDivider
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int listPreferredItemHeight
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int listSelector
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int listSeparatorTextViewStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int listViewStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int listViewWhiteStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int longClickable
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int manageSpaceActivity
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int mapViewStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int max
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int maxEms
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int maxHeight
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int maxItemsPerRow
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int maxLength
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int maxLevel
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int maxLines
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int maxRows
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int maxWidth
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int measureAllChildren
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int menuCategory
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
container | 0x00010000 | Items are part of a container. |
system | 0x00020000 | Items are provided by the system. |
secondary | 0x00030000 | Items are user-supplied secondary (infrequently used). |
alternative | 0x00040000 | Items are alternative actions. |
public static final int mimeType
IntentFilter.addDataType().
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int minEms
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int minHeight
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int minLevel
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int minLines
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int minSdkVersion
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int minWidth
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int mode
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
oneLine | 1 | Always show only the first line. |
collapsing | 2 | When selected show both lines, otherwise show only the first line. This is the default mode |
twoLine | 3 | Always show both lines. |
public static final int moreIcon
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int multiprocess
Normally the system will ensure that all instances of a particular component are only running in a single process. You can use this attribute to disable that behavior, allowing the system to create instances wherever they are used (provided permissions allow it). This is most often used with content providers, so that instances of a provider can be created in each client process, allowing them to be used without performing IPC.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int name
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int negativeButtonText
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int nextFocusDown
View.FOCUS_DOWN
If the reference refers to a view that does not exist or is part
of a hierarchy that is invisible, a RuntimeException
will result when the reference is accessed.
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int nextFocusLeft
View.FOCUS_LEFT.
If the reference refers to a view that does not exist or is part
of a hierarchy that is invisible, a RuntimeException
will result when the reference is accessed.
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int nextFocusRight
View.FOCUS_RIGHT
If the reference refers to a view that does not exist or is part
of a hierarchy that is invisible, a RuntimeException
will result when the reference is accessed.
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int nextFocusUp
View.FOCUS_UP
If the reference refers to a view that does not exist or is part
of a hierarchy that is invisible, a RuntimeException
will result when the reference is accessed.
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int numColumns
May be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
May be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
auto_fit | -1 |
public static final int numStars
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int numeric
Must be one or more (separated by '|') of the following constant values.
| Constant | Value | Description |
|---|---|---|
integer | 0x01 | Input is numeric. |
signed | 0x003 | Input is numeric, with sign allowed. |
decimal | 0x05 | Input is numeric, with decimals allowed. |
public static final int numericShortcut
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int oneshot
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int order
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int orderInCategory
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int orderingFromXml
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int orientation
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
horizontal | 0 | Defines an horizontal widget. |
vertical | 1 | Defines a vertical widget. |
public static final int outAnimation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int padding
background
is provided, the padding will initially be set to that (0 if the
drawable does not have padding). Explicitly setting a padding value
will override the corresponding padding found in the background.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int paddingBottom
padding.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int paddingLeft
padding.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int paddingRight
padding.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int paddingTop
padding.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int panelBackground
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int panelColorBackground
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int panelColorForeground
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int panelFullBackground
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int panelTextAppearance
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int password
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int path
PatternMatcher with
PatternMatcher.PATTERN_LITERAL.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int pathPattern
PatternMatcher with
PatternMatcher.PATTERN_SIMPLE_GLOB.
Note that because '\' is used as an escape character when
reading the string from XML (before it is parsed as a pattern),
you will need to double-escape: for example a literal "*" would
be written as "\\*" and a literal "\" would be written as
"\\\\". This is basically the same as what you would need to
write if constructing the string in Java code.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int pathPrefix
PatternMatcher with
PatternMatcher.PATTERN_PREFIX.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int permission
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int permissionGroup
permission-group tag.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int persistent
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int persistentDrawingCache
Must be one or more (separated by '|') of the following constant values.
| Constant | Value | Description |
|---|---|---|
none | 0x0 | The drawing cache is not persisted after use. |
animation | 0x1 | The drawing cache is persisted after a layout animation. |
scrolling | 0x2 | The drawing cache is persisted after a scroll. |
all | 0x3 | The drawing cache is always persisted. |
public static final int phoneNumber
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int pivotX
May be a floating point value, such as "1.2".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int pivotY
May be a floating point value, such as "1.2".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int popupBackground
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int popupWindowStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int port
IntentFilter.addDataAuthority(). If a host is supplied
but not a port, any port is matched.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int positiveButtonText
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int preferenceCategoryStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int preferenceInformationStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int preferenceLayoutChild
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int preferenceScreenStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int preferenceStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int priority
Only use if you really need to impose some specific order in which the broadcasts are received, or want to forcibly place an activity to always be preferred over others. The value is a single integer, with higher numbers considered to be better.
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int process
Application components are normally run in a single process that is created for the entire application. You can use this tag to modify where they run. If the process name begins with a ':' character, a new process private to that application will be created when needed to run that component (allowing you to spread your application across multiple processes). If the process name begins with a lower-case character, the component will be run in a global process of that name, provided that you have permission to do so, allowing multiple applications to share one process to reduce resource usage.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int progress
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int progressBarStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int progressBarStyleHorizontal
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int progressBarStyleLarge
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int progressBarStyleSmall
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int progressBarStyleSmallTitle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int progressDrawable
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int prompt
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int protectionLevel
Standard permissions have a predefined and
permanent protectionLevel. If you are creating a custom permission in an
application, you can define a protectionLevel attribute with one of the
values listed below. If no protectionLevel is defined for a custom
permission, the system assigns the default ("normal").
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
normal | 0 | A lower-risk permission that gives an application access to isolated application-level features, with minimal risk to other applications, the system, or the user. The system automatically grants this type of permission to a requesting application at installation, without asking for the user's explicit approval (though the user always has the option to review these permissions before installing). |
dangerous | 1 | A higher-risk permission that would give a requesting application access to private user data or control over the device that can negatively impact the user. Because this type of permission introduces potential risk, the system may not automatically grant it to the requesting application. For example, any dangerous permissions requested by an application may be displayed to the user and require confirmation before proceeding, or some other approach may be taken to avoid the user automatically allowing the use of such facilities. |
signature | 2 | A permission that the system is to grant only if the requesting application is signed with the same certificate as the application that declared the permission. If the certificates match, the system automatically grants the permission without notifying the user or asking for the user's explicit approval. |
signatureOrSystem | 3 | A permission that the system is to grant only to packages in the Android system image or that are signed with the same certificates. Please avoid using this option, as the signature protection level should be sufficient for most needs and works regardless of exactly where applications are installed. This permission is used for certain special situations where multiple vendors have applications built in to a system image which need to share specific features explicitly because they are being built together. |
public static final int queryActionMsg
ACTION_SEARCH intent that is passed to your
searchable activity. To examine the string, use
getStringExtra(SearchManager.ACTION_MSG).
Optional attribute.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int radioButtonStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int radius
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int rating
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int ratingBarStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int ratingBarStyleIndicator
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int ratingBarStyleSmall
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int readPermission
permission name for read-only
access to a ContentProvider. See the
Security Model
document for more information on permissions.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int repeatCount
May be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
May be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
infinite | -1 |
public static final int repeatMode
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
restart | 1 | The animation starts again from the beginning. |
reverse | 2 | The animation plays backward. |
public static final int resource
Bundle.getInt.
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int right
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int ringtonePreferenceStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int ringtoneType
Must be one or more (separated by '|') of the following constant values.
| Constant | Value | Description |
|---|---|---|
ringtone | 1 | Ringtones. |
notification | 2 | Notification sounds. |
alarm | 4 | Alarm sounds. |
all | 7 | All available ringtone sounds. |
public static final int rowDelay
May be a floating point value, such as "1.2".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int rowHeight
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int saveEnabled
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int scaleGravity
Must be one or more (separated by '|') of the following constant values.
| Constant | Value | Description |
|---|---|---|
top | 0x30 | Push object to the top of its container, not changing its size. |
bottom | 0x50 | Push object to the bottom of its container, not changing its size. |
left | 0x03 | Push object to the left of its container, not changing its size. |
right | 0x05 | Push object to the right of its container, not changing its size. |
center_vertical | 0x10 | Place object in the vertical center of its container, not changing its size. |
fill_vertical | 0x70 | Grow the vertical size of the object if needed so it completely fills its container. |
center_horizontal | 0x01 | Place object in the horizontal center of its container, not changing its size. |
fill_horizontal | 0x07 | Grow the horizontal size of the object if needed so it completely fills its container. |
center | 0x11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
fill | 0x77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
public static final int scaleHeight
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int scaleType
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
matrix | 0 | |
fitXY | 1 | |
fitStart | 2 | |
fitCenter | 3 | |
fitEnd | 4 | |
center | 5 | |
centerCrop | 6 | |
centerInside | 7 |
public static final int scaleWidth
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int scheme
IntentFilter.addDataScheme().
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int screenOrientation
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
unspecified | -1 | No preference specified: let the system decide the best orientation. This will either be the orientation selected by the activity below, or the user's preferred orientation if this activity is the bottom of a task. If the user explicitly turned off sensor based orientation through settings sensor based device rotation will be ignored. If not by default sensor based orientation will be taken into account and the orientation will changed based on how the user rotates the device |
landscape | 0 | Would like to have the screen in a landscape orientation: that is, with the display wider than it is tall. |
portrait | 1 | Would like to have the screen in a portrait orientation: that is, with the display taller than it is wide. |
user | 2 | Use the user's current preferred orientation of the handset. |
behind | 3 | Keep the screen in the same orientation as whatever is behind this activity. |
sensor | 4 | Orientation is determined by a physical orientation sensor: the display will rotate based on how the user moves the device. |
nosensor | 5 | Always ignore orientation determined by orientation sensor: tthe display will not rotate when the user moves the device. |
public static final int scrollHorizontally
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int scrollViewStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int scrollX
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int scrollY
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int scrollbarAlwaysDrawHorizontalTrack
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int scrollbarAlwaysDrawVerticalTrack
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int scrollbarSize
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int scrollbarStyle
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
insideOverlay | 0x0 | Inside the padding and overlaid |
insideInset | 0x01000000 | Inside the padding and inset |
outsideOverlay | 0x02000000 | Edge of the view and overlaid |
outsideInset | 0x03000000 | Edge of the view and inset |
public static final int scrollbarThumbHorizontal
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int scrollbarThumbVertical
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int scrollbarTrackHorizontal
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int scrollbarTrackVertical
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int scrollbars
Must be one or more (separated by '|') of the following constant values.
| Constant | Value | Description |
|---|---|---|
none | 0x00000000 | No scrollbar is displayed. |
horizontal | 0x00000100 | Displays horizontal scrollbar only. |
vertical | 0x00000200 | Displays vertical scrollbar only. |
public static final int scrollingCache
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int searchButtonText
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int searchMode
Must be one or more (separated by '|') of the following constant values.
| Constant | Value | Description |
|---|---|---|
showSearchLabelAsBadge | 0x04 | If set, this flag enables the display of the search target (label) within the search bar. If neither bad mode is selected, no badge will be shown. |
showSearchIconAsBadge | 0x08 | If set, this flag enables the display of the search target (icon) within the search bar. (Note, overrides showSearchLabel) If neither bad mode is selected, no badge will be shown. |
queryRewriteFromData | 0x10 | If set, this flag causes the suggestion column SUGGEST_COLUMN_INTENT_DATA to be considered as the text for suggestion query rewriting. This should only be used when the values in SUGGEST_COLUMN_INTENT_DATA are suitable for user inspection and editing - typically, HTTP/HTTPS Uri's. |
queryRewriteFromText | 0x20 | If set, this flag causes the suggestion column SUGGEST_COLUMN_TEXT_1 to be considered as the text for suggestion query rewriting. This should be used for suggestions in which no query text is provided and the SUGGEST_COLUMN_INTENT_DATA values are not suitable for user inspection and editing. |
public static final int searchSuggestAuthority
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int searchSuggestIntentAction
Intent
when the user clicks a suggestion. Optional attribute.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int searchSuggestIntentData
Intent
when the user clicks a suggestion. Optional attribute.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int searchSuggestPath
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int searchSuggestSelection
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int secondaryProgress
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int seekBarStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int selectAllOnFocus
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int selectable
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int shadowColor
Must be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int shadowDx
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int shadowDy
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int shadowRadius
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int shape
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
rectangle | 0 | |
oval | 1 | |
line | 2 | |
ring | 3 |
public static final int shareInterpolator
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int sharedUserId
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int shouldDisableView
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int showDefault
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int showSilent
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int shrinkColumns
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int singleLine
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int soundEffectsEnabled
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int spacing
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int spinnerDropDownItemStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int spinnerItemStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int spinnerStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int src
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int stackFromBottom
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int starStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int startColor
Must be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int startOffset
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int startYear
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int stateNotNeeded
Activity.onSaveInstanceState(android.os.Bundle)
retained in order to be restarted. Generally you use this for activities
that do not store any state. When this flag is set, if for some reason
the activity is killed before it has a chance to save its state,
then the system will not remove it from the activity stack like
it normally would. Instead, the next time the user navigates to
it its Activity.onCreate(android.os.Bundle) method will be called
with a null icicle, just like it was starting for the first time.
This is used by the Home activity to make sure it does not get removed if it crashes for some reason.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int state_above_anchor
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int state_active
StateListDrawable.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int state_checkable
state_checked for the identifier that indicates whether it is
actually checked.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int state_checked
state_checkable for an additional identifier that can indicate if
any object may ever display a check, regardless of whether state_checked is
currently set.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int state_empty
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int state_enabled
StateListDrawable.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int state_expanded
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int state_first
StateListDrawable.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int state_focused
StateListDrawable.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int state_last
StateListDrawable.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int state_middle
StateListDrawable.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int state_pressed
StateListDrawable.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int state_selected
StateListDrawable.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int state_single
StateListDrawable.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int state_window_focused
StateListDrawable.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int stepSize
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int streamType
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
voice | 0 | |
system | 1 | |
ring | 2 | |
music | 3 | |
alarm | 4 |
public static final int stretchColumns
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int stretchMode
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
none | 0 | |
spacingWidth | 1 | |
columnWidth | 2 |
public static final int suggestActionMsg
ACTION_SEARCH intent that is passed to your
searchable activity. To examine the string, use
getStringExtra(SearchManager.ACTION_MSG).
Optional attribute.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int suggestActionMsgColumn
ACTION_SEARCH intent that is passed to
your searchable activity. To examine the string, use
getStringExtra(SearchManager.ACTION_MSG). If the data does not exist for the
selection suggestion, the action key will be ignored.Optional attribute.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int summary
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int summaryOff
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int summaryOn
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int syncable
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int tabWidgetStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int tag
View.getTag() or
searched for with View.findViewWithTag(). It is generally preferable to use
IDs (through the android:id attribute) instead of tags because
they are faster and allow for compile-time type checking.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int targetActivity
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int targetClass
Intent.setComponent().
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int targetPackage
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int taskAffinity
The default value for this attribute is the same as the package name, indicating that all activities in the manifest should generally be considered a single "application" to the user. You can use this attribute to modify that behavior: either giving them an affinity for another task, if the activities are intended to be part of that task from the user's perspective, or using an empty string for activities that have no affinity to a task.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int taskCloseEnterAnimation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int taskCloseExitAnimation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int taskOpenEnterAnimation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int taskOpenExitAnimation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int taskToBackEnterAnimation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int taskToBackExitAnimation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int taskToFrontEnterAnimation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int taskToFrontExitAnimation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int text
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int textAppearance
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int textAppearanceButton
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int textAppearanceInverse
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int textAppearanceLarge
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int textAppearanceLargeInverse
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int textAppearanceMedium
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int textAppearanceMediumInverse
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int textAppearanceSmall
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int textAppearanceSmallInverse
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int textCheckMark
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int textCheckMarkInverse
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int textColor
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int textColorHighlight
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int textColorHint
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int textColorHintInverse
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int textColorLink
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int textColorPrimary
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int textColorPrimaryDisableOnly
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int textColorPrimaryInverse
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int textColorPrimaryInverseNoDisable
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int textColorPrimaryNoDisable
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int textColorSecondary
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int textColorSecondaryInverse
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int textColorSecondaryInverseNoDisable
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int textColorSecondaryNoDisable
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int textColorTertiary
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int textColorTertiaryInverse
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int textFilterEnabled
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int textOff
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int textOn
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int textScaleX
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int textSize
DisplayMetrics for more information.DisplayMetrics for more information.Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int textStyle
Must be one or more (separated by '|') of the following constant values.
| Constant | Value | Description |
|---|---|---|
normal | 0 | |
bold | 1 | |
italic | 2 |
public static final int textViewStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int theme
This automatically sets your activity's Context to use this theme, and may also be used for "starting" animations prior to the activity being launched (to better match what the activity actually looks like). It is a reference to a style resource defining the theme. If not set, the default system theme will be used.
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int thicknessRatio
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int thumb
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int thumbOffset
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int tileMode
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
disabled | -1 | Do not tile the bitmap. This is the default value. |
clamp | 0 | Replicates the edge color. |
repeat | 1 | Repeats the bitmap in both direction. |
mirror | 2 | Repeats the shader's image horizontally and vertically, alternating mirror images so that adjacent images always seam. |
public static final int tint
Must be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int title
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int titleCondensed
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int toAlpha
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int toDegrees
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int toXDelta
May be a floating point value, such as "1.2".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int toXScale
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int toYDelta
May be a floating point value, such as "1.2".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int toYScale
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int top
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int topBright
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int topDark
May be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
public static final int topLeftRadius
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int topRightRadius
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int transcriptMode
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
disabled | 0 | Disables transcript mode. This is the default value. |
normal | 1 | The list will automatically scroll to the bottom when a data set change notification is received and only if the last item is already visible on screen. |
alwaysScroll | 2 | The list will automatically scroll to the bottom, no matter what items are currently visible. |
public static final int type
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
linear | 0 | |
radial | 1 | |
sweep | 2 |
public static final int typeface
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
normal | 0 | |
sans | 1 | |
serif | 2 | |
monospace | 3 |
public static final int unselectedAlpha
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int useLevel
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int value
Bundle.getString,
Bundle.getInt,
Bundle.getBoolean,
or Bundle.getFloat depending
on the type used here.
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, either "true" or "false".
May be a color value, in the form of "#rgb", "#argb",
"#rrggbb", or "#aarrggbb".
May be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int variablePadding
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int versionCode
versionName.
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int versionName
versionCode.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int verticalDivider
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int verticalSpacing
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int visibility
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
visible | 0 | Visible on screen; the default value. |
invisible | 1 | Not displayed, but taken into account during layout (space is left for it). |
gone | 2 | Completely hidden, as if the view had not been added. |
public static final int visible
Drawable.setVisible(boolean, boolean)
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int webViewStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int weightSum
Must be a floating point value, such as "1.2".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int widgetLayout
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int width
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int windowAnimationStyle
R.styleable.WindowAnimation.
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int windowBackground
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int windowContentOverlay
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int windowEnterAnimation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int windowExitAnimation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int windowFrame
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int windowFullscreen
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int windowHideAnimation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int windowIsFloating
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int windowIsTranslucent
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int windowNoTitle
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int windowShowAnimation
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int windowTitleBackgroundStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int windowTitleSize
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int windowTitleStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int writePermission
permission name for write
access to a ContentProvider. See the
Security Model
document for more information on permissions.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int x
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int y
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
Available units are: px (pixels), db (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name") or
theme attribute (in the form
"?[package:][type:]name")
containing a value of this type.
public static final int yesNoPreferenceStyle
Must be a reference to another resource, in the form "@[+][package:]type:name"
or to a theme attribute in the form "?[package:][type:]name".
public static final int zAdjustment
Must be one of the following constant values.
| Constant | Value | Description |
|---|---|---|
normal | 0 | The content being animated be kept in its current Z order. |
top | 1 | The content being animated is forced on top of all other content for the duration of the animation. |
bottom | -1 | The content being animated is forced under all other content for the duration of the animation. |
| Constructor Detail |
|---|
public R.attr()
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||