R.attr


public static final class R.attr
extends Object

java.lang.Object
   ↳ android.R.attr


Summary

Constants

int absListViewStyle

Default AbsListView style.

int accessibilityDataSensitive

Describes whether this view should allow interactions from AccessibilityServices only if the service sets the isAccessibilityTool property.

int accessibilityEventTypes

The event types this service would like to receive as specified in AccessibilityEvent.

int accessibilityFeedbackType

The feedback types this service provides as specified in AccessibilityServiceInfo.

int accessibilityFlags

Additional flags as specified in AccessibilityServiceInfo.

int accessibilityHeading

Whether or not this view is a heading for accessibility purposes.

int accessibilityLiveRegion

Indicates to accessibility services whether the user should be notified when this view changes.

int accessibilityPaneTitle

The title this view should present to accessibility as a pane title.

int accessibilityTraversalAfter

Sets the id of a view that screen readers are requested to visit before this view.

int accessibilityTraversalBefore

Sets the id of a view that screen readers are requested to visit after this view.

int accountPreferences

A preferences.xml file for authenticator-specific settings.

int accountType

The account type this authenticator handles.

int action

The action name to assign to the Intent, as per Intent.setAction().

int actionBarDivider

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

int actionBarItemBackground

Custom item state list drawable background for action bar items.

int actionBarPopupTheme

Reference to a theme that should be used to inflate popups shown by widgets in the action bar.

int actionBarSize

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

int actionBarSplitStyle

Reference to a style for the split Action Bar.

int actionBarStyle

Reference to a style for the Action Bar.

int actionBarTabBarStyle

Reference to a style for the Action Bar Tab Bar.

int actionBarTabStyle

Default style for tabs within an action bar.

int actionBarTabTextStyle

Reference to a style for the Action Bar Tab text.

int actionBarTheme

Reference to a theme that should be used to inflate the action bar.

int actionBarWidgetTheme

Reference to a theme that should be used to inflate widgets and layouts destined for the action bar.

int actionButtonStyle

Default action button style.

int actionDropDownStyle

Default ActionBar dropdown style.

int actionLayout

An optional layout to be used as an action view.

int actionMenuTextAppearance

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

int actionMenuTextColor

Color for text that appears within action menu items.

int actionModeBackground

Background drawable to use for action mode UI.

int actionModeCloseButtonStyle

Reference to a style for the Action Mode close button.

int actionModeCloseDrawable

Drawable to use for the close action mode button.

int actionModeCopyDrawable

Drawable to use for the Copy action button in Contextual Action Bar.

int actionModeCutDrawable

Drawable to use for the Cut action button in Contextual Action Bar.

int actionModeFindDrawable

Drawable to use for the Find action button in WebView selection action modes.

int actionModePasteDrawable

Drawable to use for the Paste action button in Contextual Action Bar.

int actionModeSelectAllDrawable

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

int actionModeShareDrawable

Drawable to use for the Share action button in WebView selection action modes.

int actionModeSplitBackground

Background drawable to use for action mode UI in the lower split bar.

int actionModeStyle

Reference to a style for the Action Mode.

int actionModeWebSearchDrawable

Drawable to use for the Web Search action button in WebView selection action modes.

int actionOverflowButtonStyle

Reference to a style for Action Bar overflow buttons.

int actionOverflowMenuStyle

Reference to a style for the Action Bar menu.

int actionProviderClass

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

int actionViewClass

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

int activatedBackgroundIndicator

Drawable used as a background for activated items.

int activityCloseEnterAnimation

When closing the current activity, this is the animation that is run on the next activity (which is entering the screen).

int activityCloseExitAnimation

When closing the current activity, this is the animation that is run on the current activity (which is exiting the screen).

int activityOpenEnterAnimation

When opening a new activity, this is the animation that is run on the next activity (which is entering the screen).

int activityOpenExitAnimation

When opening a new activity, this is the animation that is run on the previous activity (which is exiting the screen).

int addPrintersActivity

Fully qualified class name of an activity that allows the user to manually add printers to this print service.

int addStatesFromChildren

Sets whether this ViewGroup's drawable states also include its children's drawable states.

int adjustViewBounds

Set this to true if you want the ImageView to adjust its bounds to preserve the aspect ratio of its drawable.

int advancedPrintOptionsActivity

Fully qualified class name of an activity with advanced print options specific to this print service.

int alertDialogIcon

Icon drawable to use for alerts.

int alertDialogStyle

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

int alertDialogTheme

Theme to use for alert dialogs spawned from this theme.

int alignmentMode

Alignment constants.

int allContactsName

Resource representing the term "All Contacts" (for example, "All Friends" or "All connections").

int allow

Specify if this group is allow rule or disallow rule.

int allowAudioPlaybackCapture

If true the app's non sensitive audio can be captured by other apps with AudioPlaybackCaptureConfiguration and a MediaProjection.

int allowBackup

Whether to allow the application to participate in the backup and restore infrastructure.

int allowClearUserData

Option to let applications specify that user data can/cannot be cleared.

int allowClickWhenDisabled

Whether or not allow clicks on disabled view.

int allowCrossUidActivitySwitchFromBelow

May be a boolean value, such as "true" or "false".

int allowEmbedded

Indicate that the activity can be launched as the embedded child of another activity.

int allowGameAngleDriver

Set true to enable ANGLE.

int allowGameDownscaling

Set true to allow resolution downscaling intervention.

int allowGameFpsOverride

Set true to allow FPS override intervention.

int allowNativeHeapPointerTagging

If true this app will receive tagged pointers to native heap allocations from functions like malloc() on compatible devices.

int allowParallelSyncs

Set to true to tell the SyncManager that this SyncAdapter supports multiple simultaneous syncs for the same account type and authority.

int allowSharedIsolatedProcess

If true, and this is an isolatedProcess service, the service is allowed to be bound in a shared isolated process with other isolated services.

int allowSingleTap

Indicates whether the drawer can be opened/closed by a single tap on the handle.

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.

int allowUndo

Whether undo should be allowed for editable text.

int allowUntrustedActivityEmbedding

Indicate that the activity can be embedded by untrusted hosts.

int allowUpdateOwnership

May be a boolean value, such as "true" or "false".

int alpha

alpha property of the view, as a value between 0 (completely transparent) and 1 (completely opaque).

int alphabeticModifiers

The alphabetic modifier key.

int alphabeticShortcut

The alphabetic shortcut key.

int alwaysDrawnWithCache

Defines whether the ViewGroup should always draw its children using their drawing cache or not.

int alwaysRetainTaskState

Specify whether an activity'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.

int amPmBackgroundColor

This constant was deprecated in API level 23. Use headerBackground instead.

int amPmTextColor

This constant was deprecated in API level 23. Use headerTextColor instead.

int ambientShadowAlpha

Alpha value of the ambient shadow projected by elevated views, between 0 and 1.

int angle

Angle of the gradient, used only with linear gradient.

int animateFirstView

Defines whether to animate the current View when the ViewAnimation is first displayed.

int animateLayoutChanges

Defines whether changes in layout (caused by adding and removing items) should cause a LayoutTransition to run.

int animateOnClick

Indicates whether the drawer should be opened/closed with an animation when the user clicks the handle.

int animatedImageDrawable

Animated image of the target of accessibility shortcut purpose or behavior, to help users understand how the target of accessibility shortcut can help them.

int animation

Animation to use on each child.

int animationCache

Defines whether layout animations should create a drawing cache for their children.

int animationDuration

Sets how long a transition animation should run (in milliseconds) when layout has changed.

int animationOrder

The order in which the animations will be started.

int animationResolution

This constant was deprecated in API level 16. Not used by the framework. Timeout between frames of animation in milliseconds. .

May be an integer value, such as "100".

int antialias

Enables or disables antialiasing.

int anyDensity

This constant was deprecated in API level 30. Should always be true by default and not overridden.

May be a boolean value, such as "true" or "false".

int apduServiceBanner

A drawable that can be rendered in Android's system UI for representing the service.

int apiKey

Value is a string that specifies the Maps API Key to use.

int appCategory

Declare the category of this app.

int appComponentFactory

The (optional) fully-qualified name for a subclass of AppComponentFactory that the system uses to instantiate every other manifest defined class.

int attributionTags

Attribution tag to be used for permission sub-attribution if a permission is checked in Context.sendBroadcast(Intent, String).

int attributionsAreUserVisible

Whether attributions provided are meant to be user-visible.

int author

Name of the author and/or source/collection of this component, for example, Art Collection, Picasso.

int authorities

Specify the authorities under which this content provider can be found.

int autoAdvanceViewId

The view id of the AppWidget subview which should be auto-advanced.

int autoCompleteTextViewStyle

Default AutoCompleteTextView style.

int autoHandwritingEnabled

Whether or not the auto handwriting initiation is enabled in this View.

int autoLink

Controls whether links such as urls and email addresses are automatically found and converted to clickable links.

int autoMirrored

Indicates if the drawable needs to be mirrored when its layout direction is RTL (right-to-left).

int autoRemoveFromRecents

Tasks launched by activities with this attribute will remain in the recent tasks list until the last activity in the task is completed.

int autoRevokePermissions

No longer used.

int autoSizeMaxTextSize

The maximum text size constraint to be used when auto-sizing text.

int autoSizeMinTextSize

The minimum text size constraint to be used when auto-sizing text.

int autoSizePresetSizes

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

int autoSizeStepGranularity

Specify the auto-size step size if autoSizeTextType is set to uniform.

int autoSizeTextType

Specify the type of auto-size.

int autoStart

When true, automatically start animating.

int autoText

This constant was deprecated in API level 15. Use inputType instead.

int autoTransact

May be a boolean value, such as "true" or "false".

int autoUrlDetect

If provided and true, URLs entered in the search dialog while searching within this activity would be detected and treated as URLs (show a 'go' button in the keyboard and invoke the browser directly when user launches the URL instead of passing the URL to the activity).

int autoVerify

Specify whether an activity intent filter will need to be verified thru its set of data URIs.

int autofillHints

Describes the content of a view so that a autofill service can fill in the appropriate data.

int autofilledHighlight

Drawable to be drawn over the view to mark it as autofilled

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

int backdropColor

Special option for window animations: whether the window's background should be used as a background to the animation.

int background

A drawable to use as the background.

int backgroundDimAmount

Default background dim amount when a menu, dialog, or something similar pops up.

int backgroundDimEnabled

Control whether dimming behind the window is enabled.

int backgroundSplit

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

int backgroundStacked

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

int backgroundTint

Tint to apply to the background.

int backgroundTintMode

Blending mode used to apply the background tint.

int backupAgent

The name of the class subclassing BackupAgent to manage backup and restore of the application's data on external storage.

int backupInForeground

Indicates that full-data backup operations for this application may be performed even if the application is in a foreground-equivalent state.

int banner

A Drawable resource providing an extended graphical banner for its associated item.

int baseline

The offset of the baseline within this view.

int baselineAlignBottom

If true, the image view will be baseline aligned with based on its bottom edge.

int baselineAligned

When set to false, prevents the layout from aligning its children's baselines.

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 (that is, which child TextView).

int bitmap

Drawable to use as the icon bitmap.

int borderlessButtonStyle

Style for buttons without an explicit border, often used in groups.

int bottom

Amount of bottom padding inside the gradient shape.

int bottomBright

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

int bottomDark

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

int bottomLeftRadius

Radius of the bottom left corner.

int bottomMedium

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

int bottomOffset

Extra offset for the handle at the bottom of the SlidingDrawer.

int bottomRightRadius

Radius of the bottom right corner.

int breadCrumbShortTitle

The short title for the bread crumb of this item.

int breadCrumbTitle

The title for the bread crumb of this item.

int breakStrategy

Break strategy (control over paragraph layout).

int bufferType

Determines the minimum type that getText() will return.

int button

Drawable used for the button graphic (for example, checkbox and radio button).

int buttonBarButtonStyle

Style for buttons within button bars.

int buttonBarNegativeButtonStyle

Style for the "negative" buttons within button bars.

int buttonBarNeutralButtonStyle

Style for the "neutral" buttons within button bars.

int buttonBarPositiveButtonStyle

Style for the "positive" buttons within button bars.

int buttonBarStyle

Style for button bars.

int buttonCornerRadius

Corner radius of buttons.

int buttonGravity

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

int buttonStyle

Normal Button style.

int buttonStyleInset

Button style to inset into an EditText.

int buttonStyleSmall

Small Button style.

int buttonStyleToggle

ToggleButton style.

int buttonTint

Tint to apply to the button graphic.

int buttonTintMode

Blending mode used to apply the button graphic tint.

int cacheColorHint

Indicates that this list will always be drawn on top of solid, single-color opaque background.

int calendarTextColor

The text color list of the calendar.

int calendarViewShown

Whether the calendar view is shown.

int calendarViewStyle

The CalendarView style.

int canControlMagnification

Attribute whether the accessibility service wants to be able to control display magnification.

int canDisplayOnRemoteDevices

Indicates whether the activity can be displayed on a remote device which may or may not be running Android.

int canPauseRecording

Attribute whether the TV input service can pause recording programs.

int canPerformGestures

Attribute whether the accessibility service wants to be able to perform gestures.

int canRecord

Attribute whether the TV input service can record programs.

int canRequestEnhancedWebAccessibility

This constant was deprecated in API level 26. Not used by the framework

int canRequestFilterKeyEvents

Attribute whether the accessibility service wants to be able to request to filter key events.

int canRequestFingerprintGestures

Attribute whether the accessibility service wants to be able to capture gestures from the fingerprint sensor.

int canRequestTouchExplorationMode

Attribute whether the accessibility service wants to be able to request touch exploration mode in which touched items are spoken aloud and the UI can be explored via gestures.

int canRetrieveWindowContent

Attribute whether the accessibility service wants to be able to retrieve the active window content.

int canTakeScreenshot

Attribute whether the accessibility service wants to be able to take screenshot.

int candidatesTextStyleSpans

A styled string, specifying the style to be used for showing inline candidate text when composing with an input method.

int cantSaveState

Declare that this application can't participate in the normal state save/restore mechanism.

int capability

An individual capability declared by the provider.

int capitalize

This constant was deprecated in API level 15. Use inputType instead.

int category

The category attribute will be used by the Android platform to present multiple applications that register ISO 7816 Application IDs (AIDs) in the same category uniformly.

int centerBright

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

int centerColor

Optional center color.

int centerDark

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

int centerMedium

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

int centerX

X-position of the center point of the gradient within the shape as a fraction of the width.

int centerY

Y-position of the center point of the gradient within the shape as a fraction of the height.

int certDigest

Optional SHA-256 digest of the package signing certificate.

int checkBoxPreferenceStyle

Default style for CheckBoxPreference.

int checkMark

Drawable used for the check mark graphic.

int checkMarkTint

Tint to apply to the check mark.

int checkMarkTintMode

Blending mode used to apply the check mark tint.

int checkable

Whether the item is capable of displaying a check mark.

int checkableBehavior

Whether the items are capable of displaying a check mark.

int checkboxStyle

Default Checkbox style.

int checked

Indicates the initial checked state of this button.

int checkedButton

The id of the child radio button that should be checked by default within this radio group.

int checkedTextViewStyle

Default CheckedTextView style.

int childDivider

Drawable or color that is used as a divider for children.

int childIndicator

Indicator shown beside the child View.

int childIndicatorEnd

The end bound for a child's indicator.

int childIndicatorLeft

The left bound for a child's indicator.

int childIndicatorRight

The right bound for a child's indicator.

int childIndicatorStart

The start bound for a child's indicator.

int choiceMode

Defines the choice behavior for the view.

int classLoader

The classname of the classloader used to load the application's classes from its APK.

int clearTaskOnLaunch

Specify whether an activity's task should be cleared when it is re-launched from the home screen.

int clickable

Defines whether this view reacts to click events.

int clipChildren

Defines whether a child is limited to draw inside of its bounds or not.

int clipOrientation

The orientation for the clip.

int clipToOutline

Whether the View's Outline should be used to clip the contents of the View.

int clipToPadding

Defines whether the ViewGroup will clip its children and resize (but not clip) any EdgeEffect to its padding, if padding is not zero.

int closeIcon

Close button icon.

int codes

This constant was deprecated in API level 29. Copy this definition into your own application project.

int collapseColumns

The zero-based index of the columns to collapse.

int collapseContentDescription

Text to set as the content description for the collapse button.

int collapseIcon

Icon drawable to use for the collapse button.

int color

Solid color for the gradient shape.

int colorAccent

Bright complement to the primary branding color.

int colorActivatedHighlight

Default highlight color for items that are activated.

int colorBackground

Default color of background imagery, ex.

int colorBackgroundCacheHint

This is a hint for a solid color that can be used for caching rendered views.

int colorBackgroundFloating

Default color of background imagery for floating components, ex.

int colorButtonNormal

The color applied to framework buttons in their normal state.

int colorControlActivated

The color applied to framework controls in their activated (ex.

int colorControlHighlight

The color applied to framework control highlights (ex.

int colorControlNormal

The color applied to framework controls in their normal state.

int colorEdgeEffect

The color applied to the edge effect on scrolling containers.

int colorError

Color used for error states and things that need to be drawn to the users attention..

int colorFocusedHighlight

Default highlight color for items that are focused.

int colorForeground

Default color of foreground imagery.

int colorForegroundInverse

Default color of foreground imagery on an inverted background.

int colorLongPressedHighlight

Default highlight color for items that are long-pressed.

int colorMode

Specify the color mode the activity desires.

int colorMultiSelectHighlight

Default highlight color for items in multiple selection mode.

int colorPressedHighlight

Default highlight color for items that are pressed.

int colorPrimary

The primary branding color for the app.

int colorPrimaryDark

Dark variant of the primary branding color.

int colorSecondary

The secondary branding color for the app.

int columnCount

The maximum number of columns to create when automatically positioning children.

int columnDelay

Fraction of the animation duration used to delay the beginning of the animation of each column.

int columnOrderPreserved

When set to true, forces column boundaries to appear in the same order as column indices.

int columnWidth

Specifies the fixed width for each column.

int commitIcon

Commit icon shown in the query suggestion row.

int compatibleWidthLimitDp

Starting with Build.VERSION_CODES.HONEYCOMB_MR2, this is the new way to specify the largest screens an application is compatible with.

int completionHint

Defines the hint displayed in the drop down menu.

int completionHintView

Defines the hint view displayed in the drop down menu.

int completionThreshold

Defines the number of characters that the user must type before completion suggestions are displayed in a drop down menu.

int configChanges

Specify one or more configuration changes that the activity will handle itself.

int configure

A class name in the AppWidget's package to be launched to configure.

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.

int content

Identifier for the child that represents the drawer's content.

int contentAgeHint

The age associated with the content rating.

int contentAuthority

the authority of a content provider.

int contentDescription

The content description associated with the item.

int contentInsetEnd

Minimum inset for content views within a bar.

int contentInsetEndWithActions

Minimum inset for content views within a bar when actions from a menu are present.

int contentInsetLeft

Minimum inset for content views within a bar.

int contentInsetRight

Minimum inset for content views within a bar.

int contentInsetStart

Minimum inset for content views within a bar.

int contentInsetStartWithNavigation

Minimum inset for content views within a bar when a navigation button is present, such as the Up button.

int contentSensitivity

Must be one of the following constant values.

int contextClickable

Defines whether this view reacts to context click events.

int contextDescription

Title of the uri that specifies a link for further context of this wallpaper, for example, Explore collection.

int contextPopupMenuStyle

Default context menu PopupMenu style.

int contextUri

Uri that specifies a link for further context of this wallpaper, for example, http://www.picasso.org.

int controlX1

The x coordinate of the first control point of the cubic Bezier.

int controlX2

The x coordinate of the second control point of the cubic Bezier.

int controlY1

The y coordinate of the first control point of the cubic Bezier.

int controlY2

The y coordinate of the second control point of the cubic Bezier.

int countDown

Specifies whether this Chronometer counts down or counts up from the base.

int country

The country code associated with the content rating system, which consists of two uppercase letters that conform to the ISO 3166 standard.

int cropToPadding

If true, the image will be cropped to fit within its padding.

int crossProfile

If true indicates that this application is capable of presenting a unified interface representing multiple profiles.

int cursorVisible

Makes the cursor visible (the default) or invisible.

int customNavigationLayout

Specifies a layout for custom navigation.

int customTokens

Account handles its own token storage and permissions.

int cycles

May be a floating point value, such as "1.2".

int dashGap

Gap between dashes in the stroke.

int dashWidth

Length of a dash in the stroke.

int data

The data URI to assign to the Intent, as per Intent.setData().

int dataExtractionRules

Applications can set this attribute to an xml resource within their app where they specified the rules determining which files and directories can be copied from the device as part of backup or transfer operations.

int datePickerDialogTheme

The DatePicker dialog theme.

int datePickerMode

Defines the look of the widget.

int datePickerStyle

The DatePicker style.

int dateTextAppearance

The text appearance for the day numbers in the calendar grid.

int dayOfWeekBackground

This constant was deprecated in API level 23. No longer displayed.

int dayOfWeekTextAppearance

This constant was deprecated in API level 23. No longer displayed.

int debuggable

Flag indicating whether the application can be debugged, even when running on a device that is running in user mode.

int defaultFocusHighlightEnabled

Whether this View should use a default focus highlight when it gets focused but doesn't have state_focused defined in its background.

int defaultHeight

Default height of the activity.

int defaultLocale

The IETF BCP47 language tag the strings in values/strings.xml (the default strings in the directory with no locale qualifier) are in.

int defaultToDeviceProtectedStorage

May be a boolean value, such as "true" or "false".

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.

int defaultWidth

Default width of the activity.

int delay

Fraction of the animation duration used to delay the beginning of the animation of each child.

int dependency

The key of another Preference that this Preference will depend on.

int descendantFocusability

Defines the relationship between the ViewGroup and its descendants when looking for a View to take focus.

int description

Descriptive text for the associated data.

int detachWallpaper

Special option for window animations: if this window is on top of a wallpaper, don't animate the wallpaper with it.

int detailColumn

Column in data table that contains details for this data.

int detailSocialSummary

Flag indicating that detail should be built from SocialProvider.

int detailsElementBackground

Background that can be used behind parts of a UI that provide details on data the user is selecting.

int dial

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

int dialTint

Tint to apply to the dial graphic.

int dialTintMode

Blending mode used to apply the dial graphic tint.

int dialogCornerRadius

Corner radius of dialogs.

int dialogIcon

The icon for the dialog.

int dialogLayout

A layout to be used as the content View for the dialog.

int dialogMessage

The message in the dialog.

int dialogPreferenceStyle

Default style for DialogPreference.

int dialogPreferredPadding

Preferred padding for dialog content.

int dialogTheme

Theme to use for dialogs spawned from this theme.

int dialogTitle

The title in the dialog.

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.

int directBootAware

Indicate if this component is aware of direct boot lifecycle, and can be safely run before the user has entered their credentials (such as a lock pattern or PIN).

int direction

Direction of the animation in the grid.

int directionDescriptions

This constant was deprecated in API level 23. Removed. Reference to an array resource that be used to announce the directions with targets around the circle.

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

int directionPriority

Priority of the rows and columns.

int disableDependentsState

The state (true for on, or false for off) that causes dependents to be disabled.

int disabledAlpha

Default disabled alpha for widgets that set enabled/disabled alpha programmatically.

int displayOptions

Options affecting how the action bar is displayed.

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

int divider

Drawable or color to draw between list items.

int dividerHeight

Height of the divider.

int dividerHorizontal

Drawable to use for generic horizontal dividers.

int dividerPadding

Size of padding on either end of a divider.

int dividerVertical

Drawable to use for generic vertical dividers.

int documentLaunchMode

This attribute specifies that an activity shall become the root activity of a new task each time it is launched.

int drawSelectorOnTop

When set to true, the selector will be drawn over the selected item.

int drawable

Reference to a drawable resource to use for the frame.

int drawableBottom

The drawable to be drawn below the text.

int drawableEnd

The drawable to be drawn to the end of the text.

int drawableLeft

The drawable to be drawn to the left of the text.

int drawablePadding

The padding between the drawables and the text.

int drawableRight

The drawable to be drawn to the right of the text.

int drawableStart

The drawable to be drawn to the start of the text.

int drawableTint

Tint to apply to the compound (left, top, etc.) drawables.

int drawableTintMode

Blending mode used to apply the compound (left, top, etc.) drawables tint.

int drawableTop

The drawable to be drawn above the text.

int drawingCacheQuality

Defines the quality of translucent drawing caches.

int dropDownAnchor

View to anchor the auto-complete dropdown to.

int dropDownHeight

Specifies the basic height of the dropdown.

int dropDownHintAppearance

Default style for drop down hints.

int dropDownHorizontalOffset

Amount of pixels by which the drop down should be offset horizontally.

int dropDownItemStyle

Default style for drop down items.

int dropDownListViewStyle

Default ListView style for drop downs.

int dropDownSelector

Selector in a drop down list.

int dropDownSpinnerStyle

Default dropdown Spinner style.

int dropDownVerticalOffset

Amount of pixels by which the drop down should be offset vertically.

int dropDownWidth

Specifies the basic width of the dropdown.

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.

int duration

Amount of time (in milliseconds) to display this frame.

int editTextBackground

EditText background drawable.

int editTextColor

EditText text foreground color.

int editTextPreferenceStyle

Default style for EditTextPreference.

int editTextStyle

Default EditText style.

int editable

This constant was deprecated in API level 15. Use inputType instead.

int editorExtras

Reference to an <input-extras> XML resource containing additional data to supply to an input method, which is private to the implementation of the input method.

int effectColor

Color applied to effects.

int elegantTextHeight

Elegant text height, especially for less compacted complex script text.

int elevation

base z depth of the view.

int ellipsize

Where to ellipsize text.

int ems

Makes the TextView be exactly this many ems wide.

int enableOnBackInvokedCallback

If false, KEYCODE_BACK and Activity.onBackPressed() and related event will be forwarded to the Activity and its views.

int enableTextStylingShortcuts

Enables styling shortcuts, e.g. Ctrl+B for bold.

int enableVrMode

Flag declaring that this activity will be run in VR mode, and specifying the component of the VrListenerService that should be bound while this Activity is visible if it is installed and enabled on this device.

int enabled

Specifies whether the widget is enabled.

int end

End inset to apply to the layer.

int endColor

End color of the gradient.

int endX

X coordinate of the end point origin of the gradient.

int endY

Y coordinate of the end point of the gradient within the shape.

int endYear

This constant was deprecated in API level 16. Use maxDate instead.Use maxDate instead.

int enforceNavigationBarContrast

Sets whether the system should ensure that the navigation bar has enough contrast when a fully transparent background is requested.

int enforceStatusBarContrast

This constant was deprecated in API level 35. Draw proper background behind WindowInsets.Type.statusBars()} instead.

May be a boolean value, such as "true" or "false".

int enterFadeDuration

Amount of time (in milliseconds) to fade in a new state drawable.

int entries

Reference to an array resource that will populate a list/adapter.

int entryValues

The array to find the value to save for a preference when an entry from entries is selected.

int eventsInterceptionEnabled

Defines whether the overlay should intercept the motion events when a gesture is recognized.

int excludeClass

The fully-qualified name of the Class to exclude from this transition.

int excludeFromRecents

Indicates that an Activity should be excluded from the list of recently launched activities.

int excludeId

The id of a target to exclude from this transition.

int excludeName

The transitionName of the target to exclude from this transition.

int exitFadeDuration

Amount of time (in milliseconds) to fade out an old state drawable.

int expandableListPreferredChildIndicatorLeft

The preferred left bound for an expandable list child's indicator.

int expandableListPreferredChildIndicatorRight

The preferred right bound for an expandable list child's indicator.

int expandableListPreferredChildPaddingLeft

The preferred left padding for an expandable list item that is a child.

int expandableListPreferredItemIndicatorLeft

The preferred left bound for an expandable list item's indicator.

int expandableListPreferredItemIndicatorRight

The preferred right bound for an expandable list item's indicator.

int expandableListPreferredItemPaddingLeft

The preferred left padding for an expandable list item (for child-specific layouts, use expandableListPreferredChildPaddingLeft).

int expandableListViewStyle

Default ExpandableListView style.

int expandableListViewWhiteStyle

ExpandableListView with white background.

int exported

Flag indicating whether the given application component is available to other applications.

int externalService

If the service is an isolatedProcess service, this permits a client to bind to the service as if it were running it its own package.

int extraTension

This is the amount by which to multiply the tension.

int extractNativeLibs

When set installer will extract native libraries.

int factor

This is the amount of deceleration to add when easing in.

int fadeDuration

Duration, in milliseconds, of the fade out effect after the user is done drawing a gesture.

int fadeEnabled

Defines whether the gesture will automatically fade out after being recognized.

int fadeOffset

Time, in milliseconds, to wait before the gesture fades out after the user is done drawing it.

int fadeScrollbars

Defines whether to fade out scrollbars when they are not in use.

int fadingEdge

This attribute is ignored in API level 14 (Build.VERSION_CODES.ICE_CREAM_SANDWICH) and higher.

int fadingEdgeLength

Defines the length of the fading edges.

int fadingMode

Equivalent to transitionVisibilityMode, fadingMode works only with the Fade transition.

int fallbackLineSpacing

Whether to respect the ascent and descent of the fallback fonts that are used in displaying the text.

int fastScrollAlwaysVisible

When set to true, the list will always show the fast scroll interface.

int fastScrollEnabled

Enables the fast scroll thumb that can be dragged to quickly scroll through the list.

int fastScrollOverlayPosition

Position of the fast scroll index overlay window.

int fastScrollPreviewBackgroundLeft

Drawable to use as the fast scroll index preview window background when shown on the left.

int fastScrollPreviewBackgroundRight

Drawable to use as the fast scroll index preview window background when shown on the right.

int fastScrollStyle

Specifies the style of the fast scroll decorations.

int fastScrollTextColor

Text color for the fast scroll index overlay.

int fastScrollThumbDrawable

Drawable to use as the fast scroll thumb.

int fastScrollTrackDrawable

Drawable to use as the track for the fast scroll thumb.

int fillAfter

When set to true, the animation transformation is applied after the animation is over.

int fillAlpha

The alpha of the path fill, as a value between 0 (completely transparent) and 1 (completely opaque).

int fillBefore

When set to true or when fillEnabled is not set to true, the animation transformation is applied before the animation has started.

int fillColor

The color to fill the path if not defined implies no fill.

int fillEnabled

When set to true, the value of fillBefore is taken into account.

int fillType

sets the fillType for a path.

int fillViewport

Defines whether the scrollview should stretch its content to fill the viewport.

int filter

Enables or disables bitmap filtering.

int filterTouchesWhenObscured

Specifies whether to filter touches when the view's window is obscured by another visible window.

int fingerprintAuthDrawable

Icon that should be used to indicate that an app is waiting for a fingerprint scan.

int finishOnCloseSystemDialogs

Specify whether an activity should be finished when a "close system windows" request has been made.

int finishOnTaskLaunch

Specify whether an activity should be finished when its task is brought to the foreground by relaunching from the home screen.

int firstBaselineToTopHeight

Distance from the top of the TextView to the first text baseline.

int firstDayOfWeek

The first day of week according to Calendar.

int fitsSystemWindows

Boolean internal attribute to adjust view layout based on system windows such as the status bar.

int flipInterval

May be an integer value, such as "100".

int focusable

Controls whether a view can take focus.

int focusableInTouchMode

Boolean that controls whether a view can take focus while in touch mode.

int focusedByDefault

Whether this view is a default-focus view.

int focusedMonthDateColor

This constant was deprecated in API level 23. The color for the dates of the focused month.

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

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

int focusedSearchResultHighlightColor

Color of focused search result highlight.

int font

The reference to the font file to be used.

int fontFamily

Default font family.

int fontFeatureSettings

Font feature settings.

int fontProviderAuthority

This constant was deprecated in API level 31. Use app:fontProviderAuthority with Jetpack Core library instead for consistent behavior across all devices.

int fontProviderCerts

This constant was deprecated in API level 31. Use app:fontProviderCerts with Jetpack Core library instead.

int fontProviderPackage

This constant was deprecated in API level 31. Use app:fontProviderPackage with Jetpack Core library instead.

int fontProviderQuery

This constant was deprecated in API level 31. Use app:fontProviderQuery with Jetpack Core library instead.

int fontProviderSystemFontFamily

Provides the system font family name to check before downloading the font.

int fontStyle

The style of the given font file.

int fontVariationSettings

The variation settings to be applied to the font.

int fontWeight

The weight of the given font file.

int footerDividersEnabled

When set to false, the ListView will not draw the divider before each footer view.

int forceDarkAllowed

Whether or not the force dark feature is allowed to be applied to this View.

int forceHasOverlappingRendering

Whether this view has elements that may overlap when drawn.

int forceQueryable

May be a boolean value, such as "true" or "false".

int forceUriPermissions

If true, the system will always create URI permission grants in the cases where Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION would apply.

int foreground

Defines the drawable to draw over the content.

int foregroundGravity

Defines the gravity to apply to the foreground drawable.

int foregroundServiceType

Specify the type of foreground service.

int foregroundTint

Tint to apply to the foreground.

int foregroundTintMode

Blending mode used to apply the foreground tint.

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.

int format12Hour

Specifies the formatting pattern used to show the time and/or date in 12-hour mode.

int format24Hour

Specifies the formatting pattern used to show the time and/or date in 24-hour mode.

int fraction

May be a floating point value, such as "1.2".

int fragment

The fragment that is displayed when the user selects this item.

int fragmentAdvancedPattern

Specify a URI fragment that matches an advanced pattern, as a UriRelativeFilter with PatternMatcher.PATTERN_ADVANCED_GLOB.

int fragmentAllowEnterTransitionOverlap

Sets whether the enter and exit transitions should overlap when transitioning forward.

int fragmentAllowReturnTransitionOverlap

Sets whether the enter and exit transitions should overlap when transitioning because of popping the back stack.

int fragmentCloseEnterAnimation

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

int fragmentCloseExitAnimation

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

int fragmentEnterTransition

The Transition that will be used to move Views into the initial scene.

int fragmentExitTransition

The Transition that will be used to move Views out of the scene when the fragment is removed, hidden, or detached when not popping the back stack.

int fragmentFadeEnterAnimation

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

int fragmentFadeExitAnimation

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

int fragmentOpenEnterAnimation

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

int fragmentOpenExitAnimation

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

int fragmentPattern

Specify a URI fragment that matches a simple pattern, as a UriRelativeFilter with PatternMatcher.PATTERN_SIMPLE_GLOB.

int fragmentPrefix

Specify a URI fragment that must be a prefix to match, as a UriRelativeFilter with PatternMatcher.PATTERN_PREFIX.

int fragmentReenterTransition

The Transition that will be used to move Views in to the scene when returning due to popping a back stack.

int fragmentReturnTransition

The Transition that will be used to move Views out of the scene when the Fragment is preparing to be removed, hidden, or detached because of popping the back stack.

int fragmentSharedElementEnterTransition

The Transition that will be used for shared elements transferred into the content Scene.

int fragmentSharedElementReturnTransition

The Transition that will be used for shared elements transferred back during a pop of the back stack.

int fragmentSuffix

Specify a URI fragment that must be a suffix to match, as a UriRelativeFilter with PatternMatcher.PATTERN_SUFFIX.

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.

int fromAlpha

May be a floating point value, such as "1.2".

int fromDegrees

May be a floating point value, such as "1.2".

int fromExtendBottom

Defines the amount a window should be extended outward from the bottom at the start of the animation in an absolute dimension (interpreted as pixels if no dimension unit is provided) or as a percentage of the animation target's height.

int fromExtendLeft

Defines the amount a window should be extended outward from the left at the start of the animation in an absolute dimension (interpreted as pixels if no dimension unit is provided) or as a percentage of the animation target's width.

int fromExtendRight

Defines the amount a window should be extended outward from the right at the start of the animation in an absolute dimension (interpreted as pixels if no dimension unit is provided) or as a percentage of the animation target's width.

int fromExtendTop

Defines the amount a window should be extended outward from the top at the start of the animation in an absolute dimension (interpreted as pixels if no dimension unit is provided) or as a percentage of the animation target's height.

int fromId

Keyframe identifier for the starting state.

int fromScene

The originating scene in this scene change.

int fromXDelta

May be a floating point value, such as "1.2".

int fromXScale

May be a floating point value, such as "1.2".

int fromYDelta

May be a floating point value, such as "1.2".

int fromYScale

May be a floating point value, such as "1.2".

int fullBackupContent

Applications will set this in their manifest to opt-in to or out of full app data back-up and restore.

int fullBackupOnly

Indicates that even though the application provides a BackupAgent, only full-data streaming backup operations are to be performed to save the app's data.

int fullBright

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

int fullDark

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

int functionalTest

Flag indicating that an Instrumentation class should be run as a functional test.

int galleryItemBackground

The preferred background for gallery items.

int galleryStyle

Default Gallery style.

int gestureColor

Color used to draw a gesture.

int gestureStrokeAngleThreshold

Minimum curve angle a stroke must contain before it is recognized as a gesture.

int gestureStrokeLengthThreshold

Minimum length of a stroke before it is recognized as a gesture.

int gestureStrokeSquarenessThreshold

Squareness threshold of a stroke before it is recognized as a gesture.

int gestureStrokeType

Defines the type of strokes that define a gesture.

int gestureStrokeWidth

Width of the stroke used to draw the gesture.

int glEsVersion

The GLES driver version number needed by an application.

int goIcon

Go button icon.

int gradientRadius

Radius of the gradient, used only with radial gradient.

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.

int gravity

Specifies how an object should position its content, on both the X and Y axes, within its own bounds.

int gridViewStyle

Default GridView style.

int groupIndicator

Indicator shown beside the group View.

int gwpAsanMode

Enable sampled memory bug detection in this process.

int hand_hour

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

int hand_hourTint

Tint to apply to the hour hand graphic.

int hand_hourTintMode

Blending mode used to apply the hour hand graphic tint.

int hand_minute

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

int hand_minuteTint

Tint to apply to the minute hand graphic.

int hand_minuteTintMode

Blending mode used to apply the minute hand graphic tint.

int hand_second

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

int hand_secondTint

Tint to apply to the second hand graphic.

int hand_secondTintMode

Blending mode used to apply the second hand graphic tint.

int handle

Identifier for the child that represents the drawer's handle.

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.

int handwritingBoundsOffsetBottom

The amount of offset that is applied to the bottom edge of the view's stylus handwriting bounds, which by default is the view's visible bounds.

int handwritingBoundsOffsetLeft

The amount of offset that is applied to the left edge of the view's stylus handwriting bounds, which by default is the view's visible bounds.

int handwritingBoundsOffsetRight

The amount of offset that is applied to the right edge of the view's stylus handwriting bounds, which by default is the view's visible bounds.

int handwritingBoundsOffsetTop

The amount of offset that is applied to the top edge of the view's stylus handwriting bounds, which by default is the view's visible bounds.

int hapticFeedbackEnabled

Boolean that controls whether a view should have haptic feedback enabled for events such as long presses.

int hardwareAccelerated

Flag indicating whether the application's rendering should be hardware accelerated if possible.

int hasCode

Indicate whether this application contains code.

int hasFragileUserData

If true the user is prompted to keep the app's data on uninstall

May be a boolean value, such as "true" or "false".

int headerAmPmTextAppearance

This constant was deprecated in API level 23. Use headerTextColor instead.

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

int headerBackground

Default background for the menu header.

int headerDayOfMonthTextAppearance

This constant was deprecated in API level 23. Use headerTextColor instead.

int headerDividersEnabled

When set to false, the ListView will not draw the divider after each header view.

int headerMonthTextAppearance

This constant was deprecated in API level 23. Use headerTextColor instead.

int headerTimeTextAppearance

This constant was deprecated in API level 23. Use headerTextColor instead.

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

int headerYearTextAppearance

This constant was deprecated in API level 23. Use headerTextColor instead.

int height

Makes the TextView be exactly this tall.

int hideOnContentScroll

Set true to hide the action bar on a vertical nested scroll of content.

int hint

Hint text to display when the text is empty.

int homeAsUpIndicator

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

int homeLayout

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

int horizontalDivider

Default horizontal divider between rows of menu items.

int horizontalGap

This constant was deprecated in API level 29. Copy this definition into your own application project.

int horizontalScrollViewStyle

Default HorizontalScrollView style.

int horizontalSpacing

Defines the default horizontal spacing between columns.

int host

Specify a URI authority host that is handled, as per IntentFilter.addDataAuthority().

int hotSpotX

X coordinate of the icon hot spot.

int hotSpotY

Y coordinate of the icon hot spot.

int htmlDescription

Html description of the target of accessibility shortcut usage, availability, or limitations (e.g. isn't supported by all apps).

int hyphenationFrequency

Frequency of automatic hyphenation.

int icon

A Drawable resource providing a graphical representation of its associated item.

int iconPreview

This constant was deprecated in API level 29. Copy this definition into your own application project.

int iconSpaceReserved

Whether the space for the preference icon view will be reserved.

int iconTint

Tint to apply to the icon.

int iconTintMode

Blending mode used to apply the icon tint.

int iconifiedByDefault

The default state of the SearchView.

int id

Supply an identifier name for this view, to later retrieve it with View.findViewById() or Activity.findViewById().

int identifier

The identifier to assign to the intent, as per Intent.setIdentifier().

int ignoreGravity

Indicates what view should not be affected by gravity.

int imageButtonStyle

The style resource to use for an ImageButton.

int imageWellStyle

The style resource to use for an ImageButton that is an image well.

int imeActionId

Supply a value for EditorInfo.actionId used when an input method is connected to the text view.

int imeActionLabel

Supply a value for EditorInfo.actionLabel used when an input method is connected to the text view.

int imeExtractEnterAnimation

Animation to use when showing the fullscreen extract UI after it had previously been hidden.

int imeExtractExitAnimation

Animation to use when hiding the fullscreen extract UI after it had previously been shown.

int imeFullscreenBackground

Background to use for entire input method when it is being shown in fullscreen mode with the extract view, to ensure that it completely covers the application.

int imeOptions

Additional features you can enable in an IME associated with an editor to improve the integration with your application.

int imeSubtypeExtraValue

The extra value of the subtype.

int imeSubtypeLocale

The locale of the subtype.

int imeSubtypeMode

The mode of the subtype.

int immersive

Flag declaring this activity to be 'immersive'; immersive activities should not be interrupted with other activities or notifications.

int importantForAccessibility

Describes whether or not this view is important for accessibility.

int importantForAutofill

Hints the Android System whether the view node associated with this View should be included in a view structure used for autofill purposes.

int importantForContentCapture

Hints the Android System whether the view node associated with this View should be use for content capture purposes.

int inAnimation

Identifier for the animation to use when a view is shown.

int includeFontPadding

Leave enough room for ascenders and descenders instead of using the font ascent and descent strictly.

int includeInGlobalSearch

If provided and true, this searchable activity will be included in any global lists of search targets.

int indeterminate

Allows to enable the indeterminate mode.

int indeterminateBehavior

Defines how the indeterminate mode should behave when the progress reaches max.

int indeterminateDrawable

Drawable used for the indeterminate mode.

int indeterminateDuration

Duration of the indeterminate animation.

int indeterminateOnly

Restricts to ONLY indeterminate mode (state-keeping progress mode will not work).

int indeterminateProgressStyle

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

int indeterminateTint

Tint to apply to the indeterminate progress indicator.

int indeterminateTintMode

Blending mode used to apply the indeterminate progress indicator tint.

int indicatorEnd

The end bound for an item's indicator.

int indicatorLeft

The left bound for an item's indicator.

int indicatorRight

The right bound for an item's indicator.

int indicatorStart

The start bound for an item's indicator.

int inflatedId

Overrides the id of the inflated View with this value.

int inheritShowWhenLocked

Specifies whether this Activity should be shown on top of the lock screen whenever the lockscreen is up and this activity has another activity behind it with the showWhenLocked attribute set.

int initOrder

Specify the order in which content providers hosted by a process are instantiated when that process is created.

int initialKeyguardLayout

A resource id of a layout.

int initialLayout

A resource id of a layout.

int innerRadius

Inner radius of the ring.

int innerRadiusRatio

Inner radius of the ring expressed as a ratio of the ring's width.

int inputMethod

This constant was deprecated in API level 15. Use inputType instead.

int inputType

The type of data being placed in a text field, used to help an input method decide how to let the user enter text.

int inset

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

int insetBottom

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

int insetLeft

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

int insetRight

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

int insetTop

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

int installLocation

The default install location defined by an application.

int interactiveUiTimeout

A recommended timeout in milliseconds used in android.view.accessibility.AccessibilityManager.getRecommendedTimeoutMillis(int, int) to return a suitable value for interactive controls.

int interpolator

Sets the acceleration curve for the indeterminate animation.

int intro

Detailed intro of the target of accessibility shortcut purpose or behavior.

int isAccessibilityTool

Attribute indicating whether the accessibility service is used to assist users with disabilities.

int isAlwaysSyncable

Set to true to tell the SyncManager to automatically call setIsSyncable(..., ..., 1) for the SyncAdapter instead of issuaing an initialization sync to the SyncAdapter.

int isAsciiCapable

Set to true if this subtype is ASCII capable.

int isAuxiliary

Set true if the subtype is auxiliary.

int isCredential

Boolean that hints the Android System that the view is credential and associated with CredentialManager

May be a boolean value, such as "true" or "false".

int isDefault

Set to true in all of the configurations for which this input method should be considered an option as the default.

int isFeatureSplit

If set to true, indicates to the platform that this APK is a 'feature' split and that it implicitly depends on the base APK.

int isGame

A boolean flag used to indicate if an application is a Game or not.

int isIndicator

Whether this rating bar is an indicator (and non-changeable by the user).

int isLightTheme

Specifies that a theme has a light background with dark text on top.

int isModifier

This constant was deprecated in API level 29. Copy this definition into your own application project.

int isRepeatable

This constant was deprecated in API level 29. Copy this definition into your own application project.

int isScrollContainer

Set this if the view will serve as a scrolling container, meaning that it can be resized to shrink its overall window so that there will be space for an input method.

int isSplitRequired

This constant was deprecated in API level 33. Use requiredSplitTypes instead.Use requiredSplitTypes instead.

May be a boolean value, such as "true" or "false".

int isStatic

Whether the given RRO is static or not.

int isSticky

This constant was deprecated in API level 29. Copy this definition into your own application project.

int isolatedProcess

If set to true, this service will run under a special process that is isolated from the rest of the system.

int isolatedSplits

If set to true, indicates to the platform that any split APKs installed for this application should be loaded into their own Context objects and not appear in the base application's Context.

int itemBackground

Default background for each menu item.

int itemIconDisabledAlpha

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

int itemPadding

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

int itemTextAppearance

Default appearance of menu item text.

int justificationMode

Mode for justification.

int keepScreenOn

Controls whether the view's window should keep the screen on while visible.

int key

The key to store the Preference value.

int keyBackground

This constant was deprecated in API level 29. Copy this definition into your own application project.

int keyEdgeFlags

This constant was deprecated in API level 29. Copy this definition into your own application project.Copy this definition into your own application project.Copy this definition into your own application project.

int keyHeight

This constant was deprecated in API level 29. Copy this definition into your own application project.

int keyIcon

This constant was deprecated in API level 29. Copy this definition into your own application project.

int keyLabel

This constant was deprecated in API level 29. Copy this definition into your own application project.

int keyOutputText

This constant was deprecated in API level 29. Copy this definition into your own application project.

int keyPreviewHeight

This constant was deprecated in API level 29. Copy this definition into your own application project.

int keyPreviewLayout

This constant was deprecated in API level 29. Copy this definition into your own application project.

int keyPreviewOffset

This constant was deprecated in API level 29. Copy this definition into your own application project.

int keySet

Groups signing keys into a KeySet for easier reference in other APIs.

int keyTextColor

This constant was deprecated in API level 29. Copy this definition into your own application project.

int keyTextSize

This constant was deprecated in API level 29. Copy this definition into your own application project.

int keyWidth

This constant was deprecated in API level 29. Copy this definition into your own application project.

int keyboardLayout

The key character map file resource.

int keyboardLayoutType

The layout type of the given keyboardLayout.

int keyboardLocale

The locales the given keyboard layout corresponds to.

int keyboardMode

This constant was deprecated in API level 29. Copy this definition into your own application project.

int keyboardNavigationCluster

Whether this view is a root of a keyboard navigation cluster.

int keycode

This enum provides the same keycode values as can be found in KeyEvent.

int killAfterRestore

Whether the application in question should be terminated after its settings have been restored during a full-system restore operation.

int knownActivityEmbeddingCerts

A reference to an array resource containing the signing certificate digests, one of which a client is required to be signed with in order to embed the activity.

int knownCerts

A reference to an array resource containing the signing certificate digests to be granted this permission when using the knownSigner protection flag.

int lStar

Perceptual luminance of a color, in accessibility friendly color space.

int label

A user-legible name for the given item.

int labelFor

Specifies the id of a view for which this view serves as a label for accessibility purposes.

int labelTextSize

This constant was deprecated in API level 29. Copy this definition into your own application project.

int languageTag

The BCP-47 Language Tag of the subtype.

int largeHeap

Request that your application's processes be created with a large Dalvik heap.

int largeScreens

Indicates whether the application supports larger screen form-factors.

int largestWidthLimitDp

Starting with Build.VERSION_CODES.HONEYCOMB_MR2, this is the new way to specify the screens an application is compatible with.

int lastBaselineToBottomHeight

Distance from the bottom of the TextView to the last text baseline.

int launchMode

Specify how an activity should be launched.

int launchTaskBehindSourceAnimation

When opening an activity in a new task using Intent.FLAG_ACTIVITY_LAUNCH_BEHIND, this is the animation that is run on the activity of the old task (which is already on the screen and then stays on).

int launchTaskBehindTargetAnimation

When opening an activity in a new task using Intent/FLAG_ACTIVITY_LAUNCH_BEHIND, this is the animation that is run on the activity of the new task (which is entering the screen and then leaving).

int layerType

Specifies the type of layer backing this view.

int layout

Supply an identifier for the layout resource to inflate when the ViewStub becomes visible or when forced to do so.

int layoutAnimation

Defines the layout animation to use the first time the ViewGroup is laid out.

int layoutDirection

Defines the direction of layout drawing.

int layoutMode

Defines the layout mode of this ViewGroup.

int layout_above

Positions the bottom edge of this view above the given anchor view ID.

int layout_alignBaseline

Positions the baseline of this view on the baseline of the given anchor view ID.

int layout_alignBottom

Makes the bottom edge of this view match the bottom edge of the given anchor view ID.

int layout_alignEnd

Makes the end edge of this view match the end edge of the given anchor view ID.

int layout_alignLeft

Makes the left edge of this view match the left edge of the given anchor view ID.

int layout_alignParentBottom

If true, makes the bottom edge of this view match the bottom edge of the parent.

int layout_alignParentEnd

If true, makes the end edge of this view match the end edge of the parent.

int layout_alignParentLeft

If true, makes the left edge of this view match the left edge of the parent.

int layout_alignParentRight

If true, makes the right edge of this view match the right edge of the parent.

int layout_alignParentStart

If true, makes the start edge of this view match the start edge of the parent.

int layout_alignParentTop

If true, makes the top edge of this view match the top edge of the parent.

int layout_alignRight

Makes the right edge of this view match the right edge of the given anchor view ID.

int layout_alignStart

Makes the start edge of this view match the start edge of the given anchor view ID.

int layout_alignTop

Makes the top edge of this view match the top edge of the given anchor view ID.

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.

int layout_below

Positions the top edge of this view below the given anchor view ID.

int layout_centerHorizontal

If true, centers this child horizontally within its parent.

int layout_centerInParent

If true, centers this child horizontally and vertically within its parent.

int layout_centerVertical

If true, centers this child vertically within its parent.

int layout_column

The index of the column in which this child should be.

int layout_columnSpan

The column span: the difference between the right and left boundaries delimiting the group of cells occupied by this view.

int layout_columnWeight

The relative proportion of horizontal space that should be allocated to this view during excess space distribution.

int layout_gravity

Standard gravity constant that a child supplies to its parent.

int layout_height

Specifies the basic height of the view.

int layout_margin

Specifies extra space on the left, top, right and bottom sides of this view.

int layout_marginBottom

Specifies extra space on the bottom side of this view.

int layout_marginEnd

Specifies extra space on the end side of this view.

int layout_marginHorizontal

Specifies extra space on the left and right sides of this view.

int layout_marginLeft

Specifies extra space on the left side of this view.

int layout_marginRight

Specifies extra space on the right side of this view.

int layout_marginStart

Specifies extra space on the start side of this view.

int layout_marginTop

Specifies extra space on the top side of this view.

int layout_marginVertical

Specifies extra space on the top and bottom sides of this view.

int layout_row

The row boundary delimiting the top of the group of cells occupied by this view.

int layout_rowSpan

The row span: the difference between the top and bottom boundaries delimiting the group of cells occupied by this view.

int layout_rowWeight

The relative proportion of vertical space that should be allocated to this view during excess space distribution.

int layout_scale

May be a floating point value, such as "1.2".

int layout_span

Defines how many columns this child should span.

int layout_toEndOf

Positions the start edge of this view to the end of the given anchor view ID.

int layout_toLeftOf

Positions the right edge of this view to the left of the given anchor view ID.

int layout_toRightOf

Positions the left edge of this view to the right of the given anchor view ID.

int layout_toStartOf

Positions the end edge of this view to the start of the given anchor view ID.

int layout_weight

Indicates how much of the extra space in the LinearLayout is allocated to the view associated with these LayoutParams.

int layout_width

Specifies the basic width of the view.

int layout_x

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

int layout_y

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

int left

Amount of left padding inside the gradient shape.

int letterSpacing

Text letter-spacing.

int level

Specifies the initial drawable level in the range 0 to 10000.

int lineBreakStyle

Specifies the line-break strategies for text wrapping.

int lineBreakWordStyle

Specifies the line-break word strategies for text wrapping.

int lineHeight

Explicit height between lines of text.

int lineSpacingExtra

Extra spacing between lines of text.

int lineSpacingMultiplier

Extra spacing between lines of text, as a multiplier.

int lines

Makes the TextView be exactly this many lines tall.

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.

int listChoiceBackgroundIndicator

Drawable used as a background for selected list items.

int listChoiceIndicatorMultiple

Drawable to use for multiple choice indicators.

int listChoiceIndicatorSingle

Drawable to use for single choice indicators.

int listDivider

The drawable for the list divider.

int listDividerAlertDialog

The list divider used in alert dialogs.

int listMenuViewStyle

Default menu-style ListView style.

int listPopupWindowStyle

Default ListPopupWindow style.

int listPreferredItemHeight

The preferred list item height.

int listPreferredItemHeightLarge

A larger, more robust list item height.

int listPreferredItemHeightSmall

A smaller, sleeker list item height.

int listPreferredItemPaddingEnd

The preferred padding along the end edge of list items.

int listPreferredItemPaddingLeft

The preferred padding along the left edge of list items.

int listPreferredItemPaddingRight

The preferred padding along the right edge of list items.

int listPreferredItemPaddingStart

The preferred padding along the start edge of list items.

int listSelector

Drawable used to indicate the currently selected item in the list.

int listSeparatorTextViewStyle

TextView style for list separators.

int listViewStyle

Default ListView style.

int listViewWhiteStyle

ListView with white background.

int localeConfig

An XML resource with the application's LocaleConfig

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

int lockTaskMode

This value indicates how tasks rooted at this activity will behave in lockTask mode.

int logo

A Drawable resource providing an extended graphical logo for its associated item.

int logoDescription

A content description string to describe the appearance of the associated logo image.

int longClickable

Defines whether this view reacts to long click events.

int loopViews

Defines whether the animator loops to the first view once it has reached the end of the list.

int manageSpaceActivity

Name of the activity to be launched to manage application's space on device.

int mapViewStyle

Default MapView style.

int marqueeRepeatLimit

The number of times to repeat the marquee animation.

int matchOrder

The match order to use for the transition.

int max

Defines the maximum value.

int maxAspectRatio

This value indicates the maximum aspect ratio the activity supports.

int maxButtonHeight

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

int maxDate

The maximal date shown by this calendar view in mm/dd/yyyy format.

int maxEms

Makes the TextView be at most this many ems wide.

int maxHeight

An optional argument to supply a maximum height for this view.

int maxItemsPerRow

Defines the maximum number of items per row.

int maxLength

Set an input filter to constrain the text length to the specified number.

int maxLevel

The maximum level allowed for this item.

int maxLines

Makes the TextView be at most this many lines tall.

int maxLongVersionCode

The max version code of the package for which compatibility mode is requested.

int maxRecents

The maximum number of entries of tasks rooted at this activity in the recent task list.

int maxResizeHeight

Maximum height that the AppWidget can be resized to.

int maxResizeWidth

Maximum width that the AppWidget can be resized to.

int maxRows

Defines the maximum number of rows displayed.

int maxSdkVersion

Optional: specify the maximum version of the Android OS for which the application wishes to request the permission.

int maxWidth

An optional argument to supply a maximum width for this view.

int maximumAngle

The maximum arc angle in degrees between the start and end points.

int measureAllChildren

Determines whether to measure all children or just those in the VISIBLE or INVISIBLE state when measuring.

int measureWithLargestChild

When set to true, all children with a weight will be considered having the minimum size of the largest child.

int mediaRouteButtonStyle

Default style for the MediaRouteButton widget.

int mediaRouteTypes

The types of media routes the button and its resulting chooser will filter by.

int memtagMode

Enable hardware memory tagging (ARM MTE) in this process.

int menuCategory

The category applied to all items within this group.

int mimeGroup

Specify a group of MIME types that are handled.

int mimeType

Specify a MIME type that is handled, as per IntentFilter.addDataType().

int min

Defines the minimum value.

int minAspectRatio

This value indicates the minimum aspect ratio the activity supports.

int minDate

The minimal date shown by this calendar view in mm/dd/yyyy format.

int minEms

Makes the TextView be at least this many ems wide.

int minHeight

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

int minLevel

The minimum level allowed for this item.

int minLines

Makes the TextView be at least this many lines tall.

int minResizeHeight

Minimum height that the AppWidget can be resized to.

int minResizeWidth

Minimum width that the AppWidget can be resized to.

int minSdkVersion

This is the minimum SDK version number that the application requires.

int minWidth

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

int minimumHorizontalAngle

The minimum arc angle in degrees between the start and end points when they are close to horizontal.

int minimumVerticalAngle

The minimum arc angle in degrees between the start and end points when they are close to vertical.

int mipMap

Enables or disables the mipmap hint.

int mirrorForRtl

Defines if the associated drawables need to be mirrored when in RTL mode.

int mode

Must be one of the following constant values.

int moreIcon

'More' icon.

int multiArch

Declare that code from this application will need to be loaded into other applications' processes.

int multiprocess

Specify whether a component is allowed to have multiple instances of itself running in different processes.

int name

A unique name for the given item.

int nativeHeapZeroInitialized

If true enables automatic zero initialization of all native heap allocations.

int navigationBarColor

This constant was deprecated in API level 35. Draw proper background behind WindowInsets.Type.navigationBars() or WindowInsets.Type.tappableElement() instead.

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

int navigationBarDividerColor

This constant was deprecated in API level 35. Draw proper background behind WindowInsets.Type.navigationBars() or WindowInsets.Type.tappableElement() instead.

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

int navigationContentDescription

Text to set as the content description for the navigation button located at the start of the toolbar.

int navigationIcon

Icon drawable to use for the navigation button located at the start of the toolbar.

int navigationMode

The type of navigation to use.

int negativeButtonText

The negative button text for the dialog.

int nestedScrollingEnabled

Specifies that this view should permit nested scrolling within a compatible ancestor view.

int networkSecurityConfig

An XML resource with the application's Network Security Config.

int nextClusterForward

Defines the next keyboard navigation cluster.

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.

int nextFocusForward

Defines the next view to give focus to when the next focus is View.FOCUS_FORWARD 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.

int nextFocusLeft

Defines the next view to give focus to when the next focus is View.FOCUS_LEFT.

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.

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.

int noHistory

Specify whether an activity should be kept in its history stack.

int nonInteractiveUiTimeout

A recommended timeout in milliseconds used in android.view.accessibility.AccessibilityManager.getRecommendedTimeoutMillis(int, int) to return a suitable value for UIs that do not include interactive controls.

int normalScreens

Indicates whether an application supports the normal screen form-factors.

int notificationTimeout

The minimal period in milliseconds between two accessibility events of the same type are sent to this service.

int numColumns

Defines how many columns to show.

int numStars

The number of stars (or rating items) to show.

int numberPickerStyle

NumberPicker style.

int numbersBackgroundColor

The background color for the hours/minutes numbers.

int numbersInnerTextColor

The color for the inner hours numbers used in 24-hour mode.

int numbersSelectorColor

The color for the hours/minutes selector.

int numbersTextColor

The color for the hours/minutes numbers.

int numeric

This constant was deprecated in API level 15. Use inputType instead.

int numericModifiers

The numeric modifier key.

int numericShortcut

The numeric shortcut key.

int offset

The offset (or ratio) of this current color item inside the gradient.

int onClick

This constant was deprecated in API level 31. View actually traverses the Context hierarchy looking for the relevant method, which is fragile (an intermediate ContextWrapper adding a same-named method would change behavior) and restricts bytecode optimizers such as R8. Instead, use View.setOnClickListener.

int oneshot

If true, the animation will only run a single time and then stop.

int opacity

Indicates the opacity of the layer.

int opticalInsetBottom

Bottom optical inset.

int opticalInsetLeft

Left optical inset.

int opticalInsetRight

Right optical inset.

int opticalInsetTop

Top optical inset.

int order

The order for the Preference (lower values are to be ordered first).

int orderInCategory

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

int ordering

Name of the property being animated.

int orderingFromXml

Whether to order the Preference under this group as they appear in the XML file.

int orientation

Standard orientation constant.

int outAnimation

Identifier for the animation to use when a view is hidden.

int outlineAmbientShadowColor

Sets the color of the ambient shadow that is drawn when the view has a positive Z or elevation value.

int outlineProvider

ViewOutlineProvider used to determine the View's Outline.

int outlineSpotShadowColor

Sets the color of the spot shadow that is drawn when the view has a positive Z or elevation value.

int overScrollFooter

Drawable to draw below list content.

int overScrollHeader

Drawable to draw above list content.

int overScrollMode

Defines over-scrolling behavior.

int overlapAnchor

Whether the popup window should overlap its anchor view.

int overridesImplicitlyEnabledSubtype

Set true when this subtype should be selected by default if no other subtypes are selected explicitly.

int packageNames

Comma separated package names from which this service would like to receive events (leave out for all packages).

int packageType

Required type of association with the package, for example "android.package.ad_service" if it provides an advertising service.

int padding

Sets the padding, in pixels, of all four edges.

int paddingBottom

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

int paddingEnd

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

int paddingHorizontal

Sets the padding, in pixels, of the left and right edges; see padding.

int paddingLeft

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

int paddingMode

Indicates how layer padding should affect the bounds of subsequent layers.

int paddingRight

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

int paddingStart

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

int paddingTop

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

int paddingVertical

Sets the padding, in pixels, of the top and bottom edges; see padding.

int panelBackground

The background of a panel when it is inset from the left and right edges of the screen.

int panelColorBackground

Color that matches (as closely as possible) the panel background.

int panelColorForeground

Default color of foreground panel imagery.

int panelFullBackground

The background of a panel when it extends to the left and right edges of the screen.

int panelTextAppearance

Default appearance of panel text.

int parentActivityName

The name of the logical parent of the activity as it appears in the manifest.

int password

This constant was deprecated in API level 15. Use inputType instead.

int passwordsActivity

Fully qualified class name of an activity that allows the user to view any passwords saved by this service.

int path

Specify a URI path that must exactly match, as per PatternMatcher with PatternMatcher.PATTERN_LITERAL.

int pathAdvancedPattern

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

int pathData

The specification of the operations that define the path.

int pathPattern

Specify a URI path that matches a simple pattern, as per PatternMatcher with PatternMatcher.PATTERN_SIMPLE_GLOB.

int pathPrefix

Specify a URI path that must be a prefix to match, as per PatternMatcher with PatternMatcher.PATTERN_PREFIX.

int pathSuffix

Specify a URI path that must be a suffix to match, as per PatternMatcher with PatternMatcher.PATTERN_SUFFIX.

int patternPathData

The path string describing the pattern to use for the PathPathMotion.

int permission

Specify a permission that a client is required to have in order to use the associated object.

int permissionFlags

Flags indicating more context for a permission.

int permissionGroup

Specified the name of a group that this permission is associated with.

int permissionGroupFlags

Flags indicating more context for a permission group.

int persistableMode

Define how an activity persist across reboots.

int persistent

Flag to control special persistent mode of an application.

int persistentDrawingCache

Defines the persistence of the drawing cache.

int persistentWhenFeatureAvailable

If set, the "persistent" attribute will only be honored if the feature specified here is present on the device.

int phoneNumber

This constant was deprecated in API level 15. Use inputType instead.

int physicalKeyboardHintLanguageTag

The BCP-47 Language Tag of the preferred physical keyboard of the subtype.

int physicalKeyboardHintLayoutType

The layout type of the preferred physical keyboard of the subtype.

int pivotX

May be a floating point value, such as "1.2".

int pivotY

May be a floating point value, such as "1.2".

int pointerIcon

Must be one of the following constant values.

int popupAnimationStyle

The animation style to use for the popup window.

int popupBackground

The background to use for the popup window.

int popupCharacters

This constant was deprecated in API level 29. Copy this definition into your own application project.

int popupElevation

Window elevation to use for the popup window.

int popupEnterTransition

Transition used to move views into the popup window.

int popupExitTransition

Transition used to move views out of the popup window.

int popupKeyboard

This constant was deprecated in API level 29. Copy this definition into your own application project.

int popupLayout

This constant was deprecated in API level 29. Copy this definition into your own application project.

int popupMenuStyle

Default PopupMenu style.

int popupTheme

Reference to a theme that should be used to inflate popups shown by widgets in the toolbar.

int popupWindowStyle

Default PopupWindow style.

int port

Specify a URI authority port that is handled, as per IntentFilter.addDataAuthority().

int positiveButtonText

The positive button text for the dialog.

int preferKeepClear

Sets a preference to keep the bounds of this view clear from floating windows above this view's window.

int preferMinimalPostProcessing

Indicates whether the activity wants the connected display to do minimal post processing on the produced image or video frames.

int preferenceCategoryStyle

Default style for PreferenceCategory.

int preferenceFragmentStyle

Default style for Headers pane in PreferenceActivity.

int preferenceInformationStyle

Default style for informational Preference.

int preferenceLayoutChild

The preference layout that has the child/tabbed effect.

int preferenceScreenStyle

Default style for PreferenceScreen.

int preferenceStyle

Default style for Preference.

int presentationTheme

Theme to use for presentations spawned from this theme.

int preserveLegacyExternalStorage

If true this app would like to preserve the legacy storage model from a previously installed version.

int previewImage

A preview, in a drawable resource id, of what the Dream will look like.

int previewLayout

The layout resource id of a preview of what the AppWidget will look like after it's configured.

int primaryContentAlpha

The alpha applied to the foreground color to create the primary text color.

int priority

Specify the relative importance or ability in handling a particular Intent.

int privateImeOptions

An addition content type description to supply to the input method attached to the text view, which is private to the implementation of the input method.

int process

Specify a specific process that the associated code is to run in.

int progress

Defines the default progress value, between 0 and max.

int progressBackgroundTint

Tint to apply to the progress indicator background.

int progressBackgroundTintMode

Blending mode used to apply the progress indicator background tint.

int progressBarPadding

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

int progressBarStyle

Default ProgressBar style.

int progressBarStyleHorizontal

Horizontal ProgressBar style.

int progressBarStyleInverse

Inverse ProgressBar style.

int progressBarStyleLarge

Large ProgressBar style.

int progressBarStyleLargeInverse

Large inverse ProgressBar style.

int progressBarStyleSmall

Small ProgressBar style.

int progressBarStyleSmallInverse

Small inverse ProgressBar style.

int progressBarStyleSmallTitle

Small ProgressBar in title style.

int progressDrawable

Drawable used for the progress mode.

int progressTint

Tint to apply to the progress indicator.

int progressTintMode

Blending mode used to apply the progress indicator tint.

int prompt

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

int propertyName

Name of the property being animated.

int propertyXName

Name of the property being animated as the X coordinate of the pathData.

int propertyYName

Name of the property being animated as the Y coordinate of the pathData.

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.

int publicKey

The attribute that holds a Base64-encoded public key.

int query

Specify a URI query that must exactly match, as a UriRelativeFilter with PatternMatcher.PATTERN_LITERAL.

int queryActionMsg

If you wish to handle an action key during normal search query entry, you must define an action string here.

int queryAdvancedPattern

Specify a URI query that matches an advanced pattern, as a UriRelativeFilter with PatternMatcher.PATTERN_ADVANCED_GLOB.

int queryAfterZeroResults

If provided and true, this searchable activity will be invoked for all queries in a particular session.

int queryBackground

Background for the section containing the search query.

int queryHint

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

int queryPattern

Specify a URI query that matches a simple pattern, as a UriRelativeFilter with PatternMatcher.PATTERN_SIMPLE_GLOB.

int queryPrefix

Specify a URI query that must be a prefix to match, as a UriRelativeFilter with PatternMatcher.PATTERN_PREFIX.

int querySuffix

Specify a URI query that must be a suffix to match, as a UriRelativeFilter with PatternMatcher.PATTERN_SUFFIX.

int quickContactBadgeStyleSmallWindowLarge

Default quickcontact badge style with large quickcontact window.

int quickContactBadgeStyleSmallWindowMedium

Default quickcontact badge style with medium quickcontact window.

int quickContactBadgeStyleSmallWindowSmall

Default quickcontact badge style with small quickcontact window.

int quickContactBadgeStyleWindowLarge

Default quickcontact badge style with large quickcontact window.

int quickContactBadgeStyleWindowMedium

Default quickcontact badge style with medium quickcontact window.

int quickContactBadgeStyleWindowSmall

Default quickcontact badge style with small quickcontact window.

int radioButtonStyle

Default RadioButton style.

int radius

Defines the radius of the four corners.

int rating

The rating to set by default.

int ratingBarStyle

Default RatingBar style.

int ratingBarStyleIndicator

Indicator RatingBar style.

int ratingBarStyleSmall

Small indicator RatingBar style.

int readPermission

A specific permission name for read-only access to a ContentProvider.

int recognitionService

The service that provides voice recognition.

int recreateOnConfigChanges

Specify the configuration changes that trigger the system to recreate the current activity if any of these configuration changes happen in the system.

int recycleEnabled

Whether the preference has enabled to have its view recycled when used in the list view.

int relinquishTaskIdentity

Tasks whose root has this attribute set to true will replace baseIntent with that of the next activity in the task.

int reparent

Tells ChangeTransform to track parent changes.

int reparentWithOverlay

A parent change should use an overlay or affect the transform of the transitionining View.

int repeatCount

Defines how many times the animation should repeat.

int repeatMode

Defines the animation behavior when it reaches the end and the repeat count is greater than 0 or infinite.

int reqFiveWayNav

Application's requirement for five way navigation

May be a boolean value, such as "true" or "false".

int reqHardKeyboard

Application's requirement for a hard keyboard

May be a boolean value, such as "true" or "false".

int reqKeyboardType

The input method preferred by an application.

int reqNavigation

The navigation device preferred by an application.

int reqTouchScreen

The touch screen type used by an application.

int requestLegacyExternalStorage

If true this app would like to run under the legacy storage model.

int requestRawExternalStorageAccess

If true this app would like raw external storage access.

int requireContentUriPermissionFromCaller

Specifies permissions necessary to launch this activity when passing content URIs.

int requireDeviceScreenOn

Whether the device must be screen on before routing data to this service.

int requireDeviceUnlock

Whether the device must be unlocked before routing data to this service.

int required

Specify whether this feature is required for the application.

int requiredAccountType

Declare that this application requires an account of a certain type.

int requiredDisplayCategory

Specifies the required display category of the activity.

int requiredFeature

Optional: the system must support this feature for the permission to be requested.

int requiredForAllUsers

Flag to specify if this application needs to be present for all users.

int requiredNotFeature

Optional: the system must NOT support this feature for the permission to be requested.

int requiredSplitTypes

List of split types required by this APK to be present in order to function properly, separated by commas.

int requiresFadingEdge

Defines which edges should be faded on scrolling.

int requiresSmallestWidthDp

Starting with Build.VERSION_CODES.HONEYCOMB_MR2, this is the new way to specify the minimum screen size an application is compatible with.

int resetEnabledSettingsOnAppDataCleared

Specifies whether enabled settings of components in the application should be reset to PackageManager.COMPONENT_ENABLED_STATE_DEFAULT when the application's user data is cleared.

int resizeClip

Resize the view by adjusting the clipBounds rather than changing the dimensions of the view itself.

int resizeMode

Optional parameter which indicates if and how this widget can be resized.

int resizeable

Indicates whether the application can resize itself to newer screen sizes.

int resizeableActivity

Hint to platform that the activity works well in multi-window mode.

int resource

Resource identifier to assign to this piece of named meta-data.

int resourcesMap

The xml file that defines the target id to overlay value mappings.

int restoreAnyVersion

Indicate that the application is prepared to attempt a restore of any backed-up dataset, even if the backup is apparently from a newer version of the application than is currently installed on the device.

int restoreNeedsApplication

This constant was deprecated in API level 15. This attribute is not used by the Android operating system.

May be a boolean value, such as "true" or "false".

int restrictedAccountType

Declare that this application requires access to restricted accounts of a certain type.

int restrictionType

Must be one of the following constant values.

int resumeWhilePausing

Indicate that it is okay for this activity be resumed while the previous activity is in the process of pausing, without waiting for the previous pause to complete.

int reversible

Whether this transition is reversible.

int revisionCode

Internal revision code.

int right

Amount of right padding inside the gradient shape.

int ringtonePreferenceStyle

Default style for RingtonePreference.

int ringtoneType

Which ringtone type(s) to show in the picker.

int rollbackDataPolicy

Declare the policy to deal with user data when rollback is committed.

int rotation

rotation of the view, in degrees.

int rotationAnimation

Flag that specifies the activity's preferred screen rotation animation.

int rotationX

rotation of the view around the x axis, in degrees.

int rotationY

rotation of the view around the y axis, in degrees.

int roundIcon

A Drawable resource providing a graphical representation of its associated item.

int rowCount

The maximum number of rows to create when automatically positioning children.

int rowDelay

Fraction of the animation duration used to delay the beginning of the animation of each row.

int rowEdgeFlags

This constant was deprecated in API level 29. Copy this definition into your own application project.Copy this definition into your own application project.Copy this definition into your own application project.

int rowHeight

Defines the height of each row.

int rowOrderPreserved

When set to true, forces row boundaries to appear in the same order as row indices.

int saveEnabled

If false, no state will be saved for this view when it is being frozen.

int scaleGravity

Specifies where the drawable is positioned after scaling.

int scaleHeight

Scale height, expressed as a percentage of the drawable's bound.

int scaleType

Controls how the image should be resized or moved to match the size of this ImageView.

int scaleWidth

Scale width, expressed as a percentage of the drawable's bound.

int scaleX

scale of the view in the x direction.

int scaleY

scale of the view in the y direction.

int scheme

Specify a URI scheme that is handled, as per IntentFilter.addDataScheme().

int screenDensity

Specifies a compatible screen density, as per the device configuration screen density bins.

int screenOrientation

Specify the orientation an activity should be run in.

int screenReaderFocusable

Whether this view should be treated as a focusable unit by screen reader accessibility tools.

int screenSize

Specifies a compatible screen size, as per the device configuration screen size bins.

int scrollHorizontally

Whether the text is allowed to be wider than the view (and therefore can be scrolled horizontally).

int scrollIndicators

Defines which scroll indicators should be displayed when the view can be scrolled.

int scrollViewStyle

Default ScrollView style.

int scrollX

The initial horizontal scroll offset, in pixels.

int scrollY

The initial vertical scroll offset, in pixels.

int scrollbarAlwaysDrawHorizontalTrack

Defines whether the horizontal scrollbar track should always be drawn.

int scrollbarAlwaysDrawVerticalTrack

Defines whether the vertical scrollbar track should always be drawn.

int scrollbarDefaultDelayBeforeFade

Defines the delay in milliseconds that a scrollbar waits before fade out.

int scrollbarFadeDuration

Defines the delay in milliseconds that a scrollbar takes to fade out.

int scrollbarSize

Sets the width of vertical scrollbars and height of horizontal scrollbars.

int scrollbarStyle

Controls the scrollbar style and position.

int scrollbarThumbHorizontal

Defines the horizontal scrollbar thumb drawable.

int scrollbarThumbVertical

Defines the vertical scrollbar thumb drawable.

int scrollbarTrackHorizontal

Defines the horizontal scrollbar track drawable.

int scrollbarTrackVertical

Defines the vertical scrollbar track drawable.

int scrollbars

Defines which scrollbars should be displayed on scrolling or not.

int scrollingCache

When set to true, the list uses a drawing cache during scrolling.

int searchButtonText

This constant was deprecated in API level 15. This will create a non-standard UI appearance, because the search bar UI is changing to use only icons for its buttons.

int searchHintIcon

Search icon displayed as a text field hint.

int searchIcon

Search icon.

int searchMode

Additional features are controlled by mode bits in this field.

int searchResultHighlightColor

Color of search results highlight.

int searchSettingsDescription

If provided, this string will be used to describe the searchable item in the searchable items settings within system search settings.

int searchSuggestAuthority

If provided, this is the trigger indicating that the searchable activity provides suggestions as well.

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.

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.

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.

int searchSuggestSelection

If provided, suggestion queries will be passed into your query function as the selection parameter.

int searchSuggestThreshold

If provided, this is the minimum number of characters needed to trigger search suggestions.

int searchViewStyle

Style for the search query widget.

int secondaryContentAlpha

The alpha applied to the foreground color to create the secondary text color.

int secondaryProgress

Defines the secondary progress value, between 0 and max.

int secondaryProgressTint

Tint to apply to the secondary progress indicator.

int secondaryProgressTintMode

Blending mode used to apply the secondary progress indicator tint.

int secureElementName

Secure Element which the AIDs should be routed to

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

int seekBarStyle

Default SeekBar style.

int segmentedButtonStyle

Style for segmented buttons - a container that houses several buttons with the appearance of a singel button broken into segments.

int selectAllOnFocus

If the text is selectable, select it all when the view takes focus.

int selectable

Whether the Preference is selectable.

int selectableAsDefault

Flag indicating whether a recognition service can be selected as default.

int selectableItemBackground

Background drawable for bordered standalone items that need focus/pressed states.

int selectableItemBackgroundBorderless

Background drawable for borderless standalone items that need focus/pressed states.

int selectedDateVerticalBar

This constant was deprecated in API level 23. Drawable for the vertical bar shown at the beginning and at the end of the selected date.

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

int selectedWeekBackgroundColor

This constant was deprecated in API level 23. The background color for the selected week.

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

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

int selectionDividerHeight

The height of the selection divider.

int sessionService

The service that hosts active voice interaction sessions.

int settingsActivity

Fully qualified class name of an activity that allows the user to modify the settings for this service.

int settingsSliceUri

Uri that specifies a settings Slice for this wallpaper.

int settingsSubtitle

A string that is displayed to the user in the Credential Manager settings screen that can be used to provide more information about a provider.

int setupActivity

Component name of an activity that allows the user to set up this service.

int shadowColor

Place a blurred shadow of text underneath the text, drawn with the specified color.

int shadowDx

Horizontal offset of the text shadow.

int shadowDy

Vertical offset of the text shadow.

int shadowRadius

Blur radius of the text shadow.

int shape

Indicates what shape to fill with a gradient.

int shareInterpolator

May be a boolean value, such as "true" or "false".

int sharedUserId

This constant was deprecated in API level 29. Shared user IDs cause non-deterministic behavior within the package manager. As such, its use is strongly discouraged and may be removed in a future version of Android. Instead, apps should use proper communication mechanisms, such as services and content providers, to facilitate interoperability between shared components. Note that existing apps cannot remove this value, as migrating off a shared user ID is not supported.

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

int sharedUserLabel

This constant was deprecated in API level 29. There is no replacement for this attribute. sharedUserId has been deprecated making this attribute unnecessary.

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

int sharedUserMaxSdkVersion

The maximum device SDK version for which the application will remain in the user ID defined in sharedUserId.

int shell

Flag indicating whether the application can be profiled by the shell user, even when running on a device that is running in user mode.

int shiftDrawingOffsetForStartOverhang

May be a boolean value, such as "true" or "false".

int shortcutDisabledMessage

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

int shortcutId

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

int shortcutLongLabel

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

int shortcutShortLabel

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

int shouldDefaultToObserveMode

Whether the device should default to observe mode when this service is default or in the foreground.

int shouldDisableView

Whether the view of this Preference should be disabled when this Preference is disabled.

int shouldUseDefaultUnfoldTransition

Indicates that this wallpaper service should receive zoom transition updates when changing the structural state of the device (e.g. when folding or unfolding a foldable device).

int showAsAction

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

int showBackdrop

Special option for window animations: whether to show a background behind the animating windows.

int showClockAndComplications

Whether to show clock and other complications such as weather in the overlay.

int showDefault

Whether to show an item for a default sound.

int showDividers

Setting for which dividers to show.

int showForAllUsers

Specify that an Activity should be shown even if the current/foreground user is different from the user of the Activity.

int showInInputMethodPicker

Specifies whether the IME wants to be shown in the Input Method picker.

int showMetadataInPreview

Whether to show any metadata when previewing the wallpaper.

int showOnLockScreen

This constant was deprecated in API level 23. use showForAllUsers instead.

May be a boolean value, such as "true" or "false".

int showSilent

Whether to show an item for 'Silent'.

int showText

Whether to draw on/off text.

int showWeekNumber

This constant was deprecated in API level 23. Whether do show week numbers.

May be a boolean value, such as "true" or "false".

int showWhenLocked

Specifies whether an Activity should be shown on top of the lock screen whenever the lockscreen is up and the activity is resumed.

int shownWeekCount

This constant was deprecated in API level 23. The number of weeks to be shown.

May be an integer value, such as "100".

int shrinkColumns

The zero-based index of the columns to shrink.

int singleLine

This constant was deprecated in API level 15. This attribute is deprecated. Use maxLines instead to change the layout of a static text, and use the textMultiLine flag in the inputType attribute instead for editable text views (if both singleLine and inputType are supplied, the inputType flags will override the value of singleLine).

int singleLineTitle

Whether to use single line for the preference title text.

int singleUser

If set to true, a single instance of this component will run for all users.

int slideEdge

Must be one of the following constant values.

int smallIcon

Smaller icon of the authenticator.

int smallScreens

Indicates whether the application supports smaller screen form-factors.

int smoothScrollbar

When set to true, the list will use a more refined calculation method based on the pixels height of the items visible on screen.

int soundEffectsEnabled

Boolean that controls whether a view should have sound effects enabled for events such as clicking and touching.

int spacing

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

int spinnerDropDownItemStyle

Default style for spinner drop down items.

int spinnerItemStyle

Default spinner item style.

int spinnerMode

Display mode for spinner options.

int spinnerStyle

Default Spinner style.

int spinnersShown

Whether the spinners are shown.

int splashScreenTheme

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

int splitMotionEvents

Sets whether this ViewGroup should split MotionEvents to separate child views during touch event dispatch.

int splitName

When an application is partitioned into splits, this is the name of the split that contains the defined component.

int splitTrack

Whether to split the track and leave a gap for the thumb drawable.

int splitTypes

List of split types offered by this APK, separated by commas.

int spotShadowAlpha

Alpha value of the spot shadow projected by elevated views, between 0 and 1.

int src

Sets a drawable as the content of this ImageView.

int ssp

Specify a URI scheme specific part that must exactly match, as per IntentFilter.addDataSchemeSpecificPart() with PatternMatcher.PATTERN_LITERAL.

int sspAdvancedPattern

Specify a URI scheme specific part that matches an advanced pattern, as per IntentFilter.addDataSchemeSpecificPart() with PatternMatcher.PATTERN_ADVANCED_GLOB.

int sspPattern

Specify a URI scheme specific part that matches a simple pattern, as per IntentFilter.addDataSchemeSpecificPart() with PatternMatcher.PATTERN_SIMPLE_GLOB.

int sspPrefix

Specify a URI scheme specific part that must be a prefix to match, as per IntentFilter.addDataSchemeSpecificPart() with PatternMatcher.PATTERN_PREFIX.

int sspSuffix

Specify a URI scheme specific part that must be a suffix to match, as per IntentFilter.addDataSchemeSpecificPart() with PatternMatcher.PATTERN_SUFFIX.

int stackFromBottom

Used by ListView and GridView to stack their content from the bottom.

int stackViewStyle

Default StackView style.

int starStyle

Default Star style.

int start

Start inset to apply to the layer.

int startColor

Start color of the gradient.

int startDelay

Delay in milliseconds before the transition starts.

int startOffset

Delay in milliseconds before the animation runs, once start time is reached.

int startX

X coordinate of the start point origin of the gradient.

int startY

Y coordinate of the start point of the gradient within the shape.

int startYear

This constant was deprecated in API level 16. Use minDate instead.Use minDate instead.

int stateListAnimator

Sets the state-based animator for the View.

int stateNotNeeded

Indicates that an Activity does not need to have its freeze state (as returned by Activity.onSaveInstanceState(Bundle) retained in order to be restarted.

int state_above_anchor

State identifier indicating the popup will be above the anchor.

int state_accelerated

State value for StateListDrawable, indicating that the Drawable is in a view that is hardware accelerated.

int state_activated

State value for StateListDrawable, set when a view or its parent has been "activated" meaning the user has currently marked it as being of interest.

int state_active

State value for StateListDrawable, set when a view or drawable is considered "active" by its host.

int state_checkable

State identifier indicating that the object may display a check mark.

int state_checked

State identifier indicating that the object is currently checked.

int state_drag_can_accept

State for StateListDrawable indicating that the Drawable is in a view that is capable of accepting a drop of the content currently being manipulated in a drag-and-drop operation.

int state_drag_hovered

State for StateListDrawable indicating that a drag operation (for which the Drawable's view is a valid recipient) is currently positioned over the Drawable.

int state_empty

State identifier indicating the group is empty (has no children).

int state_enabled

State value for StateListDrawable, set when a view is enabled.

int state_expanded

State identifier indicating the group is expanded.

int state_first

State value for StateListDrawable, set when a view or drawable is in the first position in an ordered set.

int state_focused

State value for StateListDrawable, set when a view has input focus.

int state_hovered

State value for StateListDrawable, set when a pointer is hovering over the view.

int state_last

State value for StateListDrawable, set when a view or drawable is in the last position in an ordered set.

int state_long_pressable

This constant was deprecated in API level 29. Copy this definition into your own application project.

int state_middle

State value for StateListDrawable, set when a view or drawable is in the middle position in an ordered set.

int state_multiline

State identifier indicating a TextView has a multi-line layout.

int state_pressed

State value for StateListDrawable, set when the user is pressing down in a view.

int state_selected

State value for StateListDrawable, set when a view (or one of its parents) is currently selected.

int state_single

State value for StateListDrawable, set when a view or drawable is considered "single" by its host.

int state_window_focused

State value for StateListDrawable, set when a view's window has input focus.

int staticWallpaperPreview

A resource id of a static drawable.

int statusBarColor

This constant was deprecated in API level 35. Draw proper background behind WindowInsets.Type.statusBars()} instead.

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

int stepSize

The step size of the rating.

int stopWithTask

If set to true, this service with be automatically stopped when the user remove a task rooted in an activity owned by the application.

int streamType

Different audio stream types.

int stretchColumns

The zero-based index of the columns to stretch.

int stretchMode

Defines how columns should stretch to fill the available empty space, if any.

int strokeAlpha

The opacity of a path stroke, as a value between 0 (completely transparent) and 1 (completely opaque).

int strokeColor

The color to stroke the path if not defined implies no stroke.

int strokeLineCap

sets the linecap for a stroked path.

int strokeLineJoin

sets the lineJoin for a stroked path.

int strokeMiterLimit

sets the Miter limit for a stroked path.

int strokeWidth

The width a path stroke.

int stylusHandwritingSettingsActivity

Class name of an activity that allows the user to modify the stylus handwriting settings for this service

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

int subMenuArrow

Drawable for the arrow icon indicating a particular item is a submenu.

int submitBackground

Background for the section containing the action (for example, voice search).

int subtitle

Specifies subtitle text used for navigationMode="normal".

int subtitleTextAppearance

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

int subtitleTextColor

A color to apply to the subtitle string.

int subtitleTextStyle

Specifies a style to use for subtitle text.

int subtypeExtraValue

The extra value of the subtype.

int subtypeId

The unique id for the subtype.

int subtypeLocale

The locale of the subtype.

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.

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.

int suggestionRowLayout

Layout for query suggestion rows.

int summary

The summary for the item.

int summaryColumn

Column in data table that summarizes this data.

int summaryOff

The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is unchecked.

int summaryOn

The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is checked.

int supportedTypes

The interactive app types that the TV interactive app service supports.

int supportsAssist

Flag indicating whether this voice interaction service is capable of handling the assist action.

int supportsBatteryGameMode

Set true to opt in BATTERY mode.

int supportsConnectionlessStylusHandwriting

Specifies whether the IME supports connectionless stylus handwriting sessions.

int supportsInlineSuggestions

Specifies whether the AutofillService supports inline suggestions

May be a boolean value, such as "true" or "false".

int supportsInlineSuggestionsWithTouchExploration

Specifies whether the IME supports showing inline suggestions when touch exploration is enabled.

int supportsLaunchVoiceAssistFromKeyguard

Flag indicating whether this voice interaction service is capable of being launched from the keyguard.

int supportsLocalInteraction

Flag indicating whether this voice interaction service can handle local voice interaction requests from an Activity.

int supportsMultipleDisplays

Indicates that this wallpaper service can support multiple engines to render on each surface independently.

int supportsPerformanceGameMode

Set true to opt in PERFORMANCE mode.

int supportsPictureInPicture

Indicates that the activity specifically supports the picture-in-picture form of multi-window.

int supportsRtl

Declare that your application will be able to deal with RTL (right to left) layouts.

int supportsStylusHandwriting

Specifies whether the IME supports Handwriting using stylus.

int supportsSwitchingToNextInputMethod

Set to true if this input method supports ways to switch to a next input method (for example, a globe key.).

int supportsUploading

May be a boolean value, such as "true" or "false".

int suppressesSpellChecker

Specifies whether the IME suppresses system spell checker.

int switchMinWidth

Minimum width for the switch component.

int switchPadding

Minimum space between the switch and caption text.

int switchPreferenceStyle

Default style for switch preferences.

int switchStyle

Default style for the Switch widget.

int switchTextAppearance

TextAppearance style for text displayed on the switch thumb.

int switchTextOff

The text used on the switch itself when in the "off" state.

int switchTextOn

The text used on the switch itself when in the "on" state.

int syncable

Flag indicating whether this content provider would like to participate in data synchronization.

int systemUserOnly

If set to true, only a single instance of this component will run and be available for the SYSTEM user.

int tabStripEnabled

Determines whether the strip under the tab indicators is drawn or not.

int tabStripLeft

Drawable used to draw the left part of the strip underneath the tabs.

int tabStripRight

Drawable used to draw the right part of the strip underneath the tabs.

int tabWidgetStyle

Default TabWidget style.

int tag

Supply a tag for this view containing a String, to be retrieved later with View.getTag() or searched for with View.findViewWithTag().

int targetActivity

Fully qualified class name of an activity that allows the user to view their entire wallet

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

int targetCellHeight

Default height of the AppWidget in units of launcher grid cells.

int targetCellWidth

Default width of the AppWidget in units of launcher grid cells.

int targetClass

The class part of the ComponentName to assign to the Intent, as per Intent.setComponent().

int targetDescriptions

This constant was deprecated in API level 23. Removed. Reference to an array resource that be used as description for the targets around the circle.

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

int targetId

The id of a target on which this transition will animate changes.

int targetName

The transitionName of the target on which this transition will animation changes.

int targetPackage

The name of the application package that an Instrumentation object will run against.

int targetProcesses

The name of an application's processes that an Instrumentation object will run against.

int targetSandboxVersion

This constant was deprecated in API level 29. The security properties have been moved to Build.VERSION 27 and 28.

May be an integer value, such as "100".

int targetSdkVersion

This is the SDK version number that the application is targeting.

int taskAffinity

Specify a task name that activities have an "affinity" to.

int taskCloseEnterAnimation

When closing the last activity of a task, this is the animation that is run on the activity of the next task (which is entering the screen).

int taskCloseExitAnimation

When opening an activity in a new task, this is the animation that is run on the activity of the old task (which is exiting the screen).

int taskOpenEnterAnimation

When opening an activity in a new task, this is the animation that is run on the activity of the new task (which is entering the screen).

int taskOpenExitAnimation

When opening an activity in a new task, this is the animation that is run on the activity of the old task (which is exiting the screen).

int taskToBackEnterAnimation

When sending the current task to the background, this is the animation that is run on the top activity of the task behind it (which is entering the screen).

int taskToBackExitAnimation

When sending the current task to the background, this is the animation that is run on the top activity of the current task (which is exiting the screen).

int taskToFrontEnterAnimation

When bringing an existing task to the foreground, this is the animation that is run on the top activity of the task being brought to the foreground (which is entering the screen).

int taskToFrontExitAnimation

When bringing an existing task to the foreground, this is the animation that is run on the current foreground activity (which is exiting the screen).

int tension

This is the amount of tension.

int testOnly

Option to indicate this application is only for testing purposes.

int text

Text to display.

int textAlignment

Defines the alignment of the text.

int textAllCaps

Present the text in ALL CAPS.

int textAppearance

Default appearance of text: color, typeface, size, and style.

int textAppearanceButton

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

int textAppearanceInverse

Default appearance of text against an inverted background: color, typeface, size, and style.

int textAppearanceLarge

Text color, typeface, size, and style for "large" text.

int textAppearanceLargeInverse

Text color, typeface, size, and style for "large" inverse text.

int textAppearanceLargePopupMenu

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

int textAppearanceListItem

The preferred TextAppearance for the primary text of list items.

int textAppearanceListItemSecondary

The preferred TextAppearance for the secondary text of list items.

int textAppearanceListItemSmall

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

int textAppearanceMedium

Text color, typeface, size, and style for "medium" text.

int textAppearanceMediumInverse

Text color, typeface, size, and style for "medium" inverse text.

int textAppearancePopupMenuHeader

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

int textAppearanceSearchResultSubtitle

Text color, typeface, size, and style for system search result subtitle.

int textAppearanceSearchResultTitle

Text color, typeface, size, and style for system search result title.

int textAppearanceSmall

Text color, typeface, size, and style for "small" text.

int textAppearanceSmallInverse

Text color, typeface, size, and style for "small" inverse text.

int textAppearanceSmallPopupMenu

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

int textCheckMark

Drawable to use for check marks.

int textCheckMarkInverse

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

int textColor

Color of text (usually same as colorForeground).

int textColorAlertDialogListItem

Color of list item text in alert dialogs.

int textColorHighlight

Color of highlighted text.

int textColorHighlightInverse

Color of highlighted text, when used in a light theme.

int textColorHint

Color of hint text (displayed when the field is empty).

int textColorHintInverse

Inverse hint text color.

int textColorLink

Color of link text (URLs).

int textColorLinkInverse

Color of link text (URLs), when used in a light theme.

int textColorPrimary

The most prominent text color.

int textColorPrimaryDisableOnly

Bright text color.

int textColorPrimaryInverse

Primary inverse text color, useful for inverted backgrounds.

int textColorPrimaryInverseDisableOnly

Bright inverse text color.

int textColorPrimaryInverseNoDisable

Bright inverse text color.

int textColorPrimaryNoDisable

Bright text color.

int textColorSecondary

Secondary text color.

int textColorSecondaryInverse

Secondary inverse text color, useful for inverted backgrounds.

int textColorSecondaryInverseNoDisable

Dim inverse text color.

int textColorSecondaryNoDisable

Dim text color.

int textColorTertiary

Tertiary text color.

int textColorTertiaryInverse

Tertiary inverse text color, useful for inverted backgrounds.

int textCursorDrawable

Reference to a drawable that will be drawn under the insertion cursor.

int textDirection

Defines the direction of the text.

int textEditNoPasteWindowLayout

Variation of textEditPasteWindowLayout displayed when the clipboard is empty.

int textEditPasteWindowLayout

The layout of the view that is displayed on top of the cursor to paste inside a TextEdit field.

int textEditSideNoPasteWindowLayout

Variation of textEditSidePasteWindowLayout displayed when the clipboard is empty.

int textEditSidePasteWindowLayout

Used instead of textEditPasteWindowLayout when the window is moved on the side of the insertion cursor because it would be clipped if it were positioned on top.

int textEditSuggestionItemLayout

Layout of the TextView item that will populate the suggestion popup window.

int textFilterEnabled

When set to true, the list will filter results as the user types.

int textFontWeight

Weight for the font used in the TextView.

int textIsSelectable

Indicates that the content of a non-editable TextView can be selected.

int textLocale

Specifies the LocaleList for the text in this TextView.

int textOff

The text for the button when it is not checked.

int textOn

The text for the button when it is checked.

int textScaleX

Sets the horizontal scaling factor for the text.

int textSelectHandle

Reference to a drawable that will be used to display a text selection anchor for positioning the cursor within text.

int textSelectHandleLeft

Reference to a drawable that will be used to display a text selection anchor on the left side of a selection region.

int textSelectHandleRight

Reference to a drawable that will be used to display a text selection anchor on the right side of a selection region.

int textSelectHandleWindowStyle

Reference to a style that will be used for the window containing a text selection anchor.

int textSize

Size of text.

int textStyle

Default text typeface style.

int textSuggestionsWindowStyle

Reference to a style that will be used for the window containing a list of possible text suggestions in an EditText.

int textViewStyle

Default TextView style.

int theme

The overall theme to use for an activity.

int thickness

Thickness of the ring.

int thicknessRatio

Thickness of the ring expressed as a ratio of the ring's width.

int thumb

Draws the thumb on a seekbar.

int thumbOffset

An offset for the thumb that allows it to extend out of the range of the track.

int thumbPosition

Position of thumb in relation to the track.

int thumbTextPadding

Amount of padding on either side of text within the switch thumb.

int thumbTint

Tint to apply to the thumb drawable.

int thumbTintMode

Blending mode used to apply the thumb tint.

int thumbnail

Reference to the wallpaper's thumbnail bitmap.

int tickMark

Drawable displayed at each progress position on a seekbar.

int tickMarkTint

Tint to apply to the tick mark drawable.

int tickMarkTintMode

Blending mode used to apply the tick mark tint.

int tileMode

Defines the tile mode.

int tileModeX

Defines the horizontal tile mode.

int tileModeY

Defines the vertical tile mode.

int tileService

Fully qualified class name of TileService is associated with this accessibility shortcut target for one to one mapping.

int timePickerDialogTheme

The TimePicker dialog theme.

int timePickerMode

Defines the look of the widget.

int timePickerStyle

The TimePicker style.

int timeZone

Specifies the time zone to use.

int tint

The tinting color for the image.

int tintMode

When a tint color is set, specifies its Porter-Duff blending mode.

int title

The title associated with the item.

int titleCondensed

The condensed title associated with the item.

int titleMargin

Specifies extra space on the left, start, right and end sides of the toolbar's title.

int titleMarginBottom

Specifies extra space on the bottom side of the toolbar's title.

int titleMarginEnd

Specifies extra space on the end side of the toolbar's title.

int titleMarginStart

Specifies extra space on the start side of the toolbar's title.

int titleMarginTop

Specifies extra space on the top side of the toolbar's title.

int titleTextAppearance

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

int titleTextColor

A color to apply to the title string.

int titleTextStyle

Specifies a style to use for title text.

int toAlpha

May be a floating point value, such as "1.2".

int toDegrees

May be a floating point value, such as "1.2".

int toExtendBottom

Defines the amount a window should be extended outward from the bottom by the end of the animation by transitioning from the fromExtendBottom amount in an absolute dimension (interpreted as pixels if no dimension unit is provided) or as a percentage of the animation target's height.

int toExtendLeft

Defines the amount a window should be extended outward from the left by the end of the animation by transitioning from the fromExtendLeft amount in an absolute dimension (interpreted as pixels if no dimension unit is provided) or as a percentage of the animation target's width.

int toExtendRight

Defines the amount a window should be extended outward from the right by the end of the animation by transitioning from the fromExtendRight amount in an absolute dimension (interpreted as pixels if no dimension unit is provided) or as a percentage of the animation target's width.

int toExtendTop

Defines the amount a window should be extended outward from the top by the end of the animation by transitioning from the fromExtendTop amount in an absolute dimension (interpreted as pixels if no dimension unit is provided) or as a percentage of the animation target's height.

int toId

Keyframe identifier for the ending state.

int toScene

The destination scene in this scene change.

int toXDelta

May be a floating point value, such as "1.2".

int toXScale

May be a floating point value, such as "1.2".

int toYDelta

May be a floating point value, such as "1.2".

int toYScale

May be a floating point value, such as "1.2".

int toolbarStyle

Default Toolbar style.

int tooltipText

The tooltip text associated with the item.

int top

Amount of top padding inside the gradient shape.

int topBright

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

int topDark

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

int topLeftRadius

Radius of the top left corner.

int topOffset

Extra offset for the handle at the top of the SlidingDrawer.

int topRightRadius

Radius of the top right corner.

int touchscreenBlocksFocus

Set to true if this ViewGroup blocks focus in the presence of a touchscreen.

int track

Drawable to use as the "track" that the switch thumb slides within.

int trackTint

Tint to apply to the track.

int trackTintMode

Blending mode used to apply the track tint.

int transcriptMode

Sets the transcript mode for the list.

int transformPivotX

x location of the pivot point around which the view will rotate and scale.

int transformPivotY

y location of the pivot point around which the view will rotate and scale.

int transition

The id of a transition to be used in a particular scene change.

int transitionGroup

Sets whether or not this ViewGroup should be treated as a single entity when doing an Activity transition.

int transitionName

Names a View such that it can be identified for Transitions.

int transitionOrdering

Must be one of the following constant values.

int transitionVisibilityMode

Changes whether the transition supports appearing and/or disappearing Views.

int translateX

The amount to translate the group on X coordinate.

int translateY

The amount to translate the group on Y coordinate.

int translationX

translation in x of the view.

int translationY

translation in y of the view.

int translationZ

translation in z of the view.

int trimPathEnd

The fraction of the path to trim from the end from 0 to 1 .

int trimPathOffset

Shift trim region (allows visible region to include the start and end) from 0 to 1.

int trimPathStart

The fraction of the path to trim from the start from 0 to 1.

int ttcIndex

The index of the font in the ttc (TrueType Collection) font file.

int tunerCount

The number of tuners that the TV input service is associated with.

int turnScreenOn

Specifies whether the screen should be turned on when the Activity is resumed.

int type

Type of gradient.

int typeface

Default text typeface.

int uiOptions

Extra options for an activity's UI.

int uncertainGestureColor

Color used to draw the user's strokes until we are sure it's a gesture.

int unfocusedMonthDateColor

This constant was deprecated in API level 23. The color for the dates of an unfocused month.

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

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

int unselectedAlpha

Sets the alpha on the items that are not selected.

int updatePeriodMillis

Update period in milliseconds, or 0 if the AppWidget will update itself.

int use32bitAbi

Specify whether the 32 bit version of the ABI should be used in a multiArch application.

int useAppZygote

If true, and this is an isolatedProcess service, the service will be spawned from an Application Zygote, instead of the regular Zygote.

int useBoundsForWidth

May be a boolean value, such as "true" or "false".

int useDefaultMargins

When set to true, tells GridLayout to use default margins when none are specified in a view's layout parameters.

int useEmbeddedDex

Flag to specify if this app (or process) wants to run the dex within its APK but not extracted or locally compiled variants.

int useIntrinsicSizeAsMinimum

Use the drawable's intrinsic width and height as minimum size values.

int useLevel

Whether the drawable level value (see Drawable.getLevel()) is used to scale the gradient.

int useLocalePreferredLineHeightForMinimum

May be a boolean value, such as "true" or "false".

int userVisible

May be a boolean value, such as "true" or "false".

int usesCleartextTraffic

Declare that this application may use cleartext traffic, such as HTTP rather than HTTPS; WebSockets rather than WebSockets Secure; XMPP, IMAP, SMTP without STARTTLS or TLS.

int usesPermissionFlags

Optional: set of flags that should apply to this permission request.

int value

Concrete value to assign to this piece of named meta-data.

int valueFrom

Value the animation starts from.

int valueTo

Value the animation animates to.

int valueType

The type of valueFrom and valueTo.

int variablePadding

If true, allows the drawable's padding to change based on the current state that is selected.

int vendor

The vendor name if this print service is vendor specific.

int version

The version of the feature that is being used.

int versionCode

Internal version code.

int versionCodeMajor

Internal major version code.

int versionMajor

Optional minimum major version of the package that satisfies the dependency.

int versionName

The text shown to the user to indicate the version they have.

int verticalCorrection

This constant was deprecated in API level 29. Copy this definition into your own application project.

int verticalDivider

Default vertical divider between menu items.

int verticalGap

This constant was deprecated in API level 29. Copy this definition into your own application project.

int verticalScrollbarPosition

Determines which side the vertical scroll bar should be placed on.

int verticalSpacing

Defines the default vertical spacing between rows.

int viewportHeight

The height of the canvas the drawing is on.

int viewportWidth

The width of the canvas the drawing is on.

int visibility

Controls the initial visibility of the view.

int visible

Provides initial visibility state of the drawable; the default value is false.

int visibleToInstantApps

Specify whether a component should be visible to instant apps.

int vmSafeMode

Flag indicating whether the application requests the VM to operate in the safe mode.

int voiceIcon

Voice button icon.

int voiceLanguage

If provided, this specifies the spoken language to be expected, and that it will be different than the one set in the Locale.getDefault().

int voiceLanguageModel

If provided, this specifies the language model that should be used by the voice recognition system.

int voiceMaxResults

If provided, enforces the maximum number of results to return, including the "best" result which will always be provided as the SEARCH intent's primary query.

int voicePromptText

If provided, this specifies a prompt that will be displayed during voice input.

int voiceSearchMode

Voice search features are controlled by mode bits in this field.

int wallpaperCloseEnterAnimation

When opening a new activity that hides the wallpaper, while currently showing the wallpaper, this is the animation that is run on the new activity (which is entering the screen).

int wallpaperCloseExitAnimation

When opening a new activity that hides the wallpaper, while currently showing the wallpaper, this is the animation that is run on the old wallpaper activity (which is exiting the screen).

int wallpaperIntraCloseEnterAnimation

When closing a foreround activity that is on top of the wallpaper when the previous activity is also on top of the wallpaper, this is the animation that is run on the previous activity (which is entering the screen).

int wallpaperIntraCloseExitAnimation

When closing a foreround activity that is on top of the wallpaper when the previous activity is also on top of the wallpaper, this is the animation that is run on the current activity (which is exiting the screen).

int wallpaperIntraOpenEnterAnimation

When opening a new activity that is on top of the wallpaper when the current activity is also on top of the wallpaper, this is the animation that is run on the new activity (which is entering the screen).

int wallpaperIntraOpenExitAnimation

When opening a new activity that is on top of the wallpaper when the current activity is also on top of the wallpaper, this is the animation that is run on the current activity (which is exiting the screen).

int wallpaperOpenEnterAnimation

When opening a new activity that shows the wallpaper, while currently not showing the wallpaper, this is the animation that is run on the new wallpaper activity (which is entering the screen).

int wallpaperOpenExitAnimation

When opening a new activity that shows the wallpaper, while currently not showing the wallpaper, this is the animation that is run on the current activity (which is exiting the screen).

int webTextViewStyle

Default WebTextView style.

int webViewStyle

Default WebView style.

int weekDayTextAppearance

The text appearance for the week day abbreviation in the calendar header.

int weekNumberColor

This constant was deprecated in API level 23. The color for the week numbers.

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

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

int weekSeparatorLineColor

This constant was deprecated in API level 23. The color for the separator line between weeks.

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

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

int weightSum

Defines the maximum weight sum.

int widgetCategory

Optional parameter which indicates where this widget can be shown, ie.

int widgetFeatures

Flags indicating various features supported by the widget.

int widgetLayout

The layout for the controllable widget portion of a Preference.

int width

Makes the TextView be exactly this wide.

int windowActionBar

Flag indicating whether this window should have an Action Bar in place of the usual title bar.

int windowActionBarOverlay

Flag indicating whether this window's Action Bar should overlay application content.

int windowActionModeOverlay

Flag indicating whether action modes should overlay window content when there is not reserved space for their UI (such as an Action Bar).

int windowActivityTransitions

Flag indicating whether this window allows Activity Transitions.

int windowAllowEnterTransitionOverlap

Flag indicating whether this Window's transition should overlap with the exiting transition of the calling Activity.

int windowAllowReturnTransitionOverlap

Flag indicating whether this Window's transition should overlap with the exiting transition of the called Activity when the called Activity finishes.

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.

int windowBackground

Drawable to use as the overall window background.

int windowBackgroundBlurRadius

Blur the screen behind the window with the bounds of the window.

int windowBackgroundFallback

Drawable to draw selectively within the inset areas when the windowBackground has been set to null.

int windowBlurBehindEnabled

If set, everything behind the window will be blurred with radius windowBackgroundBlurRadius.

int windowBlurBehindRadius

When windowBlurBehindEnabled is set, this is the amount of blur to apply behind the window.

int windowClipToOutline

Whether to clip window content to the outline of the window background.

int windowCloseOnTouchOutside

Control whether a container should automatically close itself if the user touches outside of it.

int windowContentOverlay

This Drawable is overlaid over the foreground of the Window's content area, usually to place a shadow below the title.

int windowContentTransitionManager

Reference to a TransitionManager XML resource defining the desired transitions between different window content.

int windowContentTransitions

Flag indicating whether this window requests that content changes be performed as scene changes with transitions.

int windowDisablePreview

Flag allowing you to disable the splash screen for a window.

int windowDrawsSystemBarBackgrounds

Flag indicating whether this Window is responsible for drawing the background for the system bars.

int windowElevation

Elevation to use for the window.

int windowEnableSplitTouch

Flag indicating that this window should allow touches to be split across other windows that also support split touch.

int windowEnterAnimation

The animation used when a window is being added.

int windowEnterTransition

Reference to a Transition XML resource defining the desired Transition used to move Views into the initial Window's content Scene.

int windowExitAnimation

The animation used when a window is being removed.

int windowExitTransition

Reference to a Transition XML resource defining the desired Transition used to move Views out of the Window's content Scene when launching a new Activity.

int windowFrame

Drawable to use as a frame around the window.

int windowFullscreen

Flag indicating whether this window should fill the entire screen.

int windowHideAnimation

The animation used when a window is going from VISIBLE to INVISIBLE.

int windowIsFloating

Flag indicating whether this is a floating window.

int windowIsFrameRatePowerSavingsBalanced

Offer Window the ability to opt out the UI Toolkit discrete variable refresh rate.

int windowIsTranslucent

Flag indicating whether this is a translucent window.

int windowLayoutAffinity

Window layout affinity of this activity.

int windowLayoutInDisplayCutoutMode

Controls how the window is laid out if there is a DisplayCutout.

int windowLightNavigationBar

If set, the navigation bar will be drawn such that it is compatible with a light navigation bar background.

int windowLightStatusBar

If set, the status bar will be drawn such that it is compatible with a light status bar background.

int windowMinWidthMajor

The minimum width the window is allowed to be, along the major axis of the screen.

int windowMinWidthMinor

The minimum width the window is allowed to be, along the minor axis of the screen.

int windowNoDisplay

Flag indicating that this window should not be displayed at all.

int windowNoMoveAnimation

Flag indicating whether this window should skip movement animations.

int windowNoTitle

Flag indicating whether there should be no title on this window.

int windowOptOutEdgeToEdgeEnforcement

Flag indicating whether this window would opt-out the edge-to-edge enforcement.

int windowOverscan

This constant was deprecated in API level 30. Overscan areas aren't set by any Android product anymore as of Android 11.

May be a boolean value, such as "true" or "false".

int windowReenterTransition

Reference to a Transition XML resource defining the desired Transition used to move Views in to the scene when returning from a previously-started Activity.

int windowReturnTransition

Reference to a Transition XML resource defining the desired Transition used to move Views out of the scene when the Window is preparing to close.

int windowSharedElementEnterTransition

Reference to a Transition XML resource defining the desired Transition used to move shared elements transferred into the Window's initial content Scene.

int windowSharedElementExitTransition

Reference to a Transition XML resource defining the desired Transition used when starting a new Activity to move shared elements prior to transferring to the called Activity.

int windowSharedElementReenterTransition

Reference to a Transition XML resource defining the desired Transition used for shared elements transferred back to a calling Activity.

int windowSharedElementReturnTransition

Reference to a Transition XML resource defining the desired Transition used to move shared elements transferred back to a calling Activity.

int windowSharedElementsUseOverlay

Indicates whether or not shared elements should use an overlay during transitions.

int windowShowAnimation

The animation used when a window is going from INVISIBLE to VISIBLE.

int windowShowWallpaper

Flag indicating that this window's background should be the user's current wallpaper.

int windowSoftInputMode

Defines the default soft input state that this window would like when it is displayed.

int windowSplashScreenAnimatedIcon

Replace an icon in the center of the starting window, if the object is animated and drawable(e.g. AnimationDrawable, AnimatedVectorDrawable), then it will also play the animation while showing the starting window.

int windowSplashScreenAnimationDuration

This constant was deprecated in API level 33. Not used by framework starting from API level 33. The system estimates the duration of the vector animation automatically.

May be an integer value, such as "100".

int windowSplashScreenBackground

The background color for the splash screen, if not specify then system will calculate from windowBackground.

int windowSplashScreenBehavior

Specify whether this application always wants the icon to be displayed on the splash screen.

int windowSplashScreenBrandingImage

Place a drawable image in the bottom of the starting window.

int windowSplashScreenIconBackgroundColor

Set a background behind the splash screen icon.

int windowSplashscreenContent

This constant was deprecated in API level 31. Use windowSplashscreenAnimatedIcon instead Use windowSplashscreenAnimatedIcon instead.

int windowSwipeToDismiss

This constant was deprecated in API level 30. Swipe-to-dismiss isn't functional anymore.

May be a boolean value, such as "true" or "false".

int windowTitleBackgroundStyle

The style resource to use for a window's title area.

int windowTitleSize

The style resource to use for a window's title bar height.

int windowTitleStyle

The style resource to use for a window's title text.

int windowTransitionBackgroundFadeDuration

The duration, in milliseconds, of the window background fade duration when transitioning into or away from an Activity when called with an Activity Transition.

int windowTranslucentNavigation

Flag indicating whether this window requests a translucent navigation bar.

int windowTranslucentStatus

Flag indicating whether this window requests a translucent status bar.

int writePermission

A specific permission name for write access to a ContentProvider.

int x

A coordinate in the X dimension.

int xlargeScreens

Indicates whether the application supports extra large screen form-factors.

int y

A coordinate in the Y dimension.

int yearListItemTextAppearance

This constant was deprecated in API level 23. Use yearListTextColor.

int yearListSelectorColor

This constant was deprecated in API level 23. No longer displayed.

int yesNoPreferenceStyle

Default style for YesNoPreference.

int zAdjustment

Allows for an adjustment of the Z ordering of the content being animated for the duration of the animation.

int zygotePreloadName

Name of the class that gets invoked for preloading application code, when starting an isolatedProcess service that has useAppZygote set to true.

Public constructors

attr()

Inherited methods

Constants

absListViewStyle

Added in API level 1
public static final int absListViewStyle

Default AbsListView style.

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

Constant Value: 16842858 (0x0101006a)

accessibilityDataSensitive

Added in API level 34
public static final int accessibilityDataSensitive

Describes whether this view should allow interactions from AccessibilityServices only if the service sets the isAccessibilityTool property.

May be an integer value, such as "100".

Must be one of the following constant values.

ConstantValueDescription
auto0The system determines whether the view's accessibility data is sensitive - default (recommended).
no2Allow interactions from all AccessibilityServices, regardless of their isAccessibilityTool property.
yes1Allow interactions from AccessibilityServices only if the service sets the isAccessibilityTool property.

Constant Value: 16844407 (0x01010677)

accessibilityEventTypes

Added in API level 14
public static final int accessibilityEventTypes

The event types this service would like to receive as specified in AccessibilityEvent. This setting can be changed at runtime by calling android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo).

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

ConstantValueDescription
typeAllMaskffffffffReceives AccessibilityEvent.TYPES_ALL_MASK i.e. all events.
typeAnnouncement4000Receives AccessibilityEvent.TYPE_ANNOUNCEMENT events.
typeAssistReadingContext1000000Receives AccessibilityEvent.TYPE_ASSIST_READING_CONTEXT events.
typeContextClicked800000Receives AccessibilityEvent.TYPE_VIEW_CONTEXT_CLICKED events.
typeGestureDetectionEnd80000Receives AccessibilityEvent.TYPE_GESTURE_DETECTION_END events.
typeGestureDetectionStart40000Receives AccessibilityEvent.TYPE_GESTURE_DETECTION_START events.
typeNotificationStateChanged40Receives AccessibilityEvent.TYPE_NOTIFICATION_STATE_CHANGED events.
typeTouchExplorationGestureEnd400Receives AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_END events.
typeTouchExplorationGestureStart200Receives AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_START events.
typeTouchInteractionEnd200000Receives AccessibilityEvent.TYPE_TOUCH_INTERACTION_END events.
typeTouchInteractionStart100000Receives AccessibilityEvent.TYPE_TOUCH_INTERACTION_START events.
typeViewAccessibilityFocusCleared10000Receives AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED events.
typeViewAccessibilityFocused8000Receives AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED events.
typeViewClicked1Receives AccessibilityEvent.TYPE_VIEW_CLICKED events.
typeViewFocused8Receives AccessibilityEvent.TYPE_VIEW_FOCUSED events.
typeViewHoverEnter80Receives AccessibilityEvent.TYPE_VIEW_HOVER_ENTER events.
typeViewHoverExit100Receives AccessibilityEvent.TYPE_VIEW_HOVER_EXIT events.
typeViewLongClicked2Receives AccessibilityEvent.TYPE_VIEW_LONG_CLICKED events.
typeViewScrolled1000Receives AccessibilityEvent.TYPE_VIEW_SCROLLED events.
typeViewSelected4Receives AccessibilityEvent.TYPE_VIEW_SELECTED events.
typeViewTextChanged10Receives AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED events.
typeViewTextSelectionChanged2000Receives AccessibilityEvent.TYPE_VIEW_TEXT_SELECTION_CHANGED events.
typeViewTextTraversedAtMovementGranularity20000Receives AccessibilityEvent.TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY events.
typeWindowContentChanged800Receives AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED events.
typeWindowStateChanged20Receives AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED events.
typeWindowsChanged400000Receives AccessibilityEvent.TYPE_WINDOWS_CHANGED events.

Constant Value: 16843648 (0x01010380)

accessibilityFeedbackType

Added in API level 14
public static final int accessibilityFeedbackType

The feedback types this service provides as specified in AccessibilityServiceInfo. This setting can be changed at runtime by calling android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo).

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

ConstantValueDescription
feedbackAllMaskffffffffProvides AccessibilityServiceInfo.FEEDBACK_ALL_MASK feedback.
feedbackAudible4Provides AccessibilityServiceInfo.FEEDBACK_AUDIBLE feedback.
feedbackGeneric10Provides AccessibilityServiceInfo.FEEDBACK_GENERIC feedback.
feedbackHaptic2Provides AccessibilityServiceInfo.FEEDBACK_HAPTIC feedback.
feedbackSpoken1Provides AccessibilityServiceInfo.FEEDBACK_SPOKEN feedback.
feedbackVisual8Provides AccessibilityServiceInfo.FEEDBACK_VISUAL feedback.

Constant Value: 16843650 (0x01010382)

accessibilityFlags

Added in API level 14
public static final int accessibilityFlags

Additional flags as specified in AccessibilityServiceInfo. This setting can be changed at runtime by calling android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo).

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

ConstantValueDescription
flagDefault1Has flag AccessibilityServiceInfo.DEFAULT.
flagEnableAccessibilityVolume80Has flag AccessibilityServiceInfo.FLAG_ENABLE_ACCESSIBILITY_VOLUME.
flagIncludeNotImportantViews2Has flag AccessibilityServiceInfo.FLAG_INCLUDE_NOT_IMPORTANT_VIEWS.
flagInputMethodEditor8000Has flag AccessibilityServiceInfo.FLAG_INPUT_METHOD_EDITOR.
flagReportViewIds10Has flag AccessibilityServiceInfo.FLAG_REPORT_VIEW_IDS.
flagRequestAccessibilityButton100Has flag AccessibilityServiceInfo.FLAG_REQUEST_ACCESSIBILITY_BUTTON.
flagRequestEnhancedWebAccessibility8Has flag AccessibilityServiceInfo.FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY. Not used by the framework.
flagRequestFilterKeyEvents20Has flag AccessibilityServiceInfo.FLAG_REQUEST_FILTER_KEY_EVENTS.
flagRequestFingerprintGestures200Has flag AccessibilityServiceInfo.FLAG_REQUEST_FINGERPRINT_GESTURES.
flagRequestMultiFingerGestures1000Has flag AccessibilityServiceInfo.FLAG_REQUEST_MULTI_FINGER_GESTURES.
flagRequestShortcutWarningDialogSpokenFeedback400Has flag AccessibilityServiceInfo.FLAG_REQUEST_SHORTCUT_WARNING_DIALOG_SPOKEN_FEEDBACK.
flagRequestTouchExplorationMode4Has flag AccessibilityServiceInfo.FLAG_REQUEST_TOUCH_EXPLORATION_MODE.
flagRetrieveInteractiveWindows40Has flag AccessibilityServiceInfo.FLAG_RETRIEVE_INTERACTIVE_WINDOWS.
flagSendMotionEvents4000
flagServiceHandlesDoubleTap800Has flag AccessibilityServiceInfo.FLAG_SERVICE_HANDLES_DOUBLE_TAP.

Constant Value: 16843652 (0x01010384)

accessibilityHeading

Added in API level 28
public static final int accessibilityHeading

Whether or not this view is a heading for accessibility purposes.

May be a boolean value, such as "true" or "false".

Constant Value: 16844160 (0x01010580)

accessibilityLiveRegion

Added in API level 19
public static final int accessibilityLiveRegion

Indicates to accessibility services whether the user should be notified when this view changes.

May be an integer value, such as "100".

Must be one of the following constant values.

ConstantValueDescription
assertive2Accessibility services should interrupt ongoing speech to immediately announce changes to this view.
none0Accessibility services should not announce changes to this view.
polite1Accessibility services should announce changes to this view.

Constant Value: 16843758 (0x010103ee)

accessibilityPaneTitle

Added in API level 28
public static final int accessibilityPaneTitle

The title this view should present to accessibility as a pane title. See View.setAccessibilityPaneTitle(CharSequence)

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

Constant Value: 16844156 (0x0101057c)

accessibilityTraversalAfter

Added in API level 22
public static final int accessibilityTraversalAfter

Sets the id of a view that screen readers are requested to visit before this view. Requests that a screen-reader visits the content of the other view before the content of this one. This does nothing if either view is not important for accessibility.

May be an integer value, such as "100".

Constant Value: 16843986 (0x010104d2)

accessibilityTraversalBefore

Added in API level 22
public static final int accessibilityTraversalBefore

Sets the id of a view that screen readers are requested to visit after this view. Requests that a screen-reader visits the content of this view before the content of the one it precedes. This does nothing if either view is not important for accessibility.

May be an integer value, such as "100".

Constant Value: 16843985 (0x010104d1)

accountPreferences

Added in API level 5
public static final int accountPreferences

A preferences.xml file for authenticator-specific settings.

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

Constant Value: 16843423 (0x0101029f)

accountType

Added in API level 5
public static final int accountType

The account type this authenticator handles.

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

Constant Value: 16843407 (0x0101028f)

action

Added in API level 1
public static final int action

The action name to assign to the Intent, as per Intent.setAction().

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

Constant Value: 16842797 (0x0101002d)

actionBarDivider

Added in API level 14
public static final int actionBarDivider

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

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

Constant Value: 16843675 (0x0101039b)

actionBarItemBackground

Added in API level 14
public static final int actionBarItemBackground

Custom item state list drawable background for action bar items.

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

Constant Value: 16843676 (0x0101039c)

actionBarPopupTheme

Added in API level 21
public static final int actionBarPopupTheme

Reference to a theme that should be used to inflate popups shown by widgets in the action bar.

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

Constant Value: 16843917 (0x0101048d)

actionBarSize

Added in API level 11
public static final int actionBarSize

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

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Must be one of the following constant values.

ConstantValueDescription
wrap_content0

Constant Value: 16843499 (0x010102eb)

actionBarSplitStyle

Added in API level 14
public static final int actionBarSplitStyle

Reference to a style for the split Action Bar. This style controls the split component that holds the menu/action buttons. actionBarStyle is still used for the primary bar.

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

Constant Value: 16843656 (0x01010388)

actionBarStyle

Added in API level 11
public static final int actionBarStyle

Reference to a style for the Action Bar.

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

Constant Value: 16843470 (0x010102ce)

actionBarTabBarStyle

Added in API level 11
public static final int actionBarTabBarStyle

Reference to a style for the Action Bar Tab Bar.

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

Constant Value: 16843508 (0x010102f4)

actionBarTabStyle

Added in API level 11
public static final int actionBarTabStyle

Default style for tabs within an action bar.

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

Constant Value: 16843507 (0x010102f3)

actionBarTabTextStyle

Added in API level 11
public static final int actionBarTabTextStyle

Reference to a style for the Action Bar Tab text.

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

Constant Value: 16843509 (0x010102f5)

actionBarTheme

Added in API level 21
public static final int actionBarTheme

Reference to a theme that should be used to inflate the action bar. This will be inherited by any widget inflated into the action bar.

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

Constant Value: 16843825 (0x01010431)

actionBarWidgetTheme

Added in API level 14
public static final int actionBarWidgetTheme

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

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

Constant Value: 16843671 (0x01010397)

actionButtonStyle

Added in API level 11
public static final int actionButtonStyle

Default action button style.

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

Constant Value: 16843480 (0x010102d8)

actionDropDownStyle

Added in API level 11
public static final int actionDropDownStyle

Default ActionBar dropdown style.

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

Constant Value: 16843479 (0x010102d7)

actionLayout

Added in API level 11
public static final int actionLayout

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

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

Constant Value: 16843515 (0x010102fb)

actionMenuTextAppearance

Added in API level 11
public static final int actionMenuTextAppearance

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

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

Constant Value: 16843616 (0x01010360)

actionMenuTextColor

Added in API level 11
public static final int actionMenuTextColor

Color for text that appears within action menu items.

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

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

Constant Value: 16843617 (0x01010361)

actionModeBackground

Added in API level 11
public static final int actionModeBackground

Background drawable to use for action mode UI.

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

Constant Value: 16843483 (0x010102db)

actionModeCloseButtonStyle

Added in API level 11
public static final int actionModeCloseButtonStyle

Reference to a style for the Action Mode close button.

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

Constant Value: 16843511 (0x010102f7)

actionModeCloseDrawable

Added in API level 11
public static final int actionModeCloseDrawable

Drawable to use for the close action mode button.

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

Constant Value: 16843484 (0x010102dc)

actionModeCopyDrawable

Added in API level 11
public static final int actionModeCopyDrawable

Drawable to use for the Copy action button in Contextual Action Bar.

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

Constant Value: 16843538 (0x01010312)

actionModeCutDrawable

Added in API level 11
public static final int actionModeCutDrawable

Drawable to use for the Cut action button in Contextual Action Bar.

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

Constant Value: 16843537 (0x01010311)

actionModeFindDrawable

Added in API level 21
public static final int actionModeFindDrawable

Drawable to use for the Find action button in WebView selection action modes.

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

Constant Value: 16843898 (0x0101047a)

actionModePasteDrawable

Added in API level 11
public static final int actionModePasteDrawable

Drawable to use for the Paste action button in Contextual Action Bar.

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

Constant Value: 16843539 (0x01010313)

actionModeSelectAllDrawable

Added in API level 14
public static final int actionModeSelectAllDrawable

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

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

Constant Value: 16843646 (0x0101037e)

actionModeShareDrawable

Added in API level 21
public static final int actionModeShareDrawable

Drawable to use for the Share action button in WebView selection action modes.

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

Constant Value: 16843897 (0x01010479)

actionModeSplitBackground

Added in API level 14
public static final int actionModeSplitBackground

Background drawable to use for action mode UI in the lower split bar.

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

Constant Value: 16843677 (0x0101039d)

actionModeStyle

Added in API level 14
public static final int actionModeStyle

Reference to a style for the Action Mode.

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

Constant Value: 16843668 (0x01010394)

actionModeWebSearchDrawable

Added in API level 21
public static final int actionModeWebSearchDrawable

Drawable to use for the Web Search action button in WebView selection action modes.

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

Constant Value: 16843899 (0x0101047b)

actionOverflowButtonStyle

Added in API level 11
public static final int actionOverflowButtonStyle

Reference to a style for Action Bar overflow buttons.

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

Constant Value: 16843510 (0x010102f6)

actionOverflowMenuStyle

Added in API level 21
public static final int actionOverflowMenuStyle

Reference to a style for the Action Bar menu.

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

Constant Value: 16843844 (0x01010444)

actionProviderClass

Added in API level 14
public static final int actionProviderClass

The name of an optional ActionProvider class to instantiate an action view and perform operations such as default action for that menu item. See MenuItem.setActionProvider(android.view.ActionProvider) for more info.

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

Constant Value: 16843657 (0x01010389)

actionViewClass

Added in API level 11
public static final int actionViewClass

The name of an optional View class to instantiate and use as an action view. See MenuItem.setActionView(android.view.View) for more info.

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

Constant Value: 16843516 (0x010102fc)

activatedBackgroundIndicator

Added in API level 11
public static final int activatedBackgroundIndicator

Drawable used as a background for activated items.

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

Constant Value: 16843517 (0x010102fd)

activityCloseEnterAnimation

Added in API level 1
public static final int activityCloseEnterAnimation

When closing the current activity, this is the animation that is run on the next activity (which is entering the screen).

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

Constant Value: 16842938 (0x010100ba)

activityCloseExitAnimation

Added in API level 1
public static final int activityCloseExitAnimation

When closing the current activity, this is the animation that is run on the current activity (which is exiting the screen).

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

Constant Value: 16842939 (0x010100bb)

activityOpenEnterAnimation

Added in API level 1
public static final int activityOpenEnterAnimation

When opening a new activity, this is the animation that is run on the next activity (which is entering the screen).

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

Constant Value: 16842936 (0x010100b8)

activityOpenExitAnimation

Added in API level 1
public static final int activityOpenExitAnimation

When opening a new activity, this is the animation that is run on the previous activity (which is exiting the screen).

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

Constant Value: 16842937 (0x010100b9)

addPrintersActivity

Added in API level 19
public static final int addPrintersActivity

Fully qualified class name of an activity that allows the user to manually add printers to this print service.

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

Constant Value: 16843750 (0x010103e6)

addStatesFromChildren

Added in API level 1
public static final int addStatesFromChildren

Sets whether this ViewGroup's drawable states also include its children's drawable states. This is used, for example, to make a group appear to be focused when its child EditText or button is focused.

May be a boolean value, such as "true" or "false".

Constant Value: 16842992 (0x010100f0)

adjustViewBounds

Added in API level 1
public static final int adjustViewBounds

Set this to true if you want the ImageView to adjust its bounds to preserve the aspect ratio of its drawable.

May be a boolean value, such as "true" or "false".

Constant Value: 16843038 (0x0101011e)

advancedPrintOptionsActivity

Added in API level 19
public static final int advancedPrintOptionsActivity

Fully qualified class name of an activity with advanced print options specific to this print service.

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

Constant Value: 16843761 (0x010103f1)

alertDialogIcon

Added in API level 11
public static final int alertDialogIcon

Icon drawable to use for alerts.

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

Constant Value: 16843605 (0x01010355)

alertDialogStyle

Added in API level 1
public static final int alertDialogStyle

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

Constant Value: 16842845 (0x0101005d)

alertDialogTheme

Added in API level 11
public static final int alertDialogTheme

Theme to use for alert dialogs spawned from this theme.

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

Constant Value: 16843529 (0x01010309)

alignmentMode

Added in API level 14
public static final int alignmentMode

Alignment constants.

Must be one of the following constant values.

ConstantValueDescription
alignBounds0Align the bounds of the children. See GridLayout.ALIGN_BOUNDS.
alignMargins1Align the margins of the children. See GridLayout.ALIGN_MARGINS.

Constant Value: 16843642 (0x0101037a)

allContactsName

Added in API level 11
public static final int allContactsName

Resource representing the term "All Contacts" (for example, "All Friends" or "All connections"). Optional (Default is "All Contacts").

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

Constant Value: 16843468 (0x010102cc)

allow

Added in API level 35
public static final int allow

Specify if this group is allow rule or disallow rule. If this attribute is not specified then it is assumed to be true

May be a boolean value, such as "true" or "false".

Constant Value: 16844430 (0x0101068e)

allowAudioPlaybackCapture

Added in API level 29
public static final int allowAudioPlaybackCapture

If true the app's non sensitive audio can be captured by other apps with AudioPlaybackCaptureConfiguration and a MediaProjection. If false the audio played by the application will never be captured by non system apps. It is equivalent to limiting AudioManager.setAllowedCapturePolicy(int) to AudioAttributes.ALLOW_CAPTURE_BY_SYSTEM.

Non sensitive audio is defined as audio whose AttributeUsage is USAGE_UNKNOWN), USAGE_MEDIA) or USAGE_GAME). All other usages like USAGE_VOICE_COMMUNICATION will not be captured.

The default value is: - true for apps with targetSdkVersion >= 29 (Q). - false for apps with targetSdkVersion < 29.

See AudioPlaybackCaptureConfiguration for more detail.

May be a boolean value, such as "true" or "false".

Constant Value: 16844289 (0x01010601)

allowBackup

Added in API level 4
public static final int allowBackup

Whether to allow the application to participate in the backup and restore infrastructure. If this attribute is set to false, no backup or restore of the application will ever be performed, even by a full-system backup that would otherwise cause all application data to be saved via adb. The default value of this attribute is true.

May be a boolean value, such as "true" or "false".

Constant Value: 16843392 (0x01010280)

allowClearUserData

Added in API level 1
public static final int allowClearUserData

Option to let applications specify that user data can/cannot be cleared. This flag is turned on by default.

Starting from API level 29 this flag only controls if the user can clear app data from Settings. To control clearing the data after a failed restore use allowClearUserDataOnFailedRestore flag.

This attribute is usable only by applications included in the system image. Third-party apps cannot use it.

May be a boolean value, such as "true" or "false".

Constant Value: 16842757 (0x01010005)

allowClickWhenDisabled

Added in API level 31
public static final int allowClickWhenDisabled

Whether or not allow clicks on disabled view.

May be a boolean value, such as "true" or "false".

Constant Value: 16844312 (0x01010618)

allowCrossUidActivitySwitchFromBelow

Added in API level 35
public static final int allowCrossUidActivitySwitchFromBelow

May be a boolean value, such as "true" or "false".

Constant Value: 16844449 (0x010106a1)

allowEmbedded

Added in API level 20
public static final int allowEmbedded

Indicate that the activity can be launched as the embedded child of another activity. Particularly in the case where the child lives in a container such as a Display owned by another activity.

The default value of this attribute is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16843765 (0x010103f5)

allowGameAngleDriver

Added in API level 33
public static final int allowGameAngleDriver

Set true to enable ANGLE.

May be a boolean value, such as "true" or "false".

Constant Value: 16844376 (0x01010658)

allowGameDownscaling

Added in API level 33
public static final int allowGameDownscaling

Set true to allow resolution downscaling intervention.

May be a boolean value, such as "true" or "false".

Constant Value: 16844377 (0x01010659)

allowGameFpsOverride

Added in API level 33
public static final int allowGameFpsOverride

Set true to allow FPS override intervention.

May be a boolean value, such as "true" or "false".

Constant Value: 16844378 (0x0101065a)

allowNativeHeapPointerTagging

Added in API level 30
public static final int allowNativeHeapPointerTagging

If true this app will receive tagged pointers to native heap allocations from functions like malloc() on compatible devices. Note that this may not always be respected due to policy or backwards compatibility reasons. See the Tagged Pointers document for more information on this feature. The default value is true.

May be a boolean value, such as "true" or "false".

Constant Value: 16844306 (0x01010612)

allowParallelSyncs

Added in API level 11
public static final int allowParallelSyncs

Set to true to tell the SyncManager that this SyncAdapter supports multiple simultaneous syncs for the same account type and authority. Otherwise the SyncManager will be sure not to issue a start sync request to this SyncAdapter if the SyncAdapter is already syncing another account. Defaults to false.

May be a boolean value, such as "true" or "false".

Constant Value: 16843570 (0x01010332)

allowSharedIsolatedProcess

Added in API level 34
public static final int allowSharedIsolatedProcess

If true, and this is an isolatedProcess service, the service is allowed to be bound in a shared isolated process with other isolated services. Note that these other isolated services can also belong to other apps from different vendors.

Shared isolated processes are created when using the {@link android.content.Context#BIND_SHARED_ISOLATED_PROCESS) during service binding.

Note that when this flag is used, the {@link android.R.attr#process} attribute is ignored when the process is bound into a shared isolated process by a client.

May be a boolean value, such as "true" or "false".

Constant Value: 16844413 (0x0101067d)

allowSingleTap

Added in API level 3
public static final int allowSingleTap

Indicates whether the drawer can be opened/closed by a single tap on the handle. (If false, the user must drag or fling, or click using the trackball, to open/close the drawer.) Default is true.

May be a boolean value, such as "true" or "false".

Constant Value: 16843353 (0x01010259)

allowTaskReparenting

Added in API level 1
public static final 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. Use with the application tag (to supply a default for all activities in the application), or with an activity tag (to supply a specific setting for that component).

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.

May be a boolean value, such as "true" or "false".

Constant Value: 16843268 (0x01010204)

allowUndo

Added in API level 23
public static final int allowUndo

Whether undo should be allowed for editable text. Defaults to true.

May be a boolean value, such as "true" or "false".

Constant Value: 16843999 (0x010104df)

allowUntrustedActivityEmbedding

Added in API level 33
public static final int allowUntrustedActivityEmbedding

Indicate that the activity can be embedded by untrusted hosts. In this case the interactions and visibility of the embedded activity may be limited.

The default value of this attribute is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16844393 (0x01010669)

allowUpdateOwnership

Added in API level 34
public static final int allowUpdateOwnership

May be a boolean value, such as "true" or "false".

Constant Value: 16844416 (0x01010680)

alpha

Added in API level 11
public static final int alpha

alpha property of the view, as a value between 0 (completely transparent) and 1 (completely opaque).

May be a floating point value, such as "1.2".

Constant Value: 16843551 (0x0101031f)

alphabeticModifiers

Added in API level 26
public static final int alphabeticModifiers

The alphabetic modifier key. This is the modifier when using a keyboard with alphabetic keys. The values should be kept in sync with KeyEvent

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

ConstantValueDescription
ALT2
CTRL1000
FUNCTION8
META10000
SHIFT1
SYM4

Constant Value: 16844110 (0x0101054e)

alphabeticShortcut

Added in API level 1
public static final int alphabeticShortcut

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

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

Constant Value: 16843235 (0x010101e3)

alwaysDrawnWithCache

Added in API level 1
public static final int alwaysDrawnWithCache

Defines whether the ViewGroup should always draw its children using their drawing cache or not. The default value is true. Deprecated: The view drawing cache was largely made obsolete with the introduction of hardware-accelerated rendering in API 11.

May be a boolean value, such as "true" or "false".

Constant Value: 16842991 (0x010100ef)

alwaysRetainTaskState

Added in API level 1
public static final int alwaysRetainTaskState

Specify whether an activity'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.

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.

May be a boolean value, such as "true" or "false".

Constant Value: 16843267 (0x01010203)

amPmBackgroundColor

Added in API level 21
Deprecated in API level 23
public static final int amPmBackgroundColor

This constant was deprecated in API level 23.
Use headerBackground instead.

The background color state list for the AM/PM selectors.

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

Constant Value: 16843941 (0x010104a5)

amPmTextColor

Added in API level 21
Deprecated in API level 23
public static final int amPmTextColor

This constant was deprecated in API level 23.
Use headerTextColor instead.

The color for the AM/PM selectors.

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

Constant Value: 16843940 (0x010104a4)

ambientShadowAlpha

Added in API level 21
public static final int ambientShadowAlpha

Alpha value of the ambient shadow projected by elevated views, between 0 and 1.

May be a floating point value, such as "1.2".

Constant Value: 16843966 (0x010104be)

angle

Added in API level 1
public static final int angle

Angle of the gradient, used only with linear gradient. Must be a multiple of 45 in the range [0, 315].

May be a floating point value, such as "1.2".

Constant Value: 16843168 (0x010101a0)

animateFirstView

Added in API level 11
public static final int animateFirstView

Defines whether to animate the current View when the ViewAnimation is first displayed.

May be a boolean value, such as "true" or "false".

Constant Value: 16843477 (0x010102d5)

animateLayoutChanges

Added in API level 11
public static final int animateLayoutChanges

Defines whether changes in layout (caused by adding and removing items) should cause a LayoutTransition to run. When this flag is set to true, a default LayoutTransition object will be set on the ViewGroup container and default animations will run when these layout changes occur.

May be a boolean value, such as "true" or "false".

Constant Value: 16843506 (0x010102f2)

animateOnClick

Added in API level 3
public static final int animateOnClick

Indicates whether the drawer should be opened/closed with an animation when the user clicks the handle. Default is true.

May be a boolean value, such as "true" or "false".

Constant Value: 16843356 (0x0101025c)

animatedImageDrawable

Added in API level 30
public static final int animatedImageDrawable

Animated image of the target of accessibility shortcut purpose or behavior, to help users understand how the target of accessibility shortcut can help them.

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

Constant Value: 16844298 (0x0101060a)

animation

Added in API level 1
public static final int animation

Animation to use on each child.

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

Constant Value: 16843213 (0x010101cd)

animationCache

Added in API level 1
public static final int animationCache

Defines whether layout animations should create a drawing cache for their children. Enabling the animation cache consumes more memory and requires a longer initialization but provides better performance. The animation cache is enabled by default.

May be a boolean value, such as "true" or "false".

Constant Value: 16842989 (0x010100ed)

animationDuration

Added in API level 1
public static final int animationDuration

Sets how long a transition animation should run (in milliseconds) when layout has changed. Only relevant if animation is turned on.

May be an integer value, such as "100".

Constant Value: 16843026 (0x01010112)

animationOrder

Added in API level 1
public static final int animationOrder

The order in which the animations will be started.

Must be one of the following constant values.

ConstantValueDescription
normal0Animations are started in the natural order.
random2Animations are started randomly.
reverse1Animations are started in the reverse order.

Constant Value: 16843214 (0x010101ce)

animationResolution

Added in API level 11
Deprecated in API level 16
public static final int animationResolution

This constant was deprecated in API level 16.
Not used by the framework. Timeout between frames of animation in milliseconds. .

May be an integer value, such as "100".

Constant Value: 16843546 (0x0101031a)

antialias

Added in API level 1
public static final int antialias

Enables or disables antialiasing. Antialiasing can be used to smooth the edges of a bitmap when rotated. Default value is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16843034 (0x0101011a)

anyDensity

Added in API level 4
Deprecated in API level 30
public static final int anyDensity

This constant was deprecated in API level 30.
Should always be true by default and not overridden.

May be a boolean value, such as "true" or "false".

Indicates whether the application can accommodate any screen density. This is assumed true if targetSdkVersion is 4 or higher.

Constant Value: 16843372 (0x0101026c)

apduServiceBanner

Added in API level 19
public static final int apduServiceBanner

A drawable that can be rendered in Android's system UI for representing the service.

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

Constant Value: 16843757 (0x010103ed)

apiKey

Added in API level 1
public static final int apiKey

Value is a string that specifies the Maps API Key to use.

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

Constant Value: 16843281 (0x01010211)

appCategory

Added in API level 26
public static final int appCategory

Declare the category of this app. Categories are used to cluster multiple apps together into meaningful groups, such as when summarizing battery, network, or disk usage. Apps should only define this value when they fit well into one of the specific categories.

Must be one of the following constant values.

ConstantValueDescription
accessibility8Apps which are primarily accessibility apps, such as screen-readers.
audio1Apps which primarily work with audio or music, such as music players.
game0Apps which are primarily games.
image3Apps which primarily work with images or photos, such as camera or gallery apps.
maps6Apps which are primarily maps apps, such as navigation apps.
news5Apps which are primarily news apps, such as newspapers, magazines, or sports apps.
productivity7Apps which are primarily productivity apps, such as cloud storage or workplace apps.
social4Apps which are primarily social apps, such as messaging, communication, email, or social network apps.
video2Apps which primarily work with video or movies, such as streaming video apps.

Constant Value: 16844101 (0x01010545)

appComponentFactory

Added in API level 28
public static final int appComponentFactory

The (optional) fully-qualified name for a subclass of AppComponentFactory that the system uses to instantiate every other manifest defined class. Most applications don't need this attribute. If it's not specified, the system instantiates items without it.

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

Constant Value: 16844154 (0x0101057a)

attributionTags

Added in API level 31
public static final int attributionTags

Attribution tag to be used for permission sub-attribution if a permission is checked in Context.sendBroadcast(Intent, String). Multiple tags can be specified separated by '|'.

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

Constant Value: 16844354 (0x01010642)

attributionsAreUserVisible

Added in API level 31
public static final int attributionsAreUserVisible

Whether attributions provided are meant to be user-visible.

May be a boolean value, such as "true" or "false".

Constant Value: 16844363 (0x0101064b)

author

Added in API level 7
public static final int author

Name of the author and/or source/collection of this component, for example, Art Collection, Picasso.

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

Constant Value: 16843444 (0x010102b4)

authorities

Added in API level 1
public static final int authorities

Specify the authorities under which this content provider can be found. Multiple authorities may be supplied by separating them with a semicolon. Authority names should use a Java-style naming convention (such as 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.

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

Constant Value: 16842776 (0x01010018)

autoAdvanceViewId

Added in API level 11
public static final int autoAdvanceViewId

The view id of the AppWidget subview which should be auto-advanced. by the widget's host.

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

Constant Value: 16843535 (0x0101030f)

autoCompleteTextViewStyle

Added in API level 1
public static final int autoCompleteTextViewStyle

Default AutoCompleteTextView style.

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

Constant Value: 16842859 (0x0101006b)

autoHandwritingEnabled

Added in API level 33
public static final int autoHandwritingEnabled

Whether or not the auto handwriting initiation is enabled in this View.

For a view with an active InputConnection, if auto handwriting initiation is enabled, stylus movement within its view boundary will automatically trigger the handwriting mode. See View.setAutoHandwritingEnabled(boolean).

The default value of this flag is configurable by the device manufacturer.

May be a boolean value, such as "true" or "false".

Constant Value: 16844382 (0x0101065e)

Added in API level 1
public static final int autoLink

Controls whether links such as urls and email addresses are automatically found and converted to clickable links. The default value is "none", disabling this feature.

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

ConstantValueDescription
allfMatch all patterns (equivalent to web|email|phone|map).
email2Match email addresses.
map8Match map addresses. Deprecated: see Linkify.MAP_ADDRESSES.
none0Match no patterns (default).
phone4Match phone numbers.
web1Match Web URLs.

Constant Value: 16842928 (0x010100b0)

autoMirrored

Added in API level 19
public static final int autoMirrored

Indicates if the drawable needs to be mirrored when its layout direction is RTL (right-to-left). See Drawable.setAutoMirrored(boolean).

May be a boolean value, such as "true" or "false".

Constant Value: 16843754 (0x010103ea)

autoRemoveFromRecents

Added in API level 21
public static final int autoRemoveFromRecents

Tasks launched by activities with this attribute will remain in the recent tasks list until the last activity in the task is completed. When that happens the task will be automatically removed from the recent tasks list. This overrides the caller's use of Intent.FLAG_ACTIVITY_RETAIN_IN_RECENTS

May be a boolean value, such as "true" or "false".

Constant Value: 16843847 (0x01010447)

autoRevokePermissions

Added in API level 30
public static final int autoRevokePermissions

No longer used. Declaring this does nothing

Must be one of the following constant values.

ConstantValueDescription
allowed0No longer used
disallowed2No longer used
discouraged1No longer used

Constant Value: 16844307 (0x01010613)

autoSizeMaxTextSize

Added in API level 26
public static final int autoSizeMaxTextSize

The maximum text size constraint to be used when auto-sizing text.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844102 (0x01010546)

autoSizeMinTextSize

Added in API level 26
public static final int autoSizeMinTextSize

The minimum text size constraint to be used when auto-sizing text.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844088 (0x01010538)

autoSizePresetSizes

Added in API level 26
public static final int autoSizePresetSizes

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

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

May be an integer value, such as "100".

May be a boolean value, such as "true" or "false".

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

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16844087 (0x01010537)

autoSizeStepGranularity

Added in API level 26
public static final int autoSizeStepGranularity

Specify the auto-size step size if autoSizeTextType is set to uniform. The default is 1px. Overwrites autoSizePresetSizes if set.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844086 (0x01010536)

autoSizeTextType

Added in API level 26
public static final int autoSizeTextType

Specify the type of auto-size. Note that this feature is not supported by EditText, works only for TextView.

Must be one of the following constant values.

ConstantValueDescription
none0No auto-sizing (default).
uniform1Uniform horizontal and vertical text size scaling to fit within the container.

Constant Value: 16844085 (0x01010535)

autoStart

Added in API level 7
public static final int autoStart

When true, automatically start animating.

May be a boolean value, such as "true" or "false".

Constant Value: 16843445 (0x010102b5)

autoText

Added in API level 1
Deprecated in API level 15
public static final int autoText

This constant was deprecated in API level 15.
Use inputType instead.

If set, specifies that this TextView has a textual input method and automatically corrects some common spelling errors. The default is "false".

May be a boolean value, such as "true" or "false".

Constant Value: 16843114 (0x0101016a)

autoTransact

Added in API level 35
public static final int autoTransact

May be a boolean value, such as "true" or "false".

Constant Value: 16844441 (0x01010699)

autoUrlDetect

Added in API level 4
public static final int autoUrlDetect

If provided and true, URLs entered in the search dialog while searching within this activity would be detected and treated as URLs (show a 'go' button in the keyboard and invoke the browser directly when user launches the URL instead of passing the URL to the activity). If set to false any URLs entered are treated as normal query text. The default value is false. Optional attribute..

May be a boolean value, such as "true" or "false".

Constant Value: 16843404 (0x0101028c)

autoVerify

Added in API level 23
public static final int autoVerify

Specify whether an activity intent filter will need to be verified thru its set of data URIs. This will only be used when the Intent's action is set to Intent.ACTION_VIEW and the Intent's category is set to Intent.CATEGORY_BROWSABLE and the intern filter data scheme is set to "http" or "https". When set to true, the intent filter will need to use its data tag for getting the URIs to verify with. For each URI, an HTTPS network request will be done to /.well-known/statements.json host to verify that the web site is okay with the app intercepting the URI.

May be a boolean value, such as "true" or "false".

Constant Value: 16844014 (0x010104ee)

autofillHints

Added in API level 26
public static final int autofillHints

Describes the content of a view so that a autofill service can fill in the appropriate data. Multiple hints can be combined in a comma separated list or an array of strings to mean e.g. emailAddress or postalAddress.

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

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

Constant Value: 16844118 (0x01010556)

autofilledHighlight

Added in API level 26
public static final int autofilledHighlight

Drawable to be drawn over the view to mark it as autofilled

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

Constant Value: 16844136 (0x01010568)

backdropColor

Added in API level 33
public static final int backdropColor

Special option for window animations: whether the window's background should be used as a background to the animation.

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

Constant Value: 16844402 (0x01010672)

background

Added in API level 1
public static final int background

A drawable to use as the background. This can be either a reference to a full drawable resource (such as a PNG image, 9-patch, XML state list description, etc), or a solid color such as "#ff000000" (black).

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

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

Constant Value: 16842964 (0x010100d4)

backgroundDimAmount

Added in API level 1
public static final int backgroundDimAmount

Default background dim amount when a menu, dialog, or something similar pops up.

May be a floating point value, such as "1.2".

Constant Value: 16842802 (0x01010032)

backgroundDimEnabled

Added in API level 3
public static final int backgroundDimEnabled

Control whether dimming behind the window is enabled. The default theme does not set this value, meaning it is based on whether the window is floating.

May be a boolean value, such as "true" or "false".

Constant Value: 16843295 (0x0101021f)

backgroundSplit

Added in API level 14
public static final int backgroundSplit

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

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

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

Constant Value: 16843659 (0x0101038b)

backgroundStacked

Added in API level 14
public static final int backgroundStacked

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

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

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

Constant Value: 16843658 (0x0101038a)

backgroundTint

Added in API level 21
public static final int backgroundTint

Tint to apply to the background.

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

Constant Value: 16843883 (0x0101046b)

backgroundTintMode

Added in API level 21
public static final int backgroundTintMode

Blending mode used to apply the background tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable\u2019s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable\u2019s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

Constant Value: 16843884 (0x0101046c)

backupAgent

Added in API level 4
public static final int backupAgent

The name of the class subclassing BackupAgent to manage backup and restore of the application's data on external storage.

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

Constant Value: 16843391 (0x0101027f)

backupInForeground

Added in API level 24
public static final int backupInForeground

Indicates that full-data backup operations for this application may be performed even if the application is in a foreground-equivalent state. Use with caution! Setting this flag to true can impact app behavior while the user is interacting with the device.

If unspecified, the default value of this attribute is false, which means that the OS will avoid backing up the application while it is running in the foreground (such as a music app that is actively playing music via a service in the startForeground() state).

May be a boolean value, such as "true" or "false".

Constant Value: 16844058 (0x0101051a)

Added in API level 21
public static final int banner

A Drawable resource providing an extended graphical banner for its associated item. Use with the application tag (to supply a default banner for all application activities), or with the activity, tag to supply a banner for a specific activity.

The given banner will be used to display to the user a graphical representation of an activity in the Leanback application launcher. Since banners are displayed only in the Leanback launcher, they should only be used with activities (and applications) that support Leanback mode. These are activities that handle Intents of category Intent.CATEGORY_LEANBACK_LAUNCHER.

This must be a reference to a Drawable resource containing the image definition.

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

Constant Value: 16843762 (0x010103f2)

baseline

Added in API level 11
public static final int baseline

The offset of the baseline within this view. See {see android.view.View#getBaseline} for details

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843548 (0x0101031c)

baselineAlignBottom

Added in API level 1
public static final int baselineAlignBottom

If true, the image view will be baseline aligned with based on its bottom edge.

May be a boolean value, such as "true" or "false".

Constant Value: 16843042 (0x01010122)

baselineAligned

Added in API level 1
public static final int baselineAligned

When set to false, prevents the layout from aligning its children's baselines. This attribute is particularly useful when the children use different values for gravity. The default value is true.

May be a boolean value, such as "true" or "false".

Constant Value: 16843046 (0x01010126)

baselineAlignedChildIndex

Added in API level 1
public static final 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 (that is, which child TextView).

May be an integer value, such as "100".

Constant Value: 16843047 (0x01010127)

bitmap

Added in API level 24
public static final int bitmap

Drawable to use as the icon bitmap.

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

Constant Value: 16844054 (0x01010516)

borderlessButtonStyle

Added in API level 11
public static final int borderlessButtonStyle

Style for buttons without an explicit border, often used in groups.

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

Constant Value: 16843563 (0x0101032b)

bottom

Added in API level 1
public static final int bottom

Amount of bottom padding inside the gradient shape.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843184 (0x010101b0)

bottomBright

Added in API level 1
public static final int bottomBright

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

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

Constant Value: 16842957 (0x010100cd)

bottomDark

Added in API level 1
public static final int bottomDark

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

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

Constant Value: 16842953 (0x010100c9)

bottomLeftRadius

Added in API level 1
public static final int bottomLeftRadius

Radius of the bottom left corner.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843179 (0x010101ab)

bottomMedium

Added in API level 1
public static final int bottomMedium

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

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

Constant Value: 16842958 (0x010100ce)

bottomOffset

Added in API level 3
public static final int bottomOffset

Extra offset for the handle at the bottom of the SlidingDrawer.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843351 (0x01010257)

bottomRightRadius

Added in API level 1
public static final int bottomRightRadius

Radius of the bottom right corner.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843180 (0x010101ac)

Added in API level 11
public static final int breadCrumbShortTitle

The short title for the bread crumb of this item.

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

Constant Value: 16843524 (0x01010304)

Added in API level 11
public static final int breadCrumbTitle

The title for the bread crumb of this item.

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

Constant Value: 16843523 (0x01010303)

breakStrategy

Added in API level 23
public static final int breakStrategy

Break strategy (control over paragraph layout).

Must be one of the following constant values.

ConstantValueDescription
balanced2Line breaking strategy balances line lengths.
high_quality1Line breaking uses high-quality strategy, including hyphenation.
simple0Line breaking uses simple strategy.

Constant Value: 16843997 (0x010104dd)

bufferType

Added in API level 1
public static final int bufferType

Determines the minimum type that getText() will return. The default is "normal". Note that EditText and LogTextBox always return Editable, even if you specify something less powerful here.

Must be one of the following constant values.

ConstantValueDescription
editable2Can only return Spannable and Editable.
normal0Can return any CharSequence, possibly a Spanned one if the source text was Spanned.
spannable1Can only return Spannable.

Constant Value: 16843086 (0x0101014e)

button

Added in API level 1
public static final int button

Drawable used for the button graphic (for example, checkbox and radio button).

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

Constant Value: 16843015 (0x01010107)

buttonBarButtonStyle

Added in API level 11
public static final int buttonBarButtonStyle

Style for buttons within button bars.

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

Constant Value: 16843567 (0x0101032f)

buttonBarNegativeButtonStyle

Added in API level 21
public static final int buttonBarNegativeButtonStyle

Style for the "negative" buttons within button bars.

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

Constant Value: 16843915 (0x0101048b)

buttonBarNeutralButtonStyle

Added in API level 21
public static final int buttonBarNeutralButtonStyle

Style for the "neutral" buttons within button bars.

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

Constant Value: 16843914 (0x0101048a)

buttonBarPositiveButtonStyle

Added in API level 21
public static final int buttonBarPositiveButtonStyle

Style for the "positive" buttons within button bars.

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

Constant Value: 16843913 (0x01010489)

buttonBarStyle

Added in API level 11
public static final int buttonBarStyle

Style for button bars.

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

Constant Value: 16843566 (0x0101032e)

buttonCornerRadius

Added in API level 28
public static final int buttonCornerRadius

Corner radius of buttons.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844149 (0x01010575)

buttonGravity

Added in API level 24
public static final int buttonGravity

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

ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
top30Push object to the top of its container, not changing its size.

Constant Value: 16844030 (0x010104fe)

buttonStyle

Added in API level 1
public static final int buttonStyle

Normal Button style.

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

Constant Value: 16842824 (0x01010048)

buttonStyleInset

Added in API level 1
public static final int buttonStyleInset

Button style to inset into an EditText.

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

Constant Value: 16842826 (0x0101004a)

buttonStyleSmall

Added in API level 1
public static final int buttonStyleSmall

Small Button style.

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

Constant Value: 16842825 (0x01010049)

buttonStyleToggle

Added in API level 1
public static final int buttonStyleToggle

ToggleButton style.

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

Constant Value: 16842827 (0x0101004b)

buttonTint

Added in API level 21
public static final int buttonTint

Tint to apply to the button graphic.

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

Constant Value: 16843887 (0x0101046f)

buttonTintMode

Added in API level 21
public static final int buttonTintMode

Blending mode used to apply the button graphic tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable\u2019s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable\u2019s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

Constant Value: 16843888 (0x01010470)

cacheColorHint

Added in API level 1
public static final int cacheColorHint

Indicates that this list will always be drawn on top of solid, single-color opaque background. This allows the list to optimize drawing.

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

Constant Value: 16843009 (0x01010101)

calendarTextColor

Added in API level 21
public static final int calendarTextColor

The text color list of the calendar.

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

Constant Value: 16843931 (0x0101049b)

calendarViewShown

Added in API level 11
public static final int calendarViewShown

Whether the calendar view is shown. Only valid for "spinner" mode.

May be a boolean value, such as "true" or "false".

Constant Value: 16843596 (0x0101034c)

calendarViewStyle

Added in API level 11
public static final int calendarViewStyle

The CalendarView style.

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

Constant Value: 16843613 (0x0101035d)

canControlMagnification

Added in API level 24
public static final int canControlMagnification

Attribute whether the accessibility service wants to be able to control display magnification.

May be a boolean value, such as "true" or "false".

Constant Value: 16844039 (0x01010507)

canDisplayOnRemoteDevices

Added in API level 33
public static final int canDisplayOnRemoteDevices

Indicates whether the activity can be displayed on a remote device which may or may not be running Android.

May be a boolean value, such as "true" or "false".

Constant Value: 16844368 (0x01010650)

canPauseRecording

Added in API level 31
public static final int canPauseRecording

Attribute whether the TV input service can pause recording programs. This value can be changed at runtime by calling TvInputManager.updateTvInputInfo(android.media.tv.TvInputInfo) .

May be a boolean value, such as "true" or "false".

Constant Value: 16844314 (0x0101061a)

canPerformGestures

Added in API level 24
public static final int canPerformGestures

Attribute whether the accessibility service wants to be able to perform gestures.

May be a boolean value, such as "true" or "false".

Constant Value: 16844045 (0x0101050d)

canRecord

Added in API level 24
public static final int canRecord

Attribute whether the TV input service can record programs. This value can be changed at runtime by calling TvInputManager.updateTvInputInfo(android.media.tv.TvInputInfo).

May be a boolean value, such as "true" or "false".

Constant Value: 16844060 (0x0101051c)

canRequestEnhancedWebAccessibility

Added in API level 18
Deprecated in API level 26
public static final int canRequestEnhancedWebAccessibility

This constant was deprecated in API level 26.
Not used by the framework

Attribute whether the accessibility service wants to be able to request enhanced web accessibility enhancements.

May be a boolean value, such as "true" or "false".

Constant Value: 16843736 (0x010103d8)

canRequestFilterKeyEvents

Added in API level 18
public static final int canRequestFilterKeyEvents

Attribute whether the accessibility service wants to be able to request to filter key events.

Required to allow setting the #AccessibilityServiceInfo#FLAG_REQUEST_FILTER_KEY_EVENTS flag.

May be a boolean value, such as "true" or "false".

Constant Value: 16843737 (0x010103d9)

canRequestFingerprintGestures

Added in API level 26
public static final int canRequestFingerprintGestures

Attribute whether the accessibility service wants to be able to capture gestures from the fingerprint sensor.

Required to allow setting the #AccessibilityServiceInfo#FLAG_REQUEST_FINGERPRINT_GESTURES flag to have any effect.

May be a boolean value, such as "true" or "false".

Constant Value: 16844109 (0x0101054d)

canRequestTouchExplorationMode

Added in API level 18
public static final int canRequestTouchExplorationMode

Attribute whether the accessibility service wants to be able to request touch exploration mode in which touched items are spoken aloud and the UI can be explored via gestures.

Required to allow setting the #AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE flag.

May be a boolean value, such as "true" or "false".

Constant Value: 16843735 (0x010103d7)

canRetrieveWindowContent

Added in API level 14
public static final int canRetrieveWindowContent

Attribute whether the accessibility service wants to be able to retrieve the active window content. This setting cannot be changed at runtime.

Required to allow setting the #AccessibilityServiceInfo#FLAG_RETRIEVE_INTERACTIVE_WINDOWS flag.

May be a boolean value, such as "true" or "false".

Constant Value: 16843653 (0x01010385)

canTakeScreenshot

Added in API level 30
public static final int canTakeScreenshot

Attribute whether the accessibility service wants to be able to take screenshot.

May be a boolean value, such as "true" or "false".

Constant Value: 16844303 (0x0101060f)

candidatesTextStyleSpans

Added in API level 3
public static final int candidatesTextStyleSpans

A styled string, specifying the style to be used for showing inline candidate text when composing with an input method. The text itself will be ignored, but the style spans will be applied to the candidate text as it is edited.

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

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

Constant Value: 16843312 (0x01010230)

cantSaveState

Added in API level 28
public static final int cantSaveState

Declare that this application can't participate in the normal state save/restore mechanism. Since it is not able to save and restore its state on demand, it can not participate in the normal activity lifecycle. It will not be killed while in the background; the user must explicitly quit it. Only one such app can be running at a time; if the user tries to launch a second such app, they will be prompted to quit the first before doing so. While the application is running, the user will be informed of this.

May be a boolean value, such as "true" or "false".

Constant Value: 16844142 (0x0101056e)

capability

Added in API level 34
public static final int capability

An individual capability declared by the provider.

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

Constant Value: 16844423 (0x01010687)

capitalize

Added in API level 1
Deprecated in API level 15
public static final int capitalize

This constant was deprecated in API level 15.
Use inputType instead.

If set, specifies that this TextView has a textual input method and should automatically capitalize what the user types. The default is "none".

Must be one of the following constant values.

ConstantValueDescription
characters3Capitalize every character.
none0Don't automatically capitalize anything.
sentences1Capitalize the first word of each sentence.
words2Capitalize the first letter of every word.

Constant Value: 16843113 (0x01010169)

category

Added in API level 19
public static final int category

The category attribute will be used by the Android platform to present multiple applications that register ISO 7816 Application IDs (AIDs) in the same category uniformly. Additionally, when a category is specified, Android will ensure that either all AIDs in this group are routed to this application, or none at all. This attribute is optional.

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

Constant Value: 16843752 (0x010103e8)

centerBright

Added in API level 1
public static final int centerBright

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

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

Constant Value: 16842956 (0x010100cc)

centerColor

Added in API level 1
public static final int centerColor

Optional center color. For linear gradients, use centerX or centerY to place the center color.

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

Constant Value: 16843275 (0x0101020b)

centerDark

Added in API level 1
public static final int centerDark

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

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

Constant Value: 16842952 (0x010100c8)

centerMedium

Added in API level 1
public static final int centerMedium

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

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

Constant Value: 16842959 (0x010100cf)

centerX

Added in API level 1
public static final int centerX

X-position of the center point of the gradient within the shape as a fraction of the width. The default value is 0.5.

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.

Constant Value: 16843170 (0x010101a2)

centerY

Added in API level 1
public static final int centerY

Y-position of the center point of the gradient within the shape as a fraction of the height. The default value is 0.5.

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.

Constant Value: 16843171 (0x010101a3)

certDigest

Added in API level 26
public static final int certDigest

Optional SHA-256 digest of the package signing certificate.

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

Constant Value: 16844104 (0x01010548)

checkBoxPreferenceStyle

Added in API level 1
public static final int checkBoxPreferenceStyle

Default style for CheckBoxPreference.

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

Constant Value: 16842895 (0x0101008f)

checkMark

Added in API level 1
public static final int checkMark

Drawable used for the check mark graphic.

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

Constant Value: 16843016 (0x01010108)

checkMarkTint

Added in API level 21
public static final int checkMarkTint

Tint to apply to the check mark.

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

Constant Value: 16843943 (0x010104a7)

checkMarkTintMode

Added in API level 21
public static final int checkMarkTintMode

Blending mode used to apply the check mark tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable\u2019s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable\u2019s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

Constant Value: 16843944 (0x010104a8)

checkable

Added in API level 1
public static final int checkable

Whether the item is capable of displaying a check mark.

May be a boolean value, such as "true" or "false".

Constant Value: 16843237 (0x010101e5)

checkableBehavior

Added in API level 1
public static final int checkableBehavior

Whether the items are capable of displaying a check mark.

Must be one of the following constant values.

ConstantValueDescription
all1The items are all checkable.
none0The items are not checkable.
single2The items are checkable and there will only be a single checked item in this group.

Constant Value: 16843232 (0x010101e0)

checkboxStyle

Added in API level 1
public static final int checkboxStyle

Default Checkbox style.

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

Constant Value: 16842860 (0x0101006c)

checked

Added in API level 1
public static final int checked

Indicates the initial checked state of this button.

May be a boolean value, such as "true" or "false".

Constant Value: 16843014 (0x01010106)

checkedButton

Added in API level 1
public static final int checkedButton

The id of the child radio button that should be checked by default within this radio group.

May be an integer value, such as "100".

Constant Value: 16843080 (0x01010148)

checkedTextViewStyle

Added in API level 17
public static final int checkedTextViewStyle

Default CheckedTextView style.

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

Constant Value: 16843720 (0x010103c8)

childDivider

Added in API level 1
public static final int childDivider

Drawable or color that is used as a divider for children. (It will drawn below and above child items.) The height of this will be the same as the height of the normal list item divider.

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

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

Constant Value: 16843025 (0x01010111)

childIndicator

Added in API level 1
public static final int childIndicator

Indicator shown beside the child View. This can be a stateful Drawable.

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

Constant Value: 16843020 (0x0101010c)

childIndicatorEnd

Added in API level 18
public static final int childIndicatorEnd

The end bound for a child's indicator.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843732 (0x010103d4)

childIndicatorLeft

Added in API level 1
public static final int childIndicatorLeft

The left bound for a child's indicator.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843023 (0x0101010f)

childIndicatorRight

Added in API level 1
public static final int childIndicatorRight

The right bound for a child's indicator.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843024 (0x01010110)

childIndicatorStart

Added in API level 18
public static final int childIndicatorStart

The start bound for a child's indicator.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843731 (0x010103d3)

choiceMode

Added in API level 1
public static final int choiceMode

Defines the choice behavior for the view. By default, lists do not have any choice behavior. By setting the choiceMode to singleChoice, the list allows up to one item to be in a chosen state. By setting the choiceMode to multipleChoice, the list allows any number of items to be chosen. Finally, by setting the choiceMode to multipleChoiceModal the list allows any number of items to be chosen in a special selection mode. The application will supply a AbsListView.MultiChoiceModeListener using AbsListView.setMultiChoiceModeListener(MultiChoiceModeListener) to control the selection mode. This uses the ActionMode API.

Must be one of the following constant values.

ConstantValueDescription
multipleChoice2The list allows multiple choices.
multipleChoiceModal3The list allows multiple choices in a custom selection mode.
none0Normal list that does not indicate choices.
singleChoice1The list allows up to one choice.

Constant Value: 16843051 (0x0101012b)

classLoader

Added in API level 27
public static final int classLoader

The classname of the classloader used to load the application's classes from its APK. The APK in question can either be the 'base' APK or any of the application's 'split' APKs if it's using a feature split.

The supported values for this attribute are dalvik.system.PathClassLoader and dalvik.system.DelegateLastClassLoader. If unspecified, the default value of this attribute is dalvik.system.PathClassLoader. If an unknown classloader is provided, a PackageManagerException with cause PackageManager.INSTALL_PARSE_FAILED_MANIFEST_MALFORMED will be thrown and the app will not be installed.

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

Constant Value: 16844139 (0x0101056b)

clearTaskOnLaunch

Added in API level 1
public static final int clearTaskOnLaunch

Specify whether an activity's task should be cleared when it is re-launched from the home screen. As a result, every time the user starts the task, they will be brought to its root activity, regardless of whether they used BACK or HOME to last leave it. This flag only applies to activities that are used to start the root of a new task.

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.

May be a boolean value, such as "true" or "false".

Constant Value: 16842773 (0x01010015)

clickable

Added in API level 1
public static final int clickable

Defines whether this view reacts to click events.

May be a boolean value, such as "true" or "false".

Constant Value: 16842981 (0x010100e5)

clipChildren

Added in API level 1
public static final int clipChildren

Defines whether a child is limited to draw inside of its bounds or not. This is useful with animations that scale the size of the children to more than 100% for instance. In such a case, this property should be set to false to allow the children to draw outside of their bounds. The default value of this property is true.

May be a boolean value, such as "true" or "false".

Constant Value: 16842986 (0x010100ea)

clipOrientation

Added in API level 1
public static final int clipOrientation

The orientation for the clip.

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

ConstantValueDescription
horizontal1Clip the drawable horizontally.
vertical2Clip the drawable vertically.

Constant Value: 16843274 (0x0101020a)

clipToOutline

Added in API level 31
public static final int clipToOutline

Whether the View's Outline should be used to clip the contents of the View.

Only a single non-rectangular clip can be applied on a View at any time. Circular clips from a ViewAnimationUtils.createCircularReveal(View, int, int, float, float) circular reveal animation take priority over Outline clipping, and child Outline clipping takes priority over Outline clipping done by a parent.

Note that this flag will only be respected if the View's Outline returns true from Outline.canClip().

May be a boolean value, such as "true" or "false".

Constant Value: 16844328 (0x01010628)

clipToPadding

Added in API level 1
public static final int clipToPadding

Defines whether the ViewGroup will clip its children and resize (but not clip) any EdgeEffect to its padding, if padding is not zero. This property is set to true by default.

May be a boolean value, such as "true" or "false".

Constant Value: 16842987 (0x010100eb)

closeIcon

Added in API level 21
public static final int closeIcon

Close button icon.

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

Constant Value: 16843905 (0x01010481)

codes

Added in API level 3
Deprecated in API level 29
public static final int codes

This constant was deprecated in API level 29.
Copy this definition into your own application project.

The unicode value or comma-separated values that this key outputs.

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

Constant Value: 16843330 (0x01010242)

collapseColumns

Added in API level 1
public static final int collapseColumns

The zero-based index of the columns to collapse. The column indices must be separated by a comma: 1, 2, 5. Illegal and duplicate indices are ignored.

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

Constant Value: 16843083 (0x0101014b)

collapseContentDescription

Added in API level 22
public static final int collapseContentDescription

Text to set as the content description for the collapse button.

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

Constant Value: 16843984 (0x010104d0)

collapseIcon

Added in API level 24
public static final int collapseIcon

Icon drawable to use for the collapse button.

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

Constant Value: 16844031 (0x010104ff)

color

Added in API level 1
public static final int color

Solid color for the gradient shape.

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

Constant Value: 16843173 (0x010101a5)

colorAccent

Added in API level 21
public static final int colorAccent

Bright complement to the primary branding color. By default, this is the color applied to framework controls (via colorControlActivated).

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

Constant Value: 16843829 (0x01010435)

colorActivatedHighlight

Added in API level 14
public static final int colorActivatedHighlight

Default highlight color for items that are activated. (Activated meaning persistent selection.)

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

Constant Value: 16843664 (0x01010390)

colorBackground

Added in API level 1
public static final int colorBackground

Default color of background imagery, ex. full-screen windows.

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

Constant Value: 16842801 (0x01010031)

colorBackgroundCacheHint

Added in API level 5
public static final int colorBackgroundCacheHint

This is a hint for a solid color that can be used for caching rendered views. This should be the color of the background when there is a solid background color; it should be null when the background is a texture or translucent. When a device is able to use accelerated drawing (thus setting state_accelerated), the cache hint is ignored and always assumed to be transparent.

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

Constant Value: 16843435 (0x010102ab)

colorBackgroundFloating

Added in API level 23
public static final int colorBackgroundFloating

Default color of background imagery for floating components, ex. dialogs, popups, and cards.

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

Constant Value: 16844002 (0x010104e2)

colorButtonNormal

Added in API level 21
public static final int colorButtonNormal

The color applied to framework buttons in their normal state.

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

Constant Value: 16843819 (0x0101042b)

colorControlActivated

Added in API level 21
public static final int colorControlActivated

The color applied to framework controls in their activated (ex. checked) state.

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

Constant Value: 16843818 (0x0101042a)

colorControlHighlight

Added in API level 21
public static final int colorControlHighlight

The color applied to framework control highlights (ex. ripples, list selectors).

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

Constant Value: 16843820 (0x0101042c)

colorControlNormal

Added in API level 21
public static final int colorControlNormal

The color applied to framework controls in their normal state.

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

Constant Value: 16843817 (0x01010429)

colorEdgeEffect

Added in API level 21
public static final int colorEdgeEffect

The color applied to the edge effect on scrolling containers.

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

Constant Value: 16843982 (0x010104ce)

colorError

Added in API level 26
public static final int colorError

Color used for error states and things that need to be drawn to the users attention..

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

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

Constant Value: 16844099 (0x01010543)

colorFocusedHighlight

Added in API level 14
public static final int colorFocusedHighlight

Default highlight color for items that are focused. (Focused meaning cursor-based selection.)

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

Constant Value: 16843663 (0x0101038f)

colorForeground

Added in API level 1
public static final int colorForeground

Default color of foreground imagery.

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

Constant Value: 16842800 (0x01010030)

colorForegroundInverse

Added in API level 1
public static final int colorForegroundInverse

Default color of foreground imagery on an inverted background.

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

Constant Value: 16843270 (0x01010206)

colorLongPressedHighlight

Added in API level 14
public static final int colorLongPressedHighlight

Default highlight color for items that are long-pressed.

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

Constant Value: 16843662 (0x0101038e)

colorMode

Added in API level 26
public static final int colorMode

Specify the color mode the activity desires. The requested color mode may be ignored depending on the capabilities of the display the activity is displayed on.

Must be one of the following constant values.

ConstantValueDescription
default0The default color mode (typically sRGB, low-dynamic range).
hdr2High dynamic range color mode.
wideColorGamut1Wide color gamut color mode.

Constant Value: 16844106 (0x0101054a)

colorMultiSelectHighlight

Added in API level 14
public static final int colorMultiSelectHighlight

Default highlight color for items in multiple selection mode.

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

Constant Value: 16843665 (0x01010391)

colorPressedHighlight

Added in API level 14
public static final int colorPressedHighlight

Default highlight color for items that are pressed.

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

Constant Value: 16843661 (0x0101038d)

colorPrimary

Added in API level 21
public static final int colorPrimary

The primary branding color for the app. By default, this is the color applied to the action bar background.

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

Constant Value: 16843827 (0x01010433)

colorPrimaryDark

Added in API level 21
public static final int colorPrimaryDark

Dark variant of the primary branding color. By default, this is the color applied to the status bar (via statusBarColor) and navigation bar (via navigationBarColor).

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

Constant Value: 16843828 (0x01010434)

colorSecondary

Added in API level 25
public static final int colorSecondary

The secondary branding color for the app.

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

Constant Value: 16844080 (0x01010530)

columnCount

Added in API level 14
public static final int columnCount

The maximum number of columns to create when automatically positioning children.

May be an integer value, such as "100".

Constant Value: 16843639 (0x01010377)

columnDelay

Added in API level 1
public static final int columnDelay

Fraction of the animation duration used to delay the beginning of the animation of each column.

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.

Constant Value: 16843215 (0x010101cf)

columnOrderPreserved

Added in API level 14
public static final int columnOrderPreserved

When set to true, forces column boundaries to appear in the same order as column indices. The default is true. See GridLayout.setColumnOrderPreserved(boolean).

May be a boolean value, such as "true" or "false".

Constant Value: 16843640 (0x01010378)

columnWidth

Added in API level 1
public static final int columnWidth

Specifies the fixed width for each column.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843031 (0x01010117)

commitIcon

Added in API level 21
public static final int commitIcon

Commit icon shown in the query suggestion row.

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

Constant Value: 16843909 (0x01010485)

compatibleWidthLimitDp

Added in API level 13
public static final int compatibleWidthLimitDp

Starting with Build.VERSION_CODES.HONEYCOMB_MR2, this is the new way to specify the largest screens an application is compatible with. This attribute provides the maximum "smallest screen width" (as per the -swNNNdp resource configuration) that the application is designed for. If this value is smaller than the "smallest screen width" of the device it is running on, the user is offered to run it in a compatibility mode that emulates a smaller screen and zooms it to fit the screen. Currently the compatibility mode only emulates phone screens with a 320dp width, so compatibility mode is not applied if the value for compatibleWidthLimitDp is larger than 320.

May be an integer value, such as "100".

Constant Value: 16843621 (0x01010365)

completionHint

Added in API level 1
public static final int completionHint

Defines the hint displayed in the drop down menu.

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

Constant Value: 16843122 (0x01010172)

completionHintView

Added in API level 1
public static final int completionHintView

Defines the hint view displayed in the drop down menu.

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

Constant Value: 16843123 (0x01010173)

completionThreshold

Added in API level 1
public static final int completionThreshold

Defines the number of characters that the user must type before completion suggestions are displayed in a drop down menu.

May be an integer value, such as "100".

Constant Value: 16843124 (0x01010174)

configChanges

Added in API level 1
public static final int configChanges

Specify one or more configuration changes that the activity will handle itself. If not specified, the activity will be restarted if any of these configuration changes happen in the system. Otherwise, the activity will remain running and its 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.

ConstantValueDescription
colorMode4000The color mode of the screen has changed (color gamut or dynamic range).
density1000The display density has changed. This might be caused by the user specifying a different display scale, or it might be caused by a different display being activated.
fontScale40000000The font scaling factor has changed, that is the user has selected a new global font size.
fontWeightAdjustment10000000The font weight adjustment value has changed. Used to reflect the user increasing font weight.
grammaticalGender8000The grammatical gender has changed, for example the user set the grammatical gender from the UI.
keyboard10The keyboard type has changed, for example the user has plugged in an external keyboard.
keyboardHidden20The keyboard or navigation accessibility has changed, for example the user has slid the keyboard out to expose it. Note that despite its name, this applied to any accessibility: keyboard or navigation.
layoutDirection2000The layout direction has changed. For example going from LTR to RTL.
locale4The locale has changed, that is the user has selected a new language that text should be displayed in.
mcc1The IMSI MCC has changed, that is a SIM has been detected and updated the Mobile Country Code. By default from Android O, we don't recreate the activity even the app doesn't specify mcc in configChanges. If the app wants to recreate the activity, specify mcc in recreateOnConfigChanges.
mnc2The IMSI MNC has changed, that is a SIM has been detected and updated the Mobile Network Code. By default from Android O, we don't recreate the activity even the app doesn't specify mnc in configChanges. If the app wants to recreate the acvitity, specify mnc in recreateOnConfigChanges.
navigation40The navigation type has changed. Should never normally happen.
orientation80The screen orientation has changed, that is the user has rotated the device.
screenLayout100The screen layout has changed. This might be caused by a different display being activated.
screenSize400The current available screen size has changed. If applications don't target at least Build.VERSION_CODES.HONEYCOMB_MR2 then the activity will always handle this itself (the change will not result in a restart). This represents a change in the currently available size, so will change when the user switches between landscape and portrait.
smallestScreenSize800The physical screen size has changed. If applications don't target at least Build.VERSION_CODES.HONEYCOMB_MR2 then the activity will always handle this itself (the change will not result in a restart). This represents a change in size regardless of orientation, so will only change when the actual physical screen size has changed such as switching to an external display.
touchscreen8The touchscreen has changed. Should never normally happen.
uiMode200The global user interface mode has changed. For example, going in or out of car mode, night mode changing, etc.

Constant Value: 16842783 (0x0101001f)

configure

Added in API level 3
public static final int configure

A class name in the AppWidget's package to be launched to configure. If not supplied, then no activity will be launched.

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

Constant Value: 16843357 (0x0101025d)

constantSize

Added in API level 1
public static final 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. If false, the size will vary based on the current state.

May be a boolean value, such as "true" or "false".

Constant Value: 16843158 (0x01010196)

content

Added in API level 3
public static final int content

Identifier for the child that represents the drawer's content.

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

Constant Value: 16843355 (0x0101025b)

contentAgeHint

Added in API level 21
public static final int contentAgeHint

The age associated with the content rating. The content of this rating is suitable for people of this age or above.

May be an integer value, such as "100".

Constant Value: 16843961 (0x010104b9)

contentAuthority

Added in API level 5
public static final int contentAuthority

the authority of a content provider.

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

Constant Value: 16843408 (0x01010290)

contentDescription

Added in API level 4
public static final int contentDescription

The content description associated with the item.

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

Constant Value: 16843379 (0x01010273)

contentInsetEnd

Added in API level 21
public static final int contentInsetEnd

Minimum inset for content views within a bar. Navigation buttons and menu views are excepted. Only valid for some themes and configurations.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843860 (0x01010454)

contentInsetEndWithActions

Added in API level 24
public static final int contentInsetEndWithActions

Minimum inset for content views within a bar when actions from a menu are present. Only valid for some themes and configurations.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844067 (0x01010523)

contentInsetLeft

Added in API level 21
public static final int contentInsetLeft

Minimum inset for content views within a bar. Navigation buttons and menu views are excepted. Only valid for some themes and configurations.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843861 (0x01010455)

contentInsetRight

Added in API level 21
public static final int contentInsetRight

Minimum inset for content views within a bar. Navigation buttons and menu views are excepted. Only valid for some themes and configurations.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843862 (0x01010456)

contentInsetStart

Added in API level 21
public static final int contentInsetStart

Minimum inset for content views within a bar. Navigation buttons and menu views are excepted. Only valid for some themes and configurations.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843859 (0x01010453)

contentInsetStartWithNavigation

Added in API level 24
public static final int contentInsetStartWithNavigation

Minimum inset for content views within a bar when a navigation button is present, such as the Up button. Only valid for some themes and configurations.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844066 (0x01010522)

contentSensitivity

Added in API level 35
public static final int contentSensitivity

Must be one of the following constant values.

ConstantValueDescription
auto0Let the Android System use its heuristics to determine if the view renders sensitive content.
notSensitive2This view doesn't render sensitive content.
sensitive1This view renders sensitive content.

Constant Value: 16844446 (0x0101069e)

contextClickable

Added in API level 23
public static final int contextClickable

Defines whether this view reacts to context click events.

May be a boolean value, such as "true" or "false".

Constant Value: 16844007 (0x010104e7)

contextDescription

Added in API level 25
public static final int contextDescription

Title of the uri that specifies a link for further context of this wallpaper, for example, Explore collection.

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

Constant Value: 16844078 (0x0101052e)

contextPopupMenuStyle

Added in API level 24
public static final int contextPopupMenuStyle

Default context menu PopupMenu style.

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

Constant Value: 16844033 (0x01010501)

contextUri

Added in API level 25
public static final int contextUri

Uri that specifies a link for further context of this wallpaper, for example, http://www.picasso.org.

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

Constant Value: 16844077 (0x0101052d)

controlX1

Added in API level 21
public static final int controlX1

The x coordinate of the first control point of the cubic Bezier.

May be a floating point value, such as "1.2".

Constant Value: 16843772 (0x010103fc)

controlX2

Added in API level 21
public static final int controlX2

The x coordinate of the second control point of the cubic Bezier.

May be a floating point value, such as "1.2".

Constant Value: 16843774 (0x010103fe)

controlY1

Added in API level 21
public static final int controlY1

The y coordinate of the first control point of the cubic Bezier.

May be a floating point value, such as "1.2".

Constant Value: 16843773 (0x010103fd)

controlY2

Added in API level 21
public static final int controlY2

The y coordinate of the second control point of the cubic Bezier.

May be a floating point value, such as "1.2".

Constant Value: 16843775 (0x010103ff)

countDown

Added in API level 24
public static final int countDown

Specifies whether this Chronometer counts down or counts up from the base. If not specified this is false and the Chronometer counts up.

May be a boolean value, such as "true" or "false".

Constant Value: 16844059 (0x0101051b)

country

Added in API level 21
public static final int country

The country code associated with the content rating system, which consists of two uppercase letters that conform to the ISO 3166 standard.

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

Constant Value: 16843962 (0x010104ba)

cropToPadding

Added in API level 1
public static final int cropToPadding

If true, the image will be cropped to fit within its padding.

May be a boolean value, such as "true" or "false".

Constant Value: 16843043 (0x01010123)

crossProfile

Added in API level 30
public static final int crossProfile

If true indicates that this application is capable of presenting a unified interface representing multiple profiles. The default value is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16844302 (0x0101060e)

cursorVisible

Added in API level 1
public static final int cursorVisible

Makes the cursor visible (the default) or invisible.

May be a boolean value, such as "true" or "false".

Constant Value: 16843090 (0x01010152)

customNavigationLayout

Added in API level 11
public static final int customNavigationLayout

Specifies a layout for custom navigation. Overrides navigationMode.

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

Constant Value: 16843474 (0x010102d2)

customTokens

Added in API level 11
public static final int customTokens

Account handles its own token storage and permissions. Default to false

May be a boolean value, such as "true" or "false".

Constant Value: 16843579 (0x0101033b)

cycles

Added in API level 1
public static final int cycles

May be a floating point value, such as "1.2".

Constant Value: 16843220 (0x010101d4)

dashGap

Added in API level 1
public static final int dashGap

Gap between dashes in the stroke.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843175 (0x010101a7)

dashWidth

Added in API level 1
public static final int dashWidth

Length of a dash in the stroke.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843174 (0x010101a6)

data

Added in API level 1
public static final int data

The data URI to assign to the Intent, as per Intent.setData().

Note: scheme and host name matching in the Android framework is case-sensitive, unlike the formal RFC. As a result, URIs here should always be normalized to use lower case letters for these elements (as well as other proper Uri normalization).

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

Constant Value: 16842798 (0x0101002e)

dataExtractionRules

Added in API level 31
public static final int dataExtractionRules

Applications can set this attribute to an xml resource within their app where they specified the rules determining which files and directories can be copied from the device as part of backup or transfer operations. See the Changes in backup and restore document for the format of the XML file.

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

Constant Value: 16844350 (0x0101063e)

datePickerDialogTheme

Added in API level 21
public static final int datePickerDialogTheme

The DatePicker dialog theme.

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

Constant Value: 16843948 (0x010104ac)

datePickerMode

Added in API level 21
public static final int datePickerMode

Defines the look of the widget. Prior to the L release, the only choice was spinner. As of L, with the Material theme selected, the default layout is calendar, but this attribute can be used to force spinner to be used instead.

Must be one of the following constant values.

ConstantValueDescription
calendar2Date picker with calendar to select the date.
spinner1Date picker with spinner controls to select the date.

Constant Value: 16843955 (0x010104b3)

datePickerStyle

Added in API level 11
public static final int datePickerStyle

The DatePicker style.

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

Constant Value: 16843612 (0x0101035c)

dateTextAppearance

Added in API level 11
public static final int dateTextAppearance

The text appearance for the day numbers in the calendar grid.

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

Constant Value: 16843593 (0x01010349)

dayOfWeekBackground

Added in API level 21
Deprecated in API level 23
public static final int dayOfWeekBackground

This constant was deprecated in API level 23.
No longer displayed.

The background color for the header's day of week.

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

Constant Value: 16843924 (0x01010494)

dayOfWeekTextAppearance

Added in API level 21
Deprecated in API level 23
public static final int dayOfWeekTextAppearance

This constant was deprecated in API level 23.
No longer displayed.

The text color for the header's day of week.

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

Constant Value: 16843925 (0x01010495)

debuggable

Added in API level 1
public static final int debuggable

Flag indicating whether the application can be debugged, even when running on a device that is running in user mode.

May be a boolean value, such as "true" or "false".

Constant Value: 16842767 (0x0101000f)

defaultFocusHighlightEnabled

Added in API level 26
public static final int defaultFocusHighlightEnabled

Whether this View should use a default focus highlight when it gets focused but doesn't have state_focused defined in its background.

May be a boolean value, such as "true" or "false".

Constant Value: 16844130 (0x01010562)

defaultHeight

Added in API level 24
public static final int defaultHeight

Default height of the activity. Can be either a fixed value or fraction, in which case the height will be constructed as a fraction of the total available height.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

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.

Constant Value: 16844021 (0x010104f5)

defaultLocale

Added in API level 35
public static final int defaultLocale

The IETF BCP47 language tag the strings in values/strings.xml (the default strings in the directory with no locale qualifier) are in.

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

Constant Value: 16844424 (0x01010688)

defaultToDeviceProtectedStorage

Added in API level 24
public static final int defaultToDeviceProtectedStorage

May be a boolean value, such as "true" or "false".

Constant Value: 16844036 (0x01010504)

defaultValue

Added in API level 1
public static final int defaultValue

The default value for the preference, which will be set either if persistence is off or persistence is on and the preference is not found in the persistent storage.

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

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

May be an integer value, such as "100".

May be a boolean value, such as "true" or "false".

May be a floating point value, such as "1.2".

Constant Value: 16843245 (0x010101ed)

defaultWidth

Added in API level 24
public static final int defaultWidth

Default width of the activity. Can be either a fixed value or fraction, in which case the width will be constructed as a fraction of the total available width.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

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.

Constant Value: 16844020 (0x010104f4)

delay

Added in API level 1
public static final int delay

Fraction of the animation duration used to delay the beginning of the animation of each child.

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.

Constant Value: 16843212 (0x010101cc)

dependency

Added in API level 1
public static final int dependency

The key of another Preference that this Preference will depend on. If the other Preference is not set or is off, this Preference will be disabled.

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

Constant Value: 16843244 (0x010101ec)

descendantFocusability

Added in API level 1
public static final int descendantFocusability

Defines the relationship between the ViewGroup and its descendants when looking for a View to take focus.

Must be one of the following constant values.

ConstantValueDescription
afterDescendants1The ViewGroup will get focus only if none of its descendants want it.
beforeDescendants0The ViewGroup will get focus before any of its descendants.
blocksDescendants2The ViewGroup will block its descendants from receiving focus.

Constant Value: 16842993 (0x010100f1)

description

Added in API level 1
public static final int description

Descriptive text for the associated data.

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

Constant Value: 16842784 (0x01010020)

detachWallpaper

Added in API level 5
public static final int detachWallpaper

Special option for window animations: if this window is on top of a wallpaper, don't animate the wallpaper with it.

May be a boolean value, such as "true" or "false".

Constant Value: 16843430 (0x010102a6)

detailColumn

Added in API level 5
public static final int detailColumn

Column in data table that contains details for this data.

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

Constant Value: 16843427 (0x010102a3)

detailSocialSummary

Added in API level 5
public static final int detailSocialSummary

Flag indicating that detail should be built from SocialProvider.

May be a boolean value, such as "true" or "false".

Constant Value: 16843428 (0x010102a4)

detailsElementBackground

Added in API level 11
public static final int detailsElementBackground

Background that can be used behind parts of a UI that provide details on data the user is selecting. For example, this is the background element of PreferenceActivity's embedded preference fragment.

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

Constant Value: 16843598 (0x0101034e)

dial

Added in API level 1
public static final int dial

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

Constant Value: 16843010 (0x01010102)

dialTint

Added in API level 31
public static final int dialTint

Tint to apply to the dial graphic.

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

Constant Value: 16844342 (0x01010636)

dialTintMode

Added in API level 31
public static final int dialTintMode

Blending mode used to apply the dial graphic tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable\u2019s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable\u2019s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

Constant Value: 16844343 (0x01010637)

dialogCornerRadius

Added in API level 28
public static final int dialogCornerRadius

Corner radius of dialogs.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844145 (0x01010571)

dialogIcon

Added in API level 1
public static final int dialogIcon

The icon for the dialog.

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

Constant Value: 16843252 (0x010101f4)

dialogLayout

Added in API level 1
public static final int dialogLayout

A layout to be used as the content View for the dialog. By default, this shouldn't be needed. If a custom DialogPreference is required, this should be set. For example, the EditTextPreference uses a layout with an EditText as this attribute.

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

Constant Value: 16843255 (0x010101f7)

dialogMessage

Added in API level 1
public static final int dialogMessage

The message in the dialog. If a dialogLayout is provided and contains a TextView with ID android:id/message, this message will be placed in there.

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

Constant Value: 16843251 (0x010101f3)

dialogPreferenceStyle

Added in API level 1
public static final int dialogPreferenceStyle

Default style for DialogPreference.

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

Constant Value: 16842897 (0x01010091)

dialogPreferredPadding

Added in API level 22
public static final int dialogPreferredPadding

Preferred padding for dialog content.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843987 (0x010104d3)

dialogTheme

Added in API level 11
public static final int dialogTheme

Theme to use for dialogs spawned from this theme.

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

Constant Value: 16843528 (0x01010308)

dialogTitle

Added in API level 1
public static final int dialogTitle

The title in the dialog.

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

Constant Value: 16843250 (0x010101f2)

digits

Added in API level 1
public static final 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. If this is set, numeric is implied to be true. The default is false.

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

Constant Value: 16843110 (0x01010166)

directBootAware

Added in API level 24
public static final int directBootAware

Indicate if this component is aware of direct boot lifecycle, and can be safely run before the user has entered their credentials (such as a lock pattern or PIN).

May be a boolean value, such as "true" or "false".

Constant Value: 16844037 (0x01010505)

direction

Added in API level 1
public static final int direction

Direction of the animation in the grid.

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

ConstantValueDescription
bottom_to_top2Animates rows from bottom to top.
left_to_right0Animates columns from left to right.
right_to_left1Animates columns from right to left.
top_to_bottom0Animates rows from top to bottom.

Constant Value: 16843217 (0x010101d1)

directionDescriptions

Added in API level 14
Deprecated in API level 23
public static final int directionDescriptions

This constant was deprecated in API level 23.
Removed. Reference to an array resource that be used to announce the directions with targets around the circle.

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

Constant Value: 16843681 (0x010103a1)

directionPriority

Added in API level 1
public static final int directionPriority

Priority of the rows and columns. When the priority is none, both rows and columns have the same priority. When the priority is column, the animations will be applied on the columns first. The same goes for rows.

Must be one of the following constant values.

ConstantValueDescription
column1Columns are animated first.
none0Rows and columns are animated at the same time.
row2Rows are animated first.

Constant Value: 16843218 (0x010101d2)

disableDependentsState

Added in API level 1
public static final int disableDependentsState

The state (true for on, or false for off) that causes dependents to be disabled. By default, dependents will be disabled when this is unchecked, so the value of this preference is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16843249 (0x010101f1)

disabledAlpha

Added in API level 1
public static final int disabledAlpha

Default disabled alpha for widgets that set enabled/disabled alpha programmatically.

May be a floating point value, such as "1.2".

Constant Value: 16842803 (0x01010033)

displayOptions

Added in API level 11
public static final int displayOptions

Options affecting how the action bar is displayed.

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

ConstantValueDescription
disableHome20
homeAsUp4
none0
showCustom10
showHome2
showTitle8
useLogo1

Constant Value: 16843472 (0x010102d0)

dither

Added in API level 1
public static final 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).

May be a boolean value, such as "true" or "false".

Constant Value: 16843036 (0x0101011c)

divider

Added in API level 1
public static final int divider

Drawable or color to draw between list items.

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

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

Constant Value: 16843049 (0x01010129)

dividerHeight

Added in API level 1
public static final int dividerHeight

Height of the divider. Will use the intrinsic height of the divider if this is not specified.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843050 (0x0101012a)

dividerHorizontal

Added in API level 11
public static final int dividerHorizontal

Drawable to use for generic horizontal dividers.

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

Constant Value: 16843564 (0x0101032c)

dividerPadding

Added in API level 11
public static final int dividerPadding

Size of padding on either end of a divider.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843562 (0x0101032a)

dividerVertical

Added in API level 11
public static final int dividerVertical

Drawable to use for generic vertical dividers.

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

Constant Value: 16843530 (0x0101030a)

documentLaunchMode

Added in API level 21
public static final int documentLaunchMode

This attribute specifies that an activity shall become the root activity of a new task each time it is launched. Using this attribute permits the user to have multiple documents from the same applications appear in the recent tasks list.

Such a document is any kind of item for which an application may want to maintain multiple simultaneous instances. Examples might be text files, web pages, spreadsheets, or emails. Each such document will be in a separate task in the recent tasks list.

This attribute is equivalent to adding the flag Intent.FLAG_ACTIVITY_NEW_DOCUMENT to every Intent used to launch the activity.

The documentLaunchMode attribute may be assigned one of four values, "none", "intoExisting", "always" and "never", described in detail below. For values other than none and never the activity must be defined with launchMode standard. If this attribute is not specified, none will be used. Note that none can be overridden at run time if the Intent used to launch it contains the flag Intent.FLAG_ACTIVITY_NEW_DOCUMENT. Similarly intoExisting will be overridden by the flag Intent.FLAG_ACTIVITY_NEW_DOCUMENT combined with Intent.FLAG_ACTIVITY_MULTIPLE_TASK. If the value of documentLaunchModes is never then any use of Intent.FLAG_ACTIVITY_NEW_DOCUMENT to launch this activity will be ignored.

Must be one of the following constant values.

ConstantValueDescription
always2A new task rooted at this activity will be created. This will happen whether or not there is an existing task whose ComponentName and data URI match that of the launcing intent This is the equivalent of launching an activity with Intent.FLAG_ACTIVITY_NEW_DOCUMENT and Intent.FLAG_ACTIVITY_MULTIPLE_TASK both set.
intoExisting1All tasks will be searched for one whose base Intent's ComponentName and data URI match those of the launching Intent. If such a task is found that task will be cleared and restarted with the root activity receiving a call to Activity.onNewIntent. If no such task is found a new task will be created.

This is the equivalent of launching an activity with Intent.FLAG_ACTIVITY_NEW_DOCUMENT set and without Intent.FLAG_ACTIVITY_MULTIPLE_TASK set.

never3This activity will not be launched into a new document even if the Intent contains Intent.FLAG_ACTIVITY_NEW_DOCUMENT. This gives the activity writer ultimate control over how their activity is used. Note that applications prior to api 21 will default to documentLaunchMode="none" so only activities that explicitly opt out with "never" may do so.
none0The default mode, which will create a new task only when Intent.FLAG_ACTIVITY_NEW_TASK is set.

Constant Value: 16843845 (0x01010445)

drawSelectorOnTop

Added in API level 1
public static final int drawSelectorOnTop

When set to true, the selector will be drawn over the selected item. Otherwise the selector is drawn behind the selected item. The default value is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16843004 (0x010100fc)

drawable

Added in API level 1
public static final int drawable

Reference to a drawable resource to use for the frame. If not given, the drawable must be defined by the first child tag.

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

Constant Value: 16843161 (0x01010199)

drawableBottom

Added in API level 1
public static final int drawableBottom

The drawable to be drawn below the text.

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

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

Constant Value: 16843118 (0x0101016e)

drawableEnd

Added in API level 14
public static final int drawableEnd

The drawable to be drawn to the end of the text.

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

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

Constant Value: 16843667 (0x01010393)

drawableLeft

Added in API level 1
public static final int drawableLeft

The drawable to be drawn to the left of the text.

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

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

Constant Value: 16843119 (0x0101016f)

drawablePadding

Added in API level 1
public static final int drawablePadding

The padding between the drawables and the text.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843121 (0x01010171)

drawableRight

Added in API level 1
public static final int drawableRight

The drawable to be drawn to the right of the text.

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

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

Constant Value: 16843120 (0x01010170)

drawableStart

Added in API level 14
public static final int drawableStart

The drawable to be drawn to the start of the text.

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

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

Constant Value: 16843666 (0x01010392)

drawableTint

Added in API level 23
public static final int drawableTint

Tint to apply to the compound (left, top, etc.) drawables.

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

Constant Value: 16843990 (0x010104d6)

drawableTintMode

Added in API level 23
public static final int drawableTintMode

Blending mode used to apply the compound (left, top, etc.) drawables tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable\u2019s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable\u2019s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

Constant Value: 16843991 (0x010104d7)

drawableTop

Added in API level 1
public static final int drawableTop

The drawable to be drawn above the text.

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

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

Constant Value: 16843117 (0x0101016d)

drawingCacheQuality

Added in API level 1
public static final int drawingCacheQuality

Defines the quality of translucent drawing caches. This property is used only when the drawing cache is enabled and translucent. The default value is auto. Deprecated: The view drawing cache was largely made obsolete with the introduction of hardware-accelerated rendering in API 11.

Must be one of the following constant values.

ConstantValueDescription
auto0Lets the framework decide what quality level should be used for the drawing cache. Deprecated: The view drawing cache was largely made obsolete with the introduction of hardware-accelerated rendering in API 11.
high2High quality. When set to high quality, the drawing cache uses a higher color depth but uses more memory. Deprecated: The view drawing cache was largely made obsolete with the introduction of hardware-accelerated rendering in API 11.
low1Low quality. When set to low quality, the drawing cache uses a lower color depth, thus losing precision in rendering gradients, but uses less memory. Deprecated: The view drawing cache was largely made obsolete with the introduction of hardware-accelerated rendering in API 11.

Constant Value: 16842984 (0x010100e8)

Added in API level 3
public static final int dropDownAnchor

View to anchor the auto-complete dropdown to. If not specified, the text view itself is used.

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

Constant Value: 16843363 (0x01010263)

Added in API level 4
public static final int dropDownHeight

Specifies the basic height of the dropdown. Its value may be a dimension (such as "12dip") for a constant height, fill_parent or match_parent to fill the height of the screen, or wrap_content to match the height of the content of the drop down.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Must be one of the following constant values.

ConstantValueDescription
fill_parentffffffffThe dropdown should fit the height of the screen. This constant is deprecated starting from API Level 8 and is replaced by match_parent.
match_parentffffffffThe dropdown should fit the height of the screen. Introduced in API Level 8.
wrap_contentfffffffeThe dropdown should fit the height of the content.

Constant Value: 16843395 (0x01010283)

Added in API level 1
public static final int dropDownHintAppearance

Default style for drop down hints.

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

Constant Value: 16842888 (0x01010088)

Added in API level 5
public static final int dropDownHorizontalOffset

Amount of pixels by which the drop down should be offset horizontally.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843436 (0x010102ac)

Added in API level 1
public static final int dropDownItemStyle

Default style for drop down items.

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

Constant Value: 16842886 (0x01010086)

Added in API level 1
public static final int dropDownListViewStyle

Default ListView style for drop downs.

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

Constant Value: 16842861 (0x0101006d)

Added in API level 1
public static final int dropDownSelector

Selector in a drop down list.

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

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

Constant Value: 16843125 (0x01010175)

Added in API level 11
public static final int dropDownSpinnerStyle

Default dropdown Spinner style.

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

Constant Value: 16843478 (0x010102d6)

Added in API level 5
public static final int dropDownVerticalOffset

Amount of pixels by which the drop down should be offset vertically.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843437 (0x010102ad)

Added in API level 3
public static final int dropDownWidth

Specifies the basic width of the dropdown. Its value may be a dimension (such as "12dip") for a constant width, fill_parent or match_parent to match the width of the screen, or wrap_content to match the width of the anchored view.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Must be one of the following constant values.

ConstantValueDescription
fill_parentffffffffThe dropdown should fill the width of the screen. This constant is deprecated starting from API Level 8 and is replaced by match_parent.
match_parentffffffffThe dropdown should fit the width of the screen. Introduced in API Level 8.
wrap_contentfffffffeThe dropdown should fit the width of its anchor.

Constant Value: 16843362 (0x01010262)

duplicateParentState

Added in API level 1
public static final 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.

May be a boolean value, such as "true" or "false".

Constant Value: 16842985 (0x010100e9)

duration

Added in API level 1
public static final int duration

Amount of time (in milliseconds) to display this frame.

May be an integer value, such as "100".

Constant Value: 16843160 (0x01010198)

editTextBackground

Added in API level 11
public static final int editTextBackground

EditText background drawable.

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

Constant Value: 16843602 (0x01010352)

editTextColor

Added in API level 11
public static final int editTextColor

EditText text foreground color.

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

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

Constant Value: 16843601 (0x01010351)

editTextPreferenceStyle

Added in API level 1
public static final int editTextPreferenceStyle

Default style for EditTextPreference.

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

Constant Value: 16842898 (0x01010092)

editTextStyle

Added in API level 1
public static final int editTextStyle

Default EditText style.

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

Constant Value: 16842862 (0x0101006e)

editable

Added in API level 1
Deprecated in API level 15
public static final int editable

This constant was deprecated in API level 15.
Use inputType instead.

If set, specifies that this TextView has an input method. It will be a textual one unless it has otherwise been specified. For TextView, this is false by default. For EditText, it is true by default.

May be a boolean value, such as "true" or "false".

Constant Value: 16843115 (0x0101016b)

editorExtras

Added in API level 3
public static final int editorExtras

Reference to an <input-extras> XML resource containing additional data to supply to an input method, which is private to the implementation of the input method. This simply fills in the EditorInfo.extras field when the input method is connected.

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

Constant Value: 16843300 (0x01010224)

effectColor

Added in API level 31
public static final int effectColor

Color applied to effects.

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

Constant Value: 16844361 (0x01010649)

elegantTextHeight

Added in API level 21
public static final int elegantTextHeight

Elegant text height, especially for less compacted complex script text.

May be a boolean value, such as "true" or "false".

Constant Value: 16843869 (0x0101045d)

elevation

Added in API level 21
public static final int elevation

base z depth of the view.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843840 (0x01010440)

ellipsize

Added in API level 1
public static final int ellipsize

Where to ellipsize text.

Must be one of the following constant values.

ConstantValueDescription
end3
marquee4
middle2
none0
start1

Constant Value: 16842923 (0x010100ab)

ems

Added in API level 1
public static final int ems

Makes the TextView be exactly this many ems wide.

May be an integer value, such as "100".

Constant Value: 16843096 (0x01010158)

enableOnBackInvokedCallback

Added in API level 33
public static final int enableOnBackInvokedCallback

If false, KEYCODE_BACK and Activity.onBackPressed() and related event will be forwarded to the Activity and its views.

If true, those events will be replaced by a call to OnBackInvokedCallback.onBackInvoked() on the focused window.

By default, the behavior is configured by the same attribute in application.

May be a boolean value, such as "true" or "false".

Constant Value: 16844396 (0x0101066c)

enableTextStylingShortcuts

Added in API level 34
public static final int enableTextStylingShortcuts

Enables styling shortcuts, e.g. Ctrl+B for bold. This is off by default.

May be a boolean value, such as "true" or "false".

Constant Value: 16844408 (0x01010678)

enableVrMode

Added in API level 24
public static final int enableVrMode

Flag declaring that this activity will be run in VR mode, and specifying the component of the VrListenerService that should be bound while this Activity is visible if it is installed and enabled on this device. This is equivalent to calling Activity.setVrModeEnabled(boolean, ComponentName) with the the given component name within the Activity that this attribute is set for. Declaring this will prevent the system from leaving VR mode during an Activity transition from one VR activity to another.

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

Constant Value: 16844069 (0x01010525)

enabled

Added in API level 1
public static final int enabled

Specifies whether the widget is enabled. The interpretation of the enabled state varies by subclass. For example, a non-enabled EditText prevents the user from editing the contained text, and a non-enabled Button prevents the user from tapping the button. The appearance of enabled and non-enabled widgets may differ, if the drawables referenced from evaluating state_enabled differ.

May be a boolean value, such as "true" or "false".

Constant Value: 16842766 (0x0101000e)

end

Added in API level 23
public static final int end

End inset to apply to the layer. Overrides left or right depending on layout direction.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843996 (0x010104dc)

endColor

Added in API level 1
public static final int endColor

End color of the gradient.

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

Constant Value: 16843166 (0x0101019e)

endX

Added in API level 24
public static final int endX

X coordinate of the end point origin of the gradient. Defined in same coordinates as the path itself

May be a floating point value, such as "1.2".

Constant Value: 16844050 (0x01010512)

endY

Added in API level 24
public static final int endY

Y coordinate of the end point of the gradient within the shape. Defined in same coordinates as the path itself

May be a floating point value, such as "1.2".

Constant Value: 16844051 (0x01010513)

endYear

Added in API level 1
Deprecated in API level 16
public static final int endYear

This constant was deprecated in API level 16.
Use maxDate instead.Use maxDate instead.

The last year (inclusive), for example "2010".

May be an integer value, such as "100".

Constant Value: 16843133 (0x0101017d)

enforceNavigationBarContrast

Added in API level 29
public static final int enforceNavigationBarContrast

Sets whether the system should ensure that the navigation bar has enough contrast when a fully transparent background is requested.

If set to this value, the system will determine whether a scrim is necessary to ensure that the navigation bar has enough contrast with the contents of this app, and set an appropriate effective bar background color accordingly.

When the navigation bar color has a non-zero alpha value, the value of this attribute has no effect.

If the app does not target at least Q, this attribute is ignored.

Constant Value: 16844293 (0x01010605)

enforceStatusBarContrast

Added in API level 29
Deprecated in API level 35
public static final int enforceStatusBarContrast

This constant was deprecated in API level 35.
Draw proper background behind WindowInsets.Type.statusBars()} instead.

May be a boolean value, such as "true" or "false".

Sets whether the system should ensure that the status bar has enough contrast when a fully transparent background is requested.

If set to this value, the system will determine whether a scrim is necessary to ensure that the status bar has enough contrast with the contents of this app, and set an appropriate effective bar background color accordingly.

When the status bar color has a non-zero alpha value, the value of this attribute has no effect.

If the app does not target at least Q, this attribute is ignored.

Constant Value: 16844292 (0x01010604)

enterFadeDuration

Added in API level 11
public static final int enterFadeDuration

Amount of time (in milliseconds) to fade in a new state drawable.

May be an integer value, such as "100".

Constant Value: 16843532 (0x0101030c)

entries

Added in API level 1
public static final int entries

Reference to an array resource that will populate a list/adapter.

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

Constant Value: 16842930 (0x010100b2)

entryValues

Added in API level 1
public static final int entryValues

The array to find the value to save for a preference when an entry from entries is selected. If a user clicks on the second item in entries, the second item in this array will be saved to the preference.

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

Constant Value: 16843256 (0x010101f8)

eventsInterceptionEnabled

Added in API level 4
public static final int eventsInterceptionEnabled

Defines whether the overlay should intercept the motion events when a gesture is recognized.

May be a boolean value, such as "true" or "false".

Constant Value: 16843389 (0x0101027d)

excludeClass

Added in API level 21
public static final int excludeClass

The fully-qualified name of the Class to exclude from this transition.

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

Constant Value: 16843842 (0x01010442)

excludeFromRecents

Added in API level 1
public static final int excludeFromRecents

Indicates that an Activity should be excluded from the list of recently launched activities.

May be a boolean value, such as "true" or "false".

Constant Value: 16842775 (0x01010017)

excludeId

Added in API level 21
public static final int excludeId

The id of a target to exclude from this transition.

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

Constant Value: 16843841 (0x01010441)

excludeName

Added in API level 21
public static final int excludeName

The transitionName of the target to exclude from this transition.

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

Constant Value: 16843854 (0x0101044e)

exitFadeDuration

Added in API level 11
public static final int exitFadeDuration

Amount of time (in milliseconds) to fade out an old state drawable.

May be an integer value, such as "100".

Constant Value: 16843533 (0x0101030d)

expandableListPreferredChildIndicatorLeft

Added in API level 1
public static final int expandableListPreferredChildIndicatorLeft

The preferred left bound for an expandable list child's indicator.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842834 (0x01010052)

expandableListPreferredChildIndicatorRight

Added in API level 1
public static final int expandableListPreferredChildIndicatorRight

The preferred right bound for an expandable list child's indicator.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842835 (0x01010053)

expandableListPreferredChildPaddingLeft

Added in API level 1
public static final int expandableListPreferredChildPaddingLeft

The preferred left padding for an expandable list item that is a child. If this is not provided, it defaults to the expandableListPreferredItemPaddingLeft.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842831 (0x0101004f)

expandableListPreferredItemIndicatorLeft

Added in API level 1
public static final int expandableListPreferredItemIndicatorLeft

The preferred left bound for an expandable list item's indicator. For a child-specific indicator, use expandableListPreferredChildIndicatorLeft.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842832 (0x01010050)

expandableListPreferredItemIndicatorRight

Added in API level 1
public static final int expandableListPreferredItemIndicatorRight

The preferred right bound for an expandable list item's indicator. For a child-specific indicator, use expandableListPreferredChildIndicatorRight.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842833 (0x01010051)

expandableListPreferredItemPaddingLeft

Added in API level 1
public static final int expandableListPreferredItemPaddingLeft

The preferred left padding for an expandable list item (for child-specific layouts, use expandableListPreferredChildPaddingLeft). This takes into account the indicator that will be shown to next to the item.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842830 (0x0101004e)

expandableListViewStyle

Added in API level 1
public static final int expandableListViewStyle

Default ExpandableListView style.

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

Constant Value: 16842863 (0x0101006f)

expandableListViewWhiteStyle

Added in API level 8
public static final int expandableListViewWhiteStyle

ExpandableListView with white background.

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

Constant Value: 16843446 (0x010102b6)

exported

Added in API level 1
public static final int exported

Flag indicating whether the given application component is available to other applications. If false, it can only be accessed by applications with its same user id (which usually means only by code in its own package). If true, it can be invoked by external entities, though which ones can do so may be controlled through permissions. The default value is false for activity, receiver, and service components that do not specify any intent filters; it is true for activity, receiver, and service components that do have intent filters (implying they expect to be invoked by others who do not know their particular component name) and for all content providers.

May be a boolean value, such as "true" or "false".

Constant Value: 16842768 (0x01010010)

externalService

Added in API level 24
public static final int externalService

If the service is an isolatedProcess service, this permits a client to bind to the service as if it were running it its own package. The service must also be exported if this flag is set.

May be a boolean value, such as "true" or "false".

Constant Value: 16844046 (0x0101050e)

extraTension

Added in API level 4
public static final int extraTension

This is the amount by which to multiply the tension.

May be a floating point value, such as "1.2".

Constant Value: 16843371 (0x0101026b)

extractNativeLibs

Added in API level 23
public static final int extractNativeLibs

When set installer will extract native libraries. If set to false libraries in the apk must be stored and page-aligned.

May be a boolean value, such as "true" or "false".

Constant Value: 16844010 (0x010104ea)

factor

Added in API level 1
public static final int factor

This is the amount of deceleration to add when easing in.

May be a floating point value, such as "1.2".

Constant Value: 16843219 (0x010101d3)

fadeDuration

Added in API level 4
public static final int fadeDuration

Duration, in milliseconds, of the fade out effect after the user is done drawing a gesture.

May be an integer value, such as "100".

Constant Value: 16843384 (0x01010278)

fadeEnabled

Added in API level 4
public static final int fadeEnabled

Defines whether the gesture will automatically fade out after being recognized.

May be a boolean value, such as "true" or "false".

Constant Value: 16843390 (0x0101027e)

fadeOffset

Added in API level 4
public static final int fadeOffset

Time, in milliseconds, to wait before the gesture fades out after the user is done drawing it.

May be an integer value, such as "100".

Constant Value: 16843383 (0x01010277)

fadeScrollbars

Added in API level 5
public static final int fadeScrollbars

Defines whether to fade out scrollbars when they are not in use.

May be a boolean value, such as "true" or "false".

Constant Value: 16843434 (0x010102aa)

fadingEdge

Added in API level 1
public static final int fadingEdge

This attribute is ignored in API level 14 (Build.VERSION_CODES.ICE_CREAM_SANDWICH) and higher. Using fading edges may introduce noticeable performance degradations and should be used only when required by the application's visual design. To request fading edges with API level 14 and above, use the android:requiresFadingEdge attribute instead.

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

ConstantValueDescription
horizontal1000Fades horizontal edges only.
none0No edge is faded.
vertical2000Fades vertical edges only.

Constant Value: 16842975 (0x010100df)

fadingEdgeLength

Added in API level 1
public static final int fadingEdgeLength

Defines the length of the fading edges.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842976 (0x010100e0)

fadingMode

Added in API level 19
public static final int fadingMode

Equivalent to transitionVisibilityMode, fadingMode works only with the Fade transition.

Must be one of the following constant values.

ConstantValueDescription
fade_in1Fade will only fade appearing items in.
fade_in_out3Fade will fade appearing items in and disappearing items out.
fade_out2Fade will only fade disappearing items out.

Constant Value: 16843745 (0x010103e1)

fallbackLineSpacing

Added in API level 28
public static final int fallbackLineSpacing

Whether to respect the ascent and descent of the fallback fonts that are used in displaying the text. When true, fallback fonts that end up getting used can increase the ascent and descent of the lines that they are used on.

May be a boolean value, such as "true" or "false".

Constant Value: 16844155 (0x0101057b)

fastScrollAlwaysVisible

Added in API level 11
public static final int fastScrollAlwaysVisible

When set to true, the list will always show the fast scroll interface. This setting implies fastScrollEnabled.

May be a boolean value, such as "true" or "false".

Constant Value: 16843573 (0x01010335)

fastScrollEnabled

Added in API level 3
public static final int fastScrollEnabled

Enables the fast scroll thumb that can be dragged to quickly scroll through the list.

May be a boolean value, such as "true" or "false".

Constant Value: 16843302 (0x01010226)

fastScrollOverlayPosition

Added in API level 11
public static final int fastScrollOverlayPosition

Position of the fast scroll index overlay window.

Must be one of the following constant values.

ConstantValueDescription
aboveThumb2
atThumb1
floating0

Constant Value: 16843578 (0x0101033a)

fastScrollPreviewBackgroundLeft

Added in API level 11
public static final int fastScrollPreviewBackgroundLeft

Drawable to use as the fast scroll index preview window background when shown on the left.

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

Constant Value: 16843575 (0x01010337)

fastScrollPreviewBackgroundRight

Added in API level 11
public static final int fastScrollPreviewBackgroundRight

Drawable to use as the fast scroll index preview window background when shown on the right.

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

Constant Value: 16843576 (0x01010338)

fastScrollStyle

Added in API level 21
public static final int fastScrollStyle

Specifies the style of the fast scroll decorations.

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

Constant Value: 16843767 (0x010103f7)

fastScrollTextColor

Added in API level 11
public static final int fastScrollTextColor

Text color for the fast scroll index overlay. Make sure it plays nicely with fastScrollPreviewBackground[Left|Right].

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

Constant Value: 16843609 (0x01010359)

fastScrollThumbDrawable

Added in API level 11
public static final int fastScrollThumbDrawable

Drawable to use as the fast scroll thumb.

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

Constant Value: 16843574 (0x01010336)

fastScrollTrackDrawable

Added in API level 11
public static final int fastScrollTrackDrawable

Drawable to use as the track for the fast scroll thumb. This may be null.

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

Constant Value: 16843577 (0x01010339)

fillAfter

Added in API level 1
public static final int fillAfter

When set to true, the animation transformation is applied after the animation is over. The default value is false. If fillEnabled is not set to true and the animation is not set on a View, fillAfter is assumed to be true.

May be a boolean value, such as "true" or "false".

Constant Value: 16843197 (0x010101bd)

fillAlpha

Added in API level 21
public static final int fillAlpha

The alpha of the path fill, as a value between 0 (completely transparent) and 1 (completely opaque).

May be a floating point value, such as "1.2".

Constant Value: 16843980 (0x010104cc)

fillBefore

Added in API level 1
public static final int fillBefore

When set to true or when fillEnabled is not set to true, the animation transformation is applied before the animation has started. The default value is true.

May be a boolean value, such as "true" or "false".

Constant Value: 16843196 (0x010101bc)

fillColor

Added in API level 21
public static final int fillColor

The color to fill the path if not defined implies no fill.

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

Constant Value: 16843780 (0x01010404)

fillEnabled

Added in API level 3
public static final int fillEnabled

When set to true, the value of fillBefore is taken into account.

May be a boolean value, such as "true" or "false".

Constant Value: 16843343 (0x0101024f)

fillType

Added in API level 24
public static final int fillType

sets the fillType for a path. It is the same as SVG's "fill-rule" properties. For more details, see https://www.w3.org/TR/SVG/painting.html#FillRuleProperty.

Must be one of the following constant values.

ConstantValueDescription
evenOdd1
nonZero0

Constant Value: 16844062 (0x0101051e)

fillViewport

Added in API level 1
public static final int fillViewport

Defines whether the scrollview should stretch its content to fill the viewport.

May be a boolean value, such as "true" or "false".

Constant Value: 16843130 (0x0101017a)

filter

Added in API level 1
public static final int filter

Enables or disables bitmap filtering. Filtering is used when the bitmap is shrunk or stretched to smooth its appearance. Default value is true.

May be a boolean value, such as "true" or "false".

Constant Value: 16843035 (0x0101011b)

filterTouchesWhenObscured

Added in API level 9
public static final int filterTouchesWhenObscured

Specifies whether to filter touches when the view's window is obscured by another visible window. When set to true, the view will not receive touches whenever a toast, dialog or other window appears above the view's window. Refer to the View security documentation for more details.

May be a boolean value, such as "true" or "false".

Constant Value: 16843460 (0x010102c4)

fingerprintAuthDrawable

Added in API level 23
public static final int fingerprintAuthDrawable

Icon that should be used to indicate that an app is waiting for a fingerprint scan. This should be used whenever an app is requesting the user to place a finger on the fingerprint sensor. It can be combined with other drawables such as colored circles, so the appearance matches the branding of the app requesting the fingerprint scan.

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

Constant Value: 16844008 (0x010104e8)

finishOnCloseSystemDialogs

Added in API level 5
public static final int finishOnCloseSystemDialogs

Specify whether an activity should be finished when a "close system windows" request has been made. This happens, for example, when the home key is pressed, when the device is locked, when a system dialog showing recent applications is displayed, etc.

May be a boolean value, such as "true" or "false".

Constant Value: 16843431 (0x010102a7)

finishOnTaskLaunch

Added in API level 1
public static final int finishOnTaskLaunch

Specify whether an activity should be finished when its task is brought to the foreground by relaunching from the home screen.

If both this option and allowTaskReparenting are specified, the finish trumps the affinity: the affinity will be ignored and the activity simply finished.

May be a boolean value, such as "true" or "false".

Constant Value: 16842772 (0x01010014)

firstBaselineToTopHeight

Added in API level 28
public static final int firstBaselineToTopHeight

Distance from the top of the TextView to the first text baseline. If set, this overrides the value set for paddingTop.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844157 (0x0101057d)

firstDayOfWeek

Added in API level 11
public static final int firstDayOfWeek

The first day of week according to Calendar.

May be an integer value, such as "100".

Constant Value: 16843581 (0x0101033d)

fitsSystemWindows

Added in API level 1
public static final int fitsSystemWindows

Boolean internal attribute to adjust view layout based on system windows such as the status bar. If true, adjusts the padding of this view to leave space for the system windows. Will only take effect if this view is in a non-embedded activity.

May be a boolean value, such as "true" or "false".

Constant Value: 16842973 (0x010100dd)

flipInterval

Added in API level 1
public static final int flipInterval

May be an integer value, such as "100".

Constant Value: 16843129 (0x01010179)

focusable

Added in API level 1
public static final int focusable

Controls whether a view can take focus. By default, this is "auto" which lets the framework determine whether a user can move focus to a view. By setting this attribute to true the view is allowed to take focus. By setting it to "false" the view will not take focus. This value does not impact the behavior of directly calling View.requestFocus(), which will always request focus regardless of this view. It only impacts where focus navigation will try to move focus.

May be a boolean value, such as "true" or "false".

Must be one of the following constant values.

ConstantValueDescription
auto10

Constant Value: 16842970 (0x010100da)

focusableInTouchMode

Added in API level 1
public static final int focusableInTouchMode

Boolean that controls whether a view can take focus while in touch mode. If this is true for a view, that view can gain focus when clicked on, and can keep focus if another view is clicked on that doesn't have this attribute set to true.

May be a boolean value, such as "true" or "false".

Constant Value: 16842971 (0x010100db)

focusedByDefault

Added in API level 26
public static final int focusedByDefault

Whether this view is a default-focus view. Only one view per keyboard navigation cluster can have this attribute set to true. See View.setFocusedByDefault(boolean).

May be a boolean value, such as "true" or "false".

Constant Value: 16844100 (0x01010544)

focusedMonthDateColor

Added in API level 11
Deprecated in API level 23
public static final int focusedMonthDateColor

This constant was deprecated in API level 23.
The color for the dates of the focused month.

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

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

Constant Value: 16843587 (0x01010343)

focusedSearchResultHighlightColor

Added in API level 34
public static final int focusedSearchResultHighlightColor

Color of focused search result highlight. This color is typically used when TextView/EditText shows search result in-app text search invoked with Ctrl+F.

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

Constant Value: 16844419 (0x01010683)

font

Added in API level 26
public static final int font

The reference to the font file to be used. This should be a file in the res/font folder and should therefore have an R reference value. E.g. @font/myfont

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

Constant Value: 16844082 (0x01010532)

fontFamily

Added in API level 16
public static final int fontFamily

Default font family.

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

Constant Value: 16843692 (0x010103ac)

fontFeatureSettings

Added in API level 21
public static final int fontFeatureSettings

Font feature settings.

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

Constant Value: 16843959 (0x010104b7)

fontProviderAuthority

Added in API level 26
Deprecated in API level 31
public static final int fontProviderAuthority

This constant was deprecated in API level 31.
Use app:fontProviderAuthority with Jetpack Core library instead for consistent behavior across all devices.

The authority of the Font Provider to be used for the request.

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

Constant Value: 16844112 (0x01010550)

fontProviderCerts

Added in API level 26
Deprecated in API level 31
public static final int fontProviderCerts

This constant was deprecated in API level 31.
Use app:fontProviderCerts with Jetpack Core library instead.

The sets of hashes for the certificates the provider should be signed with. This is used to verify the identity of the provider, and is only required if the provider is not part of the system image. This value may point to one list or a list of lists, where each individual list represents one collection of signature hashes. Refer to your font provider's documentation for these values.

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

Constant Value: 16844125 (0x0101055d)

fontProviderPackage

Added in API level 26
Deprecated in API level 31
public static final int fontProviderPackage

This constant was deprecated in API level 31.
Use app:fontProviderPackage with Jetpack Core library instead.

The package for the Font Provider to be used for the request. This is used to verify the identity of the provider.

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

Constant Value: 16844119 (0x01010557)

fontProviderQuery

Added in API level 26
Deprecated in API level 31
public static final int fontProviderQuery

This constant was deprecated in API level 31.
Use app:fontProviderQuery with Jetpack Core library instead.

The query to be sent over to the provider. Refer to your font provider's documentation on the format of this string.

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

Constant Value: 16844113 (0x01010551)

fontProviderSystemFontFamily

Added in API level 31
public static final int fontProviderSystemFontFamily

Provides the system font family name to check before downloading the font. For example if the fontProviderQuery asked for "Sans Serif", it is possible to define fontProviderSystemFontFamily as "sans-serif" to tell the system to use "sans-serif" font family if it exists on the system.

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

Constant Value: 16844322 (0x01010622)

fontStyle

Added in API level 26
public static final int fontStyle

The style of the given font file. This will be used when the font is being loaded into the font stack and will override any style information in the font's header tables. If unspecified, the value in the font's header tables will be used.

Must be one of the following constant values.

ConstantValueDescription
italic1
normal0

Constant Value: 16844095 (0x0101053f)

fontVariationSettings

Added in API level 28
public static final int fontVariationSettings

The variation settings to be applied to the font. The string should be in the following format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be used, or the font used does not support variation settings, this attribute needs not be specified.

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

Constant Value: 16844144 (0x01010570)

fontWeight

Added in API level 26
public static final int fontWeight

The weight of the given font file. This will be used when the font is being loaded into the font stack and will override any weight information in the font's header tables. Must be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most common values are 400 for regular weight and 700 for bold weight. If unspecified, the value in the font's header tables will be used.

May be an integer value, such as "100".

Constant Value: 16844083 (0x01010533)

footerDividersEnabled

Added in API level 3
public static final int footerDividersEnabled

When set to false, the ListView will not draw the divider before each footer view. The default value is true.

May be a boolean value, such as "true" or "false".

Constant Value: 16843311 (0x0101022f)

forceDarkAllowed

Added in API level 29
public static final int forceDarkAllowed

Whether or not the force dark feature is allowed to be applied to this View.

Setting this to false will disable the auto-dark feature on this View draws including any descendants.

Setting this to true will allow this view to be automatically made dark, however a value of 'true' will not override any 'false' value in its parent chain nor will it prevent any 'false' in any of its children.

May be a boolean value, such as "true" or "false".

Constant Value: 16844172 (0x0101058c)

forceHasOverlappingRendering

Added in API level 24
public static final int forceHasOverlappingRendering

Whether this view has elements that may overlap when drawn. See View.forceHasOverlappingRendering(boolean).

May be a boolean value, such as "true" or "false".

Constant Value: 16844065 (0x01010521)

forceQueryable

Added in API level 30
public static final int forceQueryable

May be a boolean value, such as "true" or "false".

Constant Value: 16844296 (0x01010608)

forceUriPermissions

Added in API level 29
public static final int forceUriPermissions

If true, the system will always create URI permission grants in the cases where Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION would apply. This is useful for a content provider that dynamically enforces permissions on calls in to the provider, instead of through the manifest: the system needs to know that it should always apply permission grants, even if it looks like the target of the grant would already have access to the URI.

May be a boolean value, such as "true" or "false".

Constant Value: 16844191 (0x0101059f)

foreground

Added in API level 1
public static final int foreground

Defines the drawable to draw over the content. This can be used as an overlay. The foreground drawable participates in the padding of the content if the gravity is set to fill.

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

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

Constant Value: 16843017 (0x01010109)

foregroundGravity

Added in API level 1
public static final int foregroundGravity

Defines the gravity to apply to the foreground drawable. The gravity defaults to fill.

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

ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional option that can be set to have the left and/or right edges of the child clipped to its container's bounds. The clip will be based on the horizontal gravity: a left gravity will clip the right edge, a right gravity will clip the left edge, and neither will clip both edges.
clip_vertical80Additional option that can be set to have the top and/or bottom edges of the child clipped to its container's bounds. The clip will be based on the vertical gravity: a top gravity will clip the bottom edge, a bottom gravity will clip the top edge, and neither will clip both edges.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
top30Push object to the top of its container, not changing its size.

Constant Value: 16843264 (0x01010200)

foregroundServiceType

Added in API level 29
public static final int foregroundServiceType

Specify the type of foreground service. Multiple types can be specified by ORing the flags together.

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

ConstantValueDescription
camera40Use the camera device or record video.

For apps with targetSdkVersion Build.VERSION_CODES.R and above, a foreground service will not be able to access the camera if this type is not specified in the manifest and in Service.startForeground(int, android.app.Notification, int).

For apps with targetSdkVersion Build.VERSION_CODES.UPSIDE_DOWN_CAKE and above, starting a foreground service with this type will require permission Manifest.permission.FOREGROUND_SERVICE_CAMERA and Manifest.permission.CAMERA.

connectedDevice10Auto, bluetooth, TV or other devices connection, monitoring and interaction.

For apps with targetSdkVersion Build.VERSION_CODES.UPSIDE_DOWN_CAKE and above, starting a foreground service with this type will require permission Manifest.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE and one of the following permissions: Manifest.permission.BLUETOOTH_CONNECT, Manifest.permission.CHANGE_NETWORK_STATE, Manifest.permission.CHANGE_WIFI_STATE, Manifest.permission.CHANGE_WIFI_MULTICAST_STATE, Manifest.permission.NFC, Manifest.permission.TRANSMIT_IR, or has been granted the access to one of the attached USB devices/accessories.

dataSync1Data (photo, file, account) upload/download, backup/restore, import/export, fetch, transfer over network between device and cloud.

For apps with targetSdkVersion Build.VERSION_CODES.UPSIDE_DOWN_CAKE and above, this type should NOT be used: calling Service.startForeground(int, android.app.Notification, int) with this type on devices running Build.VERSION_CODES.UPSIDE_DOWN_CAKE is still allowed, but calling it with this type on devices running future platform releases may get a InvalidForegroundServiceTypeException.

health100Health, wellness and fitness.

Requires the app to hold the permission Manifest.permission.FOREGROUND_SERVICE_HEALTH and one of the following permissions Manifest.permission.ACTIVITY_RECOGNITION, Manifest.permission.BODY_SENSORS, Manifest.permission.HIGH_SAMPLING_RATE_SENSORS.

location8GPS, map, navigation location update.

For apps with targetSdkVersion Build.VERSION_CODES.UPSIDE_DOWN_CAKE and above, starting a foreground service with this type will require permission Manifest.permission.FOREGROUND_SERVICE_LOCATION and one of the following permissions: Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION.

mediaPlayback2Music, video, news or other media play.

For apps with targetSdkVersion Build.VERSION_CODES.UPSIDE_DOWN_CAKE and above, starting a foreground service with this type will require permission Manifest.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK.

mediaProcessing2000Media processing use cases such as video or photo editing and processing.

Requires the app to hold the permission Manifest.permission.FOREGROUND_SERVICE_MEDIA_PROCESSING in order to use this type.

mediaProjection20Managing a MediaProjection session, e.g., for screen recording or takingscreenshots.

To capture through MediaProjection, an app must start a foreground service with the type corresponding to this constant. This type should only be used for MediaProjection. Capturing screen contents via createVirtualDisplay conveniently allows recording, presenting screen contents into a meeting, taking screenshots, or several other scenarios.

For apps with targetSdkVersion Build.VERSION_CODES.UPSIDE_DOWN_CAKE and above, starting a foreground service with this type will require permission Manifest.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION, and the user must have allowed the screen capture request from this app.

microphone80Use the microphone device or record audio.

For apps with targetSdkVersion Build.VERSION_CODES.R and above, a foreground service will not be able to access the microphone if this type is not specified in the manifest and in Service.startForeground(int, android.app.Notification, int).

For apps with targetSdkVersion Build.VERSION_CODES.UPSIDE_DOWN_CAKE and above, starting a foreground service with this type will require permission Manifest.permission.FOREGROUND_SERVICE_MICROPHONE and one of the following permissions: Manifest.permission.CAPTURE_AUDIO_OUTPUT, Manifest.permission.RECORD_AUDIO.

phoneCall4Ongoing operations related to phone calls, video conferencing, or similar interactive communication.

For apps with targetSdkVersion Build.VERSION_CODES.UPSIDE_DOWN_CAKE and above, starting a foreground service with this type will require permission Manifest.permission.FOREGROUND_SERVICE_PHONE_CALL and Manifest.permission.MANAGE_OWN_CALLS or holding the default dialer role.

remoteMessaging200Messaging use cases which host local server to relay messages across devices.

Requires the app to hold the permission Manifest.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING in order to use this type.

shortService800"Short service" foreground service type. See ServiceInfo.FOREGROUND_SERVICE_TYPE_SHORT_SERVICE. for more details.
specialUse40000000Use cases that can't be categorized into any other foreground service types, but also can't use @link android.app.job.JobInfo.Builder} APIs. See ServiceInfo.FOREGROUND_SERVICE_TYPE_SPECIAL_USE for the best practice of the use of this type.

Requires the app to hold the permission Manifest.permission.FOREGROUND_SERVICE_SPECIAL_USE in order to use this type.

systemExempted400The system exempted foreground service use cases.

Requires the app to hold the permission Manifest.permission.FOREGROUND_SERVICE_SYSTEM_EXEMPTED in order to use this type. Apps are allowed to use this type only in the use cases listed in ServiceInfo.FOREGROUND_SERVICE_TYPE_SYSTEM_EXEMPTED.

Constant Value: 16844185 (0x01010599)

foregroundTint

Added in API level 21
public static final int foregroundTint

Tint to apply to the foreground.

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

Constant Value: 16843885 (0x0101046d)

foregroundTintMode

Added in API level 21
public static final int foregroundTintMode

Blending mode used to apply the foreground tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable\u2019s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable\u2019s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

Constant Value: 16843886 (0x0101046e)

format

Added in API level 1
public static final 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. If no format string is specified, the Chronometer will simply display "MM:SS" or "H:MM:SS".

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

Constant Value: 16843013 (0x01010105)

format12Hour

Added in API level 17
public static final int format12Hour

Specifies the formatting pattern used to show the time and/or date in 12-hour mode. Please refer to DateFormat for a complete description of accepted formatting patterns. The default pattern is a locale-appropriate equivalent of "h:mm a".

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

Constant Value: 16843722 (0x010103ca)

format24Hour

Added in API level 17
public static final int format24Hour

Specifies the formatting pattern used to show the time and/or date in 24-hour mode. Please refer to DateFormat for a complete description of accepted formatting patterns. The default pattern is a locale-appropriate equivalent of "H:mm".

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

Constant Value: 16843723 (0x010103cb)

fraction

Added in API level 23
public static final int fraction

May be a floating point value, such as "1.2".

Constant Value: 16843992 (0x010104d8)

fragment

Added in API level 11
public static final int fragment

The fragment that is displayed when the user selects this item.

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

Constant Value: 16843491 (0x010102e3)

fragmentAdvancedPattern

Added in API level 35
public static final int fragmentAdvancedPattern

Specify a URI fragment that matches an advanced pattern, as a UriRelativeFilter with PatternMatcher.PATTERN_ADVANCED_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.

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

Constant Value: 16844438 (0x01010696)

fragmentAllowEnterTransitionOverlap

Added in API level 21
public static final int fragmentAllowEnterTransitionOverlap

Sets whether the enter and exit transitions should overlap when transitioning forward. Corresponds to Fragment.setAllowEnterTransitionOverlap(boolean)

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

Constant Value: 16843976 (0x010104c8)

fragmentAllowReturnTransitionOverlap

Added in API level 21
public static final int fragmentAllowReturnTransitionOverlap

Sets whether the enter and exit transitions should overlap when transitioning because of popping the back stack. Corresponds to Fragment.setAllowReturnTransitionOverlap(boolean)

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

Constant Value: 16843977 (0x010104c9)

fragmentCloseEnterAnimation

Added in API level 11
public static final int fragmentCloseEnterAnimation

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

Constant Value: 16843495 (0x010102e7)

fragmentCloseExitAnimation

Added in API level 11
public static final int fragmentCloseExitAnimation

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

Constant Value: 16843496 (0x010102e8)

fragmentEnterTransition

Added in API level 21
public static final int fragmentEnterTransition

The Transition that will be used to move Views into the initial scene. Corresponds to Fragment.setEnterTransition(android.transition.Transition)

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

Constant Value: 16843971 (0x010104c3)

fragmentExitTransition

Added in API level 21
public static final int fragmentExitTransition

The Transition that will be used to move Views out of the scene when the fragment is removed, hidden, or detached when not popping the back stack. Corresponds to Fragment.setExitTransition(android.transition.Transition)

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

Constant Value: 16843970 (0x010104c2)

fragmentFadeEnterAnimation

Added in API level 11
public static final int fragmentFadeEnterAnimation

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

Constant Value: 16843497 (0x010102e9)

fragmentFadeExitAnimation

Added in API level 11
public static final int fragmentFadeExitAnimation

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

Constant Value: 16843498 (0x010102ea)

fragmentOpenEnterAnimation

Added in API level 11
public static final int fragmentOpenEnterAnimation

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

Constant Value: 16843493 (0x010102e5)

fragmentOpenExitAnimation

Added in API level 11
public static final int fragmentOpenExitAnimation

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

Constant Value: 16843494 (0x010102e6)

fragmentPattern

Added in API level 35
public static final int fragmentPattern

Specify a URI fragment that matches a simple pattern, as a UriRelativeFilter 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.

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

Constant Value: 16844437 (0x01010695)

fragmentPrefix

Added in API level 35
public static final int fragmentPrefix

Specify a URI fragment that must be a prefix to match, as a UriRelativeFilter with PatternMatcher.PATTERN_PREFIX.

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

Constant Value: 16844436 (0x01010694)

fragmentReenterTransition

Added in API level 21
public static final int fragmentReenterTransition

The Transition that will be used to move Views in to the scene when returning due to popping a back stack. Corresponds to Fragment.setReenterTransition(android.transition.Transition)

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

Constant Value: 16843975 (0x010104c7)

fragmentReturnTransition

Added in API level 21
public static final int fragmentReturnTransition

The Transition that will be used to move Views out of the scene when the Fragment is preparing to be removed, hidden, or detached because of popping the back stack. Corresponds to Fragment.setReturnTransition(android.transition.Transition)

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

Constant Value: 16843973 (0x010104c5)

fragmentSharedElementEnterTransition

Added in API level 21
public static final int fragmentSharedElementEnterTransition

The Transition that will be used for shared elements transferred into the content Scene. Corresponds to Fragment.setSharedElementEnterTransition(android.transition.Transition)

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

Constant Value: 16843972 (0x010104c4)

fragmentSharedElementReturnTransition

Added in API level 21
public static final int fragmentSharedElementReturnTransition

The Transition that will be used for shared elements transferred back during a pop of the back stack. This Transition acts in the leaving Fragment. Corresponds to Fragment.setSharedElementReturnTransition(android.transition.Transition)

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

Constant Value: 16843974 (0x010104c6)

fragmentSuffix

Added in API level 35
public static final int fragmentSuffix

Specify a URI fragment that must be a suffix to match, as a UriRelativeFilter with PatternMatcher.PATTERN_SUFFIX.

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

Constant Value: 16844439 (0x01010697)

freezesText

Added in API level 1
public static final 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. By default this is disabled; it can be useful when the contents of a text view is not stored in a persistent place such as a content provider. For EditText it is always enabled, regardless of the value of the attribute.

May be a boolean value, such as "true" or "false".

Constant Value: 16843116 (0x0101016c)

fromAlpha

Added in API level 1
public static final int fromAlpha

May be a floating point value, such as "1.2".

Constant Value: 16843210 (0x010101ca)

fromDegrees

Added in API level 1
public static final int fromDegrees

May be a floating point value, such as "1.2".

Constant Value: 16843187 (0x010101b3)

fromExtendBottom

Added in API level 33
public static final int fromExtendBottom

Defines the amount a window should be extended outward from the bottom at the start of the animation in an absolute dimension (interpreted as pixels if no dimension unit is provided) or as a percentage of the animation target's height.

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16844386 (0x01010662)

fromExtendLeft

Added in API level 33
public static final int fromExtendLeft

Defines the amount a window should be extended outward from the left at the start of the animation in an absolute dimension (interpreted as pixels if no dimension unit is provided) or as a percentage of the animation target's width.

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16844383 (0x0101065f)

fromExtendRight

Added in API level 33
public static final int fromExtendRight

Defines the amount a window should be extended outward from the right at the start of the animation in an absolute dimension (interpreted as pixels if no dimension unit is provided) or as a percentage of the animation target's width.

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16844385 (0x01010661)

fromExtendTop

Added in API level 33
public static final int fromExtendTop

Defines the amount a window should be extended outward from the top at the start of the animation in an absolute dimension (interpreted as pixels if no dimension unit is provided) or as a percentage of the animation target's height.

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16844384 (0x01010660)

fromId

Added in API level 21
public static final int fromId

Keyframe identifier for the starting state.

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

Constant Value: 16843850 (0x0101044a)

fromScene

Added in API level 19
public static final int fromScene

The originating scene in this scene change.

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

Constant Value: 16843741 (0x010103dd)

fromXDelta

Added in API level 1
public static final int fromXDelta

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16843206 (0x010101c6)

fromXScale

Added in API level 1
public static final int fromXScale

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16843202 (0x010101c2)

fromYDelta

Added in API level 1
public static final int fromYDelta

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16843208 (0x010101c8)

fromYScale

Added in API level 1
public static final int fromYScale

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16843204 (0x010101c4)

fullBackupContent

Added in API level 23
public static final int fullBackupContent

Applications will set this in their manifest to opt-in to or out of full app data back-up and restore. Alternatively they can set it to an xml resource within their app that will be parsed by the BackupAgent to selectively backup files indicated within that xml.

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

May be a boolean value, such as "true" or "false".

Constant Value: 16844011 (0x010104eb)

fullBackupOnly

Added in API level 21
public static final int fullBackupOnly

Indicates that even though the application provides a BackupAgent, only full-data streaming backup operations are to be performed to save the app's data. This lets the app rely on full-data backups while still participating in the backup and restore process via the BackupAgent's full-data backup APIs. When this attribute is true the app's BackupAgent overrides of the onBackup() and onRestore() callbacks can be empty stubs.

May be a boolean value, such as "true" or "false".

Constant Value: 16843891 (0x01010473)

fullBright

Added in API level 1
public static final int fullBright

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

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

Constant Value: 16842954 (0x010100ca)

fullDark

Added in API level 1
public static final int fullDark

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

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

Constant Value: 16842950 (0x010100c6)

functionalTest

Added in API level 1
public static final int functionalTest

Flag indicating that an Instrumentation class should be run as a functional test.

May be a boolean value, such as "true" or "false".

Constant Value: 16842787 (0x01010023)

galleryItemBackground

Added in API level 1
public static final int galleryItemBackground

The preferred background for gallery items. This should be set as the background of any Views you provide from the Adapter.

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

Constant Value: 16842828 (0x0101004c)

galleryStyle

Added in API level 1
public static final int galleryStyle

Default Gallery style.

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

Constant Value: 16842864 (0x01010070)

gestureColor

Added in API level 4
public static final int gestureColor

Color used to draw a gesture.

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

Constant Value: 16843381 (0x01010275)

gestureStrokeAngleThreshold

Added in API level 4
public static final int gestureStrokeAngleThreshold

Minimum curve angle a stroke must contain before it is recognized as a gesture.

May be a floating point value, such as "1.2".

Constant Value: 16843388 (0x0101027c)

gestureStrokeLengthThreshold

Added in API level 4
public static final int gestureStrokeLengthThreshold

Minimum length of a stroke before it is recognized as a gesture.

May be a floating point value, such as "1.2".

Constant Value: 16843386 (0x0101027a)

gestureStrokeSquarenessThreshold

Added in API level 4
public static final int gestureStrokeSquarenessThreshold

Squareness threshold of a stroke before it is recognized as a gesture.

May be a floating point value, such as "1.2".

Constant Value: 16843387 (0x0101027b)

gestureStrokeType

Added in API level 4
public static final int gestureStrokeType

Defines the type of strokes that define a gesture.

Must be one of the following constant values.

ConstantValueDescription
multiple1A gesture is made of multiple strokes.
single0A gesture is made of only one stroke.

Constant Value: 16843385 (0x01010279)

gestureStrokeWidth

Added in API level 4
public static final int gestureStrokeWidth

Width of the stroke used to draw the gesture.

May be a floating point value, such as "1.2".

Constant Value: 16843380 (0x01010274)

glEsVersion

Added in API level 4
public static final int glEsVersion

The GLES driver version number needed by an application. The higher 16 bits represent the major number and the lower 16 bits represent the minor number. For example for GL 1.2 referring to 0x00000102, the actual value should be set as 0x00010002.

May be an integer value, such as "100".

Constant Value: 16843393 (0x01010281)

goIcon

Added in API level 21
public static final int goIcon

Go button icon.

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

Constant Value: 16843906 (0x01010482)

gradientRadius

Added in API level 1
public static final int gradientRadius

Radius of the gradient, used only with radial gradient. May be an explicit dimension or a fractional value relative to the shape's minimum dimension.

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16843172 (0x010101a4)

grantUriPermissions

Added in API level 1
public static final 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. If you are supporting this feature, you must be sure to call Context.revokeUriPermission when URIs are deleted from your provider.

May be a boolean value, such as "true" or "false".

Constant Value: 16842779 (0x0101001b)

gravity

Added in API level 1
public static final int gravity

Specifies how an object should position its content, on both the X and Y axes, within its own bounds.

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

ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional option that can be set to have the left and/or right edges of the child clipped to its container's bounds. The clip will be based on the horizontal gravity: a left gravity will clip the right edge, a right gravity will clip the left edge, and neither will clip both edges.
clip_vertical80Additional option that can be set to have the top and/or bottom edges of the child clipped to its container's bounds. The clip will be based on the vertical gravity: a top gravity will clip the bottom edge, a bottom gravity will clip the top edge, and neither will clip both edges.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push object to the top of its container, not changing its size.

Constant Value: 16842927 (0x010100af)

gridViewStyle

Added in API level 1
public static final int gridViewStyle

Default GridView style.

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

Constant Value: 16842865 (0x01010071)

groupIndicator

Added in API level 1
public static final int groupIndicator

Indicator shown beside the group View. This can be a stateful Drawable.

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

Constant Value: 16843019 (0x0101010b)

gwpAsanMode

Added in API level 30
public static final int gwpAsanMode

Enable sampled memory bug detection in this process. When enabled, a very small, random subset of native memory allocations are protected with guard pages, providing an ASan-like error report in case of a memory corruption bug. GWP-ASan is a recursive acronym. It stands for \u201cGWP-ASan Will Provide Allocation SANity\u201d. See the LLVM documentation for more information about this feature.

This attribute can be applied to a process tag, or to an application tag (to supply a default setting for all application components).

Must be one of the following constant values.

ConstantValueDescription
always1Always enable GwpAsan.
defaultffffffffDefault behavior: GwpAsan is disabled in user apps, randomly enabled in system apps.
never0Never enable GwpAsan.

Constant Value: 16844310 (0x01010616)

hand_hour

Added in API level 1
public static final int hand_hour

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

Constant Value: 16843011 (0x01010103)

hand_hourTint

Added in API level 31
public static final int hand_hourTint

Tint to apply to the hour hand graphic.

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

Constant Value: 16844344 (0x01010638)

hand_hourTintMode

Added in API level 31
public static final int hand_hourTintMode

Blending mode used to apply the hour hand graphic tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable\u2019s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable\u2019s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

Constant Value: 16844345 (0x01010639)

hand_minute

Added in API level 1
public static final int hand_minute

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

Constant Value: 16843012 (0x01010104)

hand_minuteTint

Added in API level 31
public static final int hand_minuteTint

Tint to apply to the minute hand graphic.

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

Constant Value: 16844346 (0x0101063a)

hand_minuteTintMode

Added in API level 31
public static final int hand_minuteTintMode

Blending mode used to apply the minute hand graphic tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable\u2019s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable\u2019s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

Constant Value: 16844347 (0x0101063b)

hand_second

Added in API level 31
public static final int hand_second

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

Constant Value: 16844323 (0x01010623)

hand_secondTint

Added in API level 31
public static final int hand_secondTint

Tint to apply to the second hand graphic.

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

Constant Value: 16844348 (0x0101063c)

hand_secondTintMode

Added in API level 31
public static final int hand_secondTintMode

Blending mode used to apply the second hand graphic tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable\u2019s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable\u2019s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

Constant Value: 16844349 (0x0101063d)

handle

Added in API level 3
public static final int handle

Identifier for the child that represents the drawer's handle.

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

Constant Value: 16843354 (0x0101025a)

handleProfiling

Added in API level 1
public static final 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. This allows it to target profiling data at a specific set of operations.

May be a boolean value, such as "true" or "false".

Constant Value: 16842786 (0x01010022)

handwritingBoundsOffsetBottom

Added in API level 34
public static final int handwritingBoundsOffsetBottom

The amount of offset that is applied to the bottom edge of the view's stylus handwriting bounds, which by default is the view's visible bounds.

This attribute is mainly used to enlarge the view's handwriting bounds for better user experience. Note that a positive offset means the bounds is extended outwards, and vice versa. See View.setHandwritingBoundsOffsets(float, float, float, float)

The default value is 40dp for TextView and EditText, and 0dp for all other views.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844406 (0x01010676)

handwritingBoundsOffsetLeft

Added in API level 34
public static final int handwritingBoundsOffsetLeft

The amount of offset that is applied to the left edge of the view's stylus handwriting bounds, which by default is the view's visible bounds.

This attribute is mainly used to enlarge the view's handwriting bounds for better user experience. Note that a positive offset means the bounds is extended outwards, and vice versa. See View.setHandwritingBoundsOffsets(float, float, float, float)

The default value is 10dp for TextView and EditText, and 0dp for other views.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844403 (0x01010673)

handwritingBoundsOffsetRight

Added in API level 34
public static final int handwritingBoundsOffsetRight

The amount of offset that is applied to the right edge of the view's stylus handwriting bounds, which by default is the view's visible bounds.

This attribute is mainly used to enlarge the view's handwriting bounds for better user experience. Note that a positive offset means the bounds is extended outwards, and vice versa. See View.setHandwritingBoundsOffsets(float, float, float, float)

The default value is 10dp for TextView and EditText, and 0dp for other views.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844405 (0x01010675)

handwritingBoundsOffsetTop

Added in API level 34
public static final int handwritingBoundsOffsetTop

The amount of offset that is applied to the top edge of the view's stylus handwriting bounds, which by default is the view's visible bounds.

This attribute is mainly used to enlarge the view's handwriting bounds for better user experience. Note that a positive offset means the bounds is extended outwards, and vice versa. See View.setHandwritingBoundsOffsets(float, float, float, float)

The default value is 40dp for TextView and EditText, and 0dp for other views.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844404 (0x01010674)

hapticFeedbackEnabled

Added in API level 3
public static final int hapticFeedbackEnabled

Boolean that controls whether a view should have haptic feedback enabled for events such as long presses.

May be a boolean value, such as "true" or "false".

Constant Value: 16843358 (0x0101025e)

hardwareAccelerated

Added in API level 11
public static final int hardwareAccelerated

Flag indicating whether the application's rendering should be hardware accelerated if possible. This flag is turned on by default for applications that are targeting Build.VERSION_CODES.ICE_CREAM_SANDWICH or later.

This flag can be set on the application and any activity declared in the manifest. When enabled for the application, each activity is automatically assumed to be hardware accelerated. This flag can be overridden in the activity tags, either turning it off (if on for the application) or on (if off for the application.)

When this flag is turned on for an activity (either directly or via the application tag), every window created from the activity, including the activity's own window, will be hardware accelerated, if possible.

Please refer to the documentation of WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED for more information on how to control this flag programmatically.

May be a boolean value, such as "true" or "false".

Constant Value: 16843475 (0x010102d3)

hasCode

Added in API level 1
public static final int hasCode

Indicate whether this application contains code. If set to false, there is no code associated with it and thus the system will not try to load its code when launching components. The default is true for normal behavior.

May be a boolean value, such as "true" or "false".

Constant Value: 16842764 (0x0101000c)

hasFragileUserData

Added in API level 29
public static final int hasFragileUserData

If true the user is prompted to keep the app's data on uninstall

May be a boolean value, such as "true" or "false".

Constant Value: 16844186 (0x0101059a)

headerAmPmTextAppearance

Added in API level 21
Deprecated in API level 23
public static final int headerAmPmTextAppearance

This constant was deprecated in API level 23.
Use headerTextColor instead.

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

The text appearance for the AM/PM header.

Constant Value: 16843936 (0x010104a0)

headerBackground

Added in API level 1
public static final int headerBackground

Default background for the menu header.

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

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

Constant Value: 16843055 (0x0101012f)

headerDayOfMonthTextAppearance

Added in API level 21
Deprecated in API level 23
public static final int headerDayOfMonthTextAppearance

This constant was deprecated in API level 23.
Use headerTextColor instead.

The text appearance for the day of month (ex. 28) in the selected date header.

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

Constant Value: 16843927 (0x01010497)

headerDividersEnabled

Added in API level 3
public static final int headerDividersEnabled

When set to false, the ListView will not draw the divider after each header view. The default value is true.

May be a boolean value, such as "true" or "false".

Constant Value: 16843310 (0x0101022e)

headerMonthTextAppearance

Added in API level 21
Deprecated in API level 23
public static final int headerMonthTextAppearance

This constant was deprecated in API level 23.
Use headerTextColor instead.

The text appearance for the month (ex. May) in the selected date header.

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

Constant Value: 16843926 (0x01010496)

headerTimeTextAppearance

Added in API level 21
Deprecated in API level 23
public static final int headerTimeTextAppearance

This constant was deprecated in API level 23.
Use headerTextColor instead.

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

The text appearance for the time header.

Constant Value: 16843935 (0x0101049f)

headerYearTextAppearance

Added in API level 21
Deprecated in API level 23
public static final int headerYearTextAppearance

This constant was deprecated in API level 23.
Use headerTextColor instead.

The text appearance for the year (ex. 2014) in the selected date header.

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

Constant Value: 16843928 (0x01010498)

height

Added in API level 1
public static final int height

Makes the TextView be exactly this tall. You could get the same effect by specifying this number in the layout parameters.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843093 (0x01010155)

hideOnContentScroll

Added in API level 21
public static final int hideOnContentScroll

Set true to hide the action bar on a vertical nested scroll of content.

May be a boolean value, such as "true" or "false".

Constant Value: 16843843 (0x01010443)

hint

Added in API level 1
public static final int hint

Hint text to display when the text is empty.

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

Constant Value: 16843088 (0x01010150)

homeAsUpIndicator

Added in API level 11
public static final int homeAsUpIndicator

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

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

Constant Value: 16843531 (0x0101030b)

homeLayout

Added in API level 11
public static final int homeLayout

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

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

Constant Value: 16843549 (0x0101031d)

horizontalDivider

Added in API level 1
public static final int horizontalDivider

Default horizontal divider between rows of menu items.

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

Constant Value: 16843053 (0x0101012d)

horizontalGap

Added in API level 3
Deprecated in API level 29
public static final int horizontalGap

This constant was deprecated in API level 29.
Copy this definition into your own application project.

Default horizontal gap between keys.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16843327 (0x0101023f)

horizontalScrollViewStyle

Added in API level 11
public static final int horizontalScrollViewStyle

Default HorizontalScrollView style.

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

Constant Value: 16843603 (0x01010353)

horizontalSpacing

Added in API level 1
public static final int horizontalSpacing

Defines the default horizontal spacing between columns.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843028 (0x01010114)

host

Added in API level 1
public static final int host

Specify a URI authority host that is handled, as per IntentFilter.addDataAuthority().

Note: host name matching in the Android framework is case-sensitive, unlike the formal RFC. As a result, host names here should always use lower case letters.

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

Constant Value: 16842792 (0x01010028)

hotSpotX

Added in API level 24
public static final int hotSpotX

X coordinate of the icon hot spot.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844055 (0x01010517)

hotSpotY

Added in API level 24
public static final int hotSpotY

Y coordinate of the icon hot spot.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844056 (0x01010518)

htmlDescription

Added in API level 30
public static final int htmlDescription

Html description of the target of accessibility shortcut usage, availability, or limitations (e.g. isn't supported by all apps).

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

Constant Value: 16844299 (0x0101060b)

hyphenationFrequency

Added in API level 23
public static final int hyphenationFrequency

Frequency of automatic hyphenation.

Must be one of the following constant values.

ConstantValueDescription
full2Standard amount of hyphenation, useful for running text and for screens with limited space for text.
fullFast4Same to hyphenationFrequency="full" but using faster algorithm for measuring hyphenation break points. To make text rendering faster with hyphenation, this algorithm ignores some hyphen character related typographic features, e.g. kerning.
none0No hyphenation.
normal1Less frequent hyphenation, useful for informal use cases, such as chat messages.
normalFast3Same to hyphenationFrequency="normal" but using faster algorithm for measuring hyphenation break points. To make text rendering faster with hyphenation, this algorithm ignores some hyphen character related typographic features, e.g. kerning.

Constant Value: 16843998 (0x010104de)

icon

Added in API level 1
public static final int icon

A Drawable resource providing a graphical representation of its associated item. Use with the application tag (to supply a default icon for all application components), or with the activity, receiver, service, or instrumentation tag (to supply a specific icon for that component). It may also be used with the intent-filter tag to supply an icon to show to the user when an activity is being selected based on a particular Intent.

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.

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

Constant Value: 16842754 (0x01010002)

iconPreview

Added in API level 3
Deprecated in API level 29
public static final int iconPreview

This constant was deprecated in API level 29.
Copy this definition into your own application project.

The icon to show in the popup preview.

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

Constant Value: 16843337 (0x01010249)

iconSpaceReserved

Added in API level 26
public static final int iconSpaceReserved

Whether the space for the preference icon view will be reserved. By default, preference icon view visibility will be set to GONE when there is no icon provided, so the default value of this attribute is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16844129 (0x01010561)

iconTint

Added in API level 26
public static final int iconTint

Tint to apply to the icon.

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

Constant Value: 16844126 (0x0101055e)

iconTintMode

Added in API level 26
public static final int iconTintMode

Blending mode used to apply the icon tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and icon color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the icon with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the icon, but with the icon\u2019s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the icon. The icon\u2019s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the icon. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

Constant Value: 16844127 (0x0101055f)

iconifiedByDefault

Added in API level 11
public static final int iconifiedByDefault

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

May be a boolean value, such as "true" or "false".

Constant Value: 16843514 (0x010102fa)

id

Added in API level 1
public static final int id

Supply an identifier name for this view, to later retrieve it with 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).

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

Constant Value: 16842960 (0x010100d0)

identifier

Added in API level 29
public static final int identifier

The identifier to assign to the intent, as per Intent.setIdentifier().

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

Constant Value: 16844294 (0x01010606)

ignoreGravity

Added in API level 1
public static final int ignoreGravity

Indicates what view should not be affected by gravity.

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

Constant Value: 16843263 (0x010101ff)

imageButtonStyle

Added in API level 1
public static final int imageButtonStyle

The style resource to use for an ImageButton.

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

Constant Value: 16842866 (0x01010072)

imageWellStyle

Added in API level 1
public static final int imageWellStyle

The style resource to use for an ImageButton that is an image well.

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

Constant Value: 16842867 (0x01010073)

imeActionId

Added in API level 3
public static final int imeActionId

Supply a value for EditorInfo.actionId used when an input method is connected to the text view.

May be an integer value, such as "100".

Constant Value: 16843366 (0x01010266)

imeActionLabel

Added in API level 3
public static final int imeActionLabel

Supply a value for EditorInfo.actionLabel used when an input method is connected to the text view.

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

Constant Value: 16843365 (0x01010265)

imeExtractEnterAnimation

Added in API level 3
public static final int imeExtractEnterAnimation

Animation to use when showing the fullscreen extract UI after it had previously been hidden.

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

Constant Value: 16843368 (0x01010268)

imeExtractExitAnimation

Added in API level 3
public static final int imeExtractExitAnimation

Animation to use when hiding the fullscreen extract UI after it had previously been shown.

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

Constant Value: 16843369 (0x01010269)

imeFullscreenBackground

Added in API level 3
public static final int imeFullscreenBackground

Background to use for entire input method when it is being shown in fullscreen mode with the extract view, to ensure that it completely covers the application. This allows, for example, the candidate view to be hidden while in fullscreen mode without having the application show through behind it.

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

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

Constant Value: 16843308 (0x0101022c)

imeOptions

Added in API level 3
public static final int imeOptions

Additional features you can enable in an IME associated with an editor to improve the integration with your application. The constants here correspond to those defined by EditorInfo.imeOptions.

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

ConstantValueDescription
actionDone6The action key performs a "done" operation, closing the soft input method. Corresponds to EditorInfo.IME_ACTION_DONE.
actionGo2The action key performs a "go" operation to take the user to the target of the text they typed. Typically used, for example, when entering a URL. Corresponds to EditorInfo.IME_ACTION_GO.
actionNext5The action key performs a "next" operation, taking the user to the next field that will accept text. Corresponds to EditorInfo.IME_ACTION_NEXT.
actionNone1This editor has no action associated with it. Corresponds to EditorInfo.IME_ACTION_NONE.
actionPrevious7The action key performs a "previous" operation, taking the user to the previous field that will accept text. Corresponds to EditorInfo.IME_ACTION_PREVIOUS.
actionSearch3The action key performs a "search" operation, taking the user to the results of searching for the text the have typed (in whatever context is appropriate). Corresponds to EditorInfo.IME_ACTION_SEARCH.
actionSend4The action key performs a "send" operation, delivering the text to its target. This is typically used when composing a message. Corresponds to EditorInfo.IME_ACTION_SEND.
actionUnspecified0There is no specific action associated with this editor, let the editor come up with its own if it can. Corresponds to EditorInfo.IME_NULL.
flagForceAscii80000000Used to request that the IME should be capable of inputting ASCII characters. The intention of this flag is to ensure that the user can type Roman alphabet characters in a TextView used for, typically, account ID or password input. It is expected that IMEs normally are able to input ASCII even without being told so (such IMEs already respect this flag in a sense), but there could be some cases they aren't when, for instance, only non-ASCII input languages like Arabic, Greek, Hebrew, Russian are enabled in the IME. Applications need to be aware that the flag is not a guarantee, and not all IMEs will respect it. However, it is strongly recommended for IME authors to respect this flag especially when their IME could end up with a state that has only non-ASCII input languages enabled.

Corresponds to EditorInfo.IME_FLAG_FORCE_ASCII.

flagNavigateNext8000000Used to specify that there is something interesting that a forward navigation can focus on. This is like using actionNext, except allows the IME to be multiline (with an enter key) as well as provide forward navigation. Note that some IMEs may not be able to do this, especially when running on a small screen where there is little space. In that case it does not need to present a UI for this option. Like actionNext, if the user selects the IME's facility to forward navigate, this will show up in the application at InputConnection.performEditorAction(int).

Corresponds to EditorInfo.IME_FLAG_NAVIGATE_NEXT.

flagNavigatePrevious4000000Like flagNavigateNext, but specifies there is something interesting that a backward navigation can focus on. If the user selects the IME's facility to backward navigate, this will show up in the application as an actionPrevious at InputConnection.performEditorAction(int).

Corresponds to EditorInfo.IME_FLAG_NAVIGATE_PREVIOUS.

flagNoAccessoryAction20000000Used in conjunction with a custom action, this indicates that the action should not be available as an accessory button when the input method is full-screen. Note that by setting this flag, there can be cases where the action is simply never available to the user. Setting this generally means that you think showing text being edited is more important than the action you have supplied.

Corresponds to EditorInfo.IME_FLAG_NO_ACCESSORY_ACTION.

flagNoEnterAction40000000Used in conjunction with a custom action, this indicates that the action should not be available in-line as a replacement for the "enter" key. Typically this is because the action has such a significant impact or is not recoverable enough that accidentally hitting it should be avoided, such as sending a message. Note that TextView will automatically set this flag for you on multi-line text views.

Corresponds to EditorInfo.IME_FLAG_NO_ENTER_ACTION.

flagNoExtractUi10000000Used to specify that the IME does not need to show its extracted text UI. For input methods that may be fullscreen, often when in landscape mode, this allows them to be smaller and let part of the application be shown behind. Though there will likely be limited access to the application available from the user, it can make the experience of a (mostly) fullscreen IME less jarring. Note that when this flag is specified the IME may not be set up to be able to display text, so it should only be used in situations where this is not needed.

Corresponds to EditorInfo.IME_FLAG_NO_EXTRACT_UI.

flagNoFullscreen2000000Used to request that the IME never go into fullscreen mode. Applications need to be aware that the flag is not a guarantee, and not all IMEs will respect it.

Corresponds to EditorInfo.IME_FLAG_NO_FULLSCREEN.

flagNoPersonalizedLearning1000000Used to request that the IME should not update any personalized data such as typing history and personalized language model based on what the user typed on this text editing object. Typical use cases are:
  • When the application is in a special mode, where user's activities are expected to be not recorded in the application's history. Some web browsers and chat applications may have this kind of modes.
  • When storing typing history does not make much sense. Specifying this flag in typing games may help to avoid typing history from being filled up with words that the user is less likely to type in their daily life. Another example is that when the application already knows that the expected input is not a valid word (e.g. a promotion code that is not a valid word in any natural language).

Applications need to be aware that the flag is not a guarantee, and some IMEs may not respect it.

normal0There are no special semantics associated with this editor.

Constant Value: 16843364 (0x01010264)

imeSubtypeExtraValue

Added in API level 11
public static final int imeSubtypeExtraValue

The extra value of the subtype. This string can be any string and will be passed to the IME when the framework calls the IME with the subtype.

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

Constant Value: 16843502 (0x010102ee)

imeSubtypeLocale

Added in API level 11
public static final int imeSubtypeLocale

The locale of the subtype. This string should be a locale (for example en_US and fr_FR) and will be passed to the IME when the framework calls the IME with the subtype. This is also used by the framework to know the supported locales of the IME.

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

Constant Value: 16843500 (0x010102ec)

imeSubtypeMode

Added in API level 11
public static final int imeSubtypeMode

The mode of the subtype. This string can be a mode (for example, voice and keyboard) and this string will be passed to the IME when the framework calls the IME with the subtype. InputMethodSubtype.getLocale() returns the value specified in this attribute.

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

Constant Value: 16843501 (0x010102ed)

immersive

Added in API level 11
public static final int immersive

Flag declaring this activity to be 'immersive'; immersive activities should not be interrupted with other activities or notifications.

May be a boolean value, such as "true" or "false".

Constant Value: 16843456 (0x010102c0)

importantForAccessibility

Added in API level 16
public static final int importantForAccessibility

Describes whether or not this view is important for accessibility. If it is important, the view fires accessibility events and is reported to accessibility services that query the screen. Note: While not recommended, an accessibility service may decide to ignore this attribute and operate on all views in the view tree.

May be an integer value, such as "100".

Must be one of the following constant values.

ConstantValueDescription
auto0The system determines whether the view is important for accessibility - default (recommended).
no2The view is not important for accessibility.
noHideDescendants4The view is not important for accessibility, nor are any of its descendant views.
yes1The view is important for accessibility.

Constant Value: 16843690 (0x010103aa)

importantForAutofill

Added in API level 26
public static final int importantForAutofill

Hints the Android System whether the view node associated with this View should be included in a view structure used for autofill purposes.

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

ConstantValueDescription
auto0Let the Android System use its heuristics to determine if the view is important for autofill.
no2Hint the Android System that this view is *not* important for autofill, but its children (if any) will be traversed..
noExcludeDescendants8Hint the Android System that this view is *not* important for autofill, and its children (if any) will not be traversed.
yes1Hint the Android System that this view is important for autofill, and its children (if any) will be traversed..
yesExcludeDescendants4Hint the Android System that this view is important for autofill, but its children (if any) will not be traversed.

Constant Value: 16844120 (0x01010558)

importantForContentCapture

Added in API level 30
public static final int importantForContentCapture

Hints the Android System whether the view node associated with this View should be use for content capture purposes.

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

ConstantValueDescription
auto0Let the Android System use its heuristics to determine if the view is important for content capture.
no2Hint the Android System that this view is *not* important for content capture, but its children (if any) will be traversed..
noExcludeDescendants8Hint the Android System that this view is *not* important for content capture, and its children (if any) will not be traversed.
yes1Hint the Android System that this view is important for content capture, and its children (if any) will be traversed..
yesExcludeDescendants4Hint the Android System that this view is important for content capture, but its children (if any) will not be traversed.

Constant Value: 16844295 (0x01010607)

inAnimation

Added in API level 1
public static final int inAnimation

Identifier for the animation to use when a view is shown.

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

Constant Value: 16843127 (0x01010177)

includeFontPadding

Added in API level 1
public static final int includeFontPadding

Leave enough room for ascenders and descenders instead of using the font ascent and descent strictly. (Normally true).

May be a boolean value, such as "true" or "false".

Constant Value: 16843103 (0x0101015f)

includeInGlobalSearch

Added in API level 4
public static final int includeInGlobalSearch

If provided and true, this searchable activity will be included in any global lists of search targets. The default value is false. Optional attribute..

May be a boolean value, such as "true" or "false".

Constant Value: 16843374 (0x0101026e)

indeterminate

Added in API level 1
public static final int indeterminate

Allows to enable the indeterminate mode. In this mode the progress bar plays an infinite looping animation.

May be a boolean value, such as "true" or "false".

Constant Value: 16843065 (0x01010139)

indeterminateBehavior

Added in API level 1
public static final int indeterminateBehavior

Defines how the indeterminate mode should behave when the progress reaches max. Only affects the indeterminate animation if the indeterminate Drawable does not implement android.graphics.drawable.Animatable.

Must be one of the following constant values.

ConstantValueDescription
cycle2Progress keeps the current value and goes back to 0.
repeat1Progress starts over from 0.

Constant Value: 16843070 (0x0101013e)

indeterminateDrawable

Added in API level 1
public static final int indeterminateDrawable

Drawable used for the indeterminate mode. One that implements Animatable offers more control over the animation.

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

Constant Value: 16843067 (0x0101013b)

indeterminateDuration

Added in API level 1
public static final int indeterminateDuration

Duration of the indeterminate animation. Only affects the indeterminate animation if the indeterminate Drawable does not implement android.graphics.drawable.Animatable.

May be an integer value, such as "100".

Constant Value: 16843069 (0x0101013d)

indeterminateOnly

Added in API level 1
public static final int indeterminateOnly

Restricts to ONLY indeterminate mode (state-keeping progress mode will not work).

May be a boolean value, such as "true" or "false".

Constant Value: 16843066 (0x0101013a)

indeterminateProgressStyle

Added in API level 11
public static final int indeterminateProgressStyle

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

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

Constant Value: 16843544 (0x01010318)

indeterminateTint

Added in API level 21
public static final int indeterminateTint

Tint to apply to the indeterminate progress indicator.

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

Constant Value: 16843881 (0x01010469)

indeterminateTintMode

Added in API level 21
public static final int indeterminateTintMode

Blending mode used to apply the indeterminate progress indicator tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable\u2019s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable\u2019s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

Constant Value: 16843882 (0x0101046a)

indicatorEnd

Added in API level 18
public static final int indicatorEnd

The end bound for an item's indicator. To specify a right bound specific to children, use childIndicatorEnd.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843730 (0x010103d2)

indicatorLeft

Added in API level 1
public static final int indicatorLeft

The left bound for an item's indicator. To specify a left bound specific to children, use childIndicatorLeft.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843021 (0x0101010d)

indicatorRight

Added in API level 1
public static final int indicatorRight

The right bound for an item's indicator. To specify a right bound specific to children, use childIndicatorRight.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843022 (0x0101010e)

indicatorStart

Added in API level 18
public static final int indicatorStart

The start bound for an item's indicator. To specify a start bound specific to children, use childIndicatorStart.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843729 (0x010103d1)

inflatedId

Added in API level 1
public static final int inflatedId

Overrides the id of the inflated View with this value.

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

Constant Value: 16842995 (0x010100f3)

inheritShowWhenLocked

Added in API level 29
public static final int inheritShowWhenLocked

Specifies whether this Activity should be shown on top of the lock screen whenever the lockscreen is up and this activity has another activity behind it with the showWhenLocked attribute set. That is, this activity is only visible on the lock screen if there is another activity with the showWhenLocked attribute visible at the same time on the lock screen. A use case for this is permission dialogs, that should only be visible on the lock screen if their requesting activity is also visible.

The default value of this attribute is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16844188 (0x0101059c)

initOrder

Added in API level 1
public static final int initOrder

Specify the order in which content providers hosted by a process are instantiated when that process is created. Not needed unless you have providers with dependencies between each other, to make sure that they are created in the order needed by those dependencies. The value is a simple integer, with higher numbers being initialized first.

May be an integer value, such as "100".

Constant Value: 16842778 (0x0101001a)

initialKeyguardLayout

Added in API level 17
public static final int initialKeyguardLayout

A resource id of a layout.

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

Constant Value: 16843714 (0x010103c2)

initialLayout

Added in API level 3
public static final int initialLayout

A resource id of a layout.

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

Constant Value: 16843345 (0x01010251)

innerRadius

Added in API level 3
public static final int innerRadius

Inner radius of the ring. When defined, innerRadiusRatio is ignored.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843359 (0x0101025f)

innerRadiusRatio

Added in API level 1
public static final int innerRadiusRatio

Inner radius of the ring expressed as a ratio of the ring's width. For instance, if innerRadiusRatio=9, then the inner radius equals the ring's width divided by 9. This value is ignored if innerRadius is defined. Default value is 9.

May be a floating point value, such as "1.2".

Constant Value: 16843163 (0x0101019b)

inputMethod

Added in API level 1
Deprecated in API level 15
public static final int inputMethod

This constant was deprecated in API level 15.
Use inputType instead.

If set, specifies that this TextView should use the specified input method (specified by fully-qualified class name).

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

Constant Value: 16843112 (0x01010168)

inputType

Added in API level 3
public static final int inputType

The type of data being placed in a text field, used to help an input method decide how to let the user enter text. The constants here correspond to those defined by InputType. Generally you can select a single value, though some can be combined together as indicated. Setting this attribute to anything besides none also implies that the text is editable.

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

ConstantValueDescription
date14For entering a date. Corresponds to InputType.TYPE_CLASS_DATETIME | InputType.TYPE_DATETIME_VARIATION_DATE.
datetime4For entering a date and time. Corresponds to InputType.TYPE_CLASS_DATETIME | InputType.TYPE_DATETIME_VARIATION_NORMAL.
none0There is no content type. The text is not editable.
number2A numeric only field. Corresponds to InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_VARIATION_NORMAL.
numberDecimal2002Can be combined with number and its other options to allow a decimal (fractional) number. Corresponds to InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_DECIMAL.
numberPassword12A numeric password field. Corresponds to InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_VARIATION_PASSWORD.
numberSigned1002Can be combined with number and its other options to allow a signed number. Corresponds to InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_SIGNED.
phone3For entering a phone number. Corresponds to InputType.TYPE_CLASS_PHONE.
text1Just plain old text. Corresponds to InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_NORMAL.
textAutoComplete10001Can be combined with text and its variations to specify that this field will be doing its own auto-completion and talking with the input method appropriately. Corresponds to InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE.
textAutoCorrect8001Can be combined with text and its variations to request auto-correction of text being input. Corresponds to InputType.TYPE_TEXT_FLAG_AUTO_CORRECT.
textCapCharacters1001Can be combined with text and its variations to request capitalization of all characters. Corresponds to InputType.TYPE_TEXT_FLAG_CAP_CHARACTERS.
textCapSentences4001Can be combined with text and its variations to request capitalization of the first character of every sentence. Corresponds to InputType.TYPE_TEXT_FLAG_CAP_SENTENCES.
textCapWords2001Can be combined with text and its variations to request capitalization of the first character of every word. Corresponds to InputType.TYPE_TEXT_FLAG_CAP_WORDS.
textEmailAddress21Text that will be used as an e-mail address. Corresponds to InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS.
textEmailSubject31Text that is being supplied as the subject of an e-mail. Corresponds to InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_EMAIL_SUBJECT.
textEnableTextConversionSuggestions100001Can be combined with text and its variations to indicate that if there is extra information, the IME should provide TextAttribute. Corresponds to InputType.TYPE_TEXT_FLAG_ENABLE_TEXT_CONVERSION_SUGGESTIONS.
textFilterb1Text that is filtering some other data. Corresponds to InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_FILTER.
textImeMultiLine40001Can be combined with text and its variations to indicate that though the regular text view should not be multiple lines, the IME should provide multiple lines if it can. Corresponds to InputType.TYPE_TEXT_FLAG_IME_MULTI_LINE.
textLongMessage51Text that is the content of a long message. Corresponds to InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_LONG_MESSAGE.
textMultiLine20001Can be combined with text and its variations to allow multiple lines of text in the field. If this flag is not set, the text field will be constrained to a single line. Corresponds to InputType.TYPE_TEXT_FLAG_MULTI_LINE. Note: If this flag is not set and the text field doesn't have max length limit, the framework automatically set maximum length of the characters to 5000 for the performance reasons.
textNoSuggestions80001Can be combined with text and its variations to indicate that the IME should not show any dictionary-based word suggestions. Corresponds to InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS.
textPassword81Text that is a password. Corresponds to InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD.
textPersonName61Text that is the name of a person. Corresponds to InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PERSON_NAME.
textPhoneticc1Text that is for phonetic pronunciation, such as a phonetic name field in a contact entry. Corresponds to InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PHONETIC.
textPostalAddress71Text that is being supplied as a postal mailing address. Corresponds to InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_POSTAL_ADDRESS.
textShortMessage41Text that is the content of a short message. Corresponds to InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_SHORT_MESSAGE.
textUri11Text that will be used as a URI. Corresponds to InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_URI.
textVisiblePassword91Text that is a password that should be visible. Corresponds to InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD.
textWebEditTexta1Text that is being supplied as text in a web form. Corresponds to InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_WEB_EDIT_TEXT.
textWebEmailAddressd1Text that will be used as an e-mail address on a web form. Corresponds to InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_WEB_EMAIL_ADDRESS.
textWebPassworde1Text that will be used as a password on a web form. Corresponds to InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_WEB_PASSWORD.
time24For entering a time. Corresponds to InputType.TYPE_CLASS_DATETIME | InputType.TYPE_DATETIME_VARIATION_TIME.

Constant Value: 16843296 (0x01010220)

inset

Added in API level 21
public static final int inset

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16843957 (0x010104b5)

insetBottom

Added in API level 1
public static final int insetBottom

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16843194 (0x010101ba)

insetLeft

Added in API level 1
public static final int insetLeft

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16843191 (0x010101b7)

insetRight

Added in API level 1
public static final int insetRight

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16843192 (0x010101b8)

insetTop

Added in API level 1
public static final int insetTop

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16843193 (0x010101b9)

installLocation

Added in API level 8
public static final int installLocation

The default install location defined by an application.

Must be one of the following constant values.

ConstantValueDescription
auto0Let the system decide ideal install location
internalOnly1Explicitly request to be installed on internal phone storage only.
preferExternal2Prefer to be installed on SD card. There is no guarantee that the system will honor this request. The application might end up being installed on internal storage if external media is unavailable or too full.

Constant Value: 16843447 (0x010102b7)

interactiveUiTimeout

Added in API level 29
public static final int interactiveUiTimeout

A recommended timeout in milliseconds used in android.view.accessibility.AccessibilityManager.getRecommendedTimeoutMillis(int, int) to return a suitable value for interactive controls. This setting can be changed at runtime by calling android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo).

May be an integer value, such as "100".

Constant Value: 16844181 (0x01010595)

interpolator

Added in API level 1
public static final int interpolator

Sets the acceleration curve for the indeterminate animation. Defaults to a linear interpolation. Only affects the indeterminate animation if the indeterminate Drawable does not implement android.graphics.drawable.Animatable.

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

Constant Value: 16843073 (0x01010141)

intro

Added in API level 33
public static final int intro

Detailed intro of the target of accessibility shortcut purpose or behavior.

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

Constant Value: 16844395 (0x0101066b)

isAccessibilityTool

Added in API level 31
public static final int isAccessibilityTool

Attribute indicating whether the accessibility service is used to assist users with disabilities. This criteria might be defined by the installer. The default is false.

Note: If this flag is false, system will show a notification after a duration to inform the user about the privacy implications of the service.

May be a boolean value, such as "true" or "false".

Constant Value: 16844353 (0x01010641)

isAlwaysSyncable

Added in API level 11
public static final int isAlwaysSyncable

Set to true to tell the SyncManager to automatically call setIsSyncable(..., ..., 1) for the SyncAdapter instead of issuaing an initialization sync to the SyncAdapter. Defaults to false.

May be a boolean value, such as "true" or "false".

Constant Value: 16843571 (0x01010333)

isAsciiCapable

Added in API level 19
public static final int isAsciiCapable

Set to true if this subtype is ASCII capable. If the subtype is ASCII capable, it should guarantee that the user can input ASCII characters with this subtype. This is important because many password fields only allow ASCII-characters.

Note: In order to avoid some known system issues on Build.VERSION_CODES.P and prior OSes, you may want to include "AsciiCapable" in R.styleable.InputMethod_Subtype_imeSubtypeExtraValue when you specify true to this attribute.

May be a boolean value, such as "true" or "false".

Constant Value: 16843753 (0x010103e9)

isAuxiliary

Added in API level 14
public static final int isAuxiliary

Set true if the subtype is auxiliary. An auxiliary subtype won't be shown in the input method selection list in the settings app. InputMethodManager#switchToLastInputMethod will ignore auxiliary subtypes when it chooses a target subtype.

May be a boolean value, such as "true" or "false".

Constant Value: 16843647 (0x0101037f)

isCredential

Added in API level 34
public static final int isCredential

Boolean that hints the Android System that the view is credential and associated with CredentialManager

May be a boolean value, such as "true" or "false".

Constant Value: 16844417 (0x01010681)

isDefault

Added in API level 3
public static final int isDefault

Set to true in all of the configurations for which this input method should be considered an option as the default.

May be a boolean value, such as "true" or "false".

Constant Value: 16843297 (0x01010221)

isFeatureSplit

Added in API level 26
public static final int isFeatureSplit

If set to true, indicates to the platform that this APK is a 'feature' split and that it implicitly depends on the base APK. This distinguishes this split APK from a 'configuration' split, which provides resource overrides for a particular 'feature' split. Only useful when the base APK specifies android:isolatedSplits="true".

The default value of this attribute is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16844123 (0x0101055b)

isGame

Added in API level 21
public static final int isGame

A boolean flag used to indicate if an application is a Game or not.

This information can be used by the system to group together applications that are classified as games, and display them separately from the other applications.

May be a boolean value, such as "true" or "false".

Constant Value: 16843764 (0x010103f4)

isIndicator

Added in API level 1
public static final int isIndicator

Whether this rating bar is an indicator (and non-changeable by the user).

May be a boolean value, such as "true" or "false".

Constant Value: 16843079 (0x01010147)

isLightTheme

Added in API level 29
public static final int isLightTheme

Specifies that a theme has a light background with dark text on top.

May be a boolean value, such as "true" or "false".

Constant Value: 16844176 (0x01010590)

isModifier

Added in API level 3
Deprecated in API level 29
public static final int isModifier

This constant was deprecated in API level 29.
Copy this definition into your own application project.

Whether this is a modifier key such as Alt or Shift.

May be a boolean value, such as "true" or "false".

Constant Value: 16843334 (0x01010246)

isRepeatable

Added in API level 3
Deprecated in API level 29
public static final int isRepeatable

This constant was deprecated in API level 29.
Copy this definition into your own application project.

Whether long-pressing on this key will make it repeat.

May be a boolean value, such as "true" or "false".

Constant Value: 16843336 (0x01010248)

isScrollContainer

Added in API level 3
public static final int isScrollContainer

Set this if the view will serve as a scrolling container, meaning that it can be resized to shrink its overall window so that there will be space for an input method. If not set, the default value will be true if "scrollbars" has the vertical scrollbar set, else it will be false.

May be a boolean value, such as "true" or "false".

Constant Value: 16843342 (0x0101024e)

isSplitRequired

Added in API level 29
Deprecated in API level 33
public static final int isSplitRequired

This constant was deprecated in API level 33.
Use requiredSplitTypes instead.Use requiredSplitTypes instead.

May be a boolean value, such as "true" or "false".

Flag to specify if this APK requires at least one split [either feature or resource] to be present in order to function. Default value is false.

Constant Value: 16844177 (0x01010591)

isStatic

Added in API level 26
public static final int isStatic

Whether the given RRO is static or not.

May be a boolean value, such as "true" or "false".

Constant Value: 16844122 (0x0101055a)

isSticky

Added in API level 3
Deprecated in API level 29
public static final int isSticky

This constant was deprecated in API level 29.
Copy this definition into your own application project.

Whether this is a toggle key.

May be a boolean value, such as "true" or "false".

Constant Value: 16843335 (0x01010247)

isolatedProcess

Added in API level 16
public static final int isolatedProcess

If set to true, this service will run under a special process that is isolated from the rest of the system. The only communication with it is through the Service API (binding and starting).

May be a boolean value, such as "true" or "false".

Constant Value: 16843689 (0x010103a9)

isolatedSplits

Added in API level 26
public static final int isolatedSplits

If set to true, indicates to the platform that any split APKs installed for this application should be loaded into their own Context objects and not appear in the base application's Context.

The default value of this attribute is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16844107 (0x0101054b)

itemBackground

Added in API level 1
public static final int itemBackground

Default background for each menu item.

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

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

Constant Value: 16843056 (0x01010130)

itemIconDisabledAlpha

Added in API level 1
public static final int itemIconDisabledAlpha

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

May be a floating point value, such as "1.2".

Constant Value: 16843057 (0x01010131)

itemPadding

Added in API level 11
public static final int itemPadding

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

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843565 (0x0101032d)

itemTextAppearance

Added in API level 1
public static final int itemTextAppearance

Default appearance of menu item text.

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

Constant Value: 16843052 (0x0101012c)

justificationMode

Added in API level 26
public static final int justificationMode

Mode for justification.

Must be one of the following constant values.

ConstantValueDescription
inter_character2@FlaggedApi("com.android.text.flags.inter_character_justification")
inter_word1Justification by stretching word spacing.
none0No justification.

Constant Value: 16844135 (0x01010567)

keepScreenOn

Added in API level 1
public static final int keepScreenOn

Controls whether the view's window should keep the screen on while visible.

May be a boolean value, such as "true" or "false".

Constant Value: 16843286 (0x01010216)

key

Added in API level 1
public static final int key

The key to store the Preference value.

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

Constant Value: 16843240 (0x010101e8)

keyBackground

Added in API level 3
Deprecated in API level 29
public static final int keyBackground

This constant was deprecated in API level 29.
Copy this definition into your own application project.

Image for the key. This image needs to be a StateListDrawable, with the following possible states: normal, pressed, checkable, checkable+pressed, checkable+checked, checkable+checked+pressed.

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

Constant Value: 16843315 (0x01010233)

keyEdgeFlags

Added in API level 3
Deprecated in API level 29
public static final int keyEdgeFlags

This constant was deprecated in API level 29.
Copy this definition into your own application project.Copy this definition into your own application project.Copy this definition into your own application project.

Key edge flags.

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

ConstantValueDescription
left1Key is anchored to the left of the keyboard.
right2Key is anchored to the right of the keyboard.

Constant Value: 16843333 (0x01010245)

keyHeight

Added in API level 3
Deprecated in API level 29
public static final int keyHeight

This constant was deprecated in API level 29.
Copy this definition into your own application project.

Default height of a key, in pixels or percentage of display width.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

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.

Constant Value: 16843326 (0x0101023e)

keyIcon

Added in API level 3
Deprecated in API level 29
public static final int keyIcon

This constant was deprecated in API level 29.
Copy this definition into your own application project.

The icon to display on the key instead of the label.

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

Constant Value: 16843340 (0x0101024c)

keyLabel

Added in API level 3
Deprecated in API level 29
public static final int keyLabel

This constant was deprecated in API level 29.
Copy this definition into your own application project.

The label to display on the key.

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

Constant Value: 16843339 (0x0101024b)

keyOutputText

Added in API level 3
Deprecated in API level 29
public static final int keyOutputText

This constant was deprecated in API level 29.
Copy this definition into your own application project.

The string of characters to output when this key is pressed.

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

Constant Value: 16843338 (0x0101024a)

keyPreviewHeight

Added in API level 3
Deprecated in API level 29
public static final int keyPreviewHeight

This constant was deprecated in API level 29.
Copy this definition into your own application project.

Height of the key press feedback popup.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843321 (0x01010239)

keyPreviewLayout

Added in API level 3
Deprecated in API level 29
public static final int keyPreviewLayout

This constant was deprecated in API level 29.
Copy this definition into your own application project.

Layout resource for key press feedback.

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

Constant Value: 16843319 (0x01010237)

keyPreviewOffset

Added in API level 3
Deprecated in API level 29
public static final int keyPreviewOffset

This constant was deprecated in API level 29.
Copy this definition into your own application project.

Vertical offset of the key press feedback from the key.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843320 (0x01010238)

keySet

Added in API level 19
public static final int keySet

Groups signing keys into a KeySet for easier reference in other APIs. However, currently no APIs use this.

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

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

May be an integer value, such as "100".

May be a boolean value, such as "true" or "false".

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

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16843739 (0x010103db)

keyTextColor

Added in API level 3
Deprecated in API level 29
public static final int keyTextColor

This constant was deprecated in API level 29.
Copy this definition into your own application project.

Color to use for the label in a key.

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

Constant Value: 16843318 (0x01010236)

keyTextSize

Added in API level 3
Deprecated in API level 29
public static final int keyTextSize

This constant was deprecated in API level 29.
Copy this definition into your own application project.

Size of the text for character keys.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843316 (0x01010234)

keyWidth

Added in API level 3
Deprecated in API level 29
public static final int keyWidth

This constant was deprecated in API level 29.
Copy this definition into your own application project.

Default width of a key, in pixels or percentage of display width.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

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.

Constant Value: 16843325 (0x0101023d)

keyboardLayout

Added in API level 16
public static final int keyboardLayout

The key character map file resource.

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

Constant Value: 16843691 (0x010103ab)

keyboardLayoutType

Added in API level 34
public static final int keyboardLayoutType

The layout type of the given keyboardLayout. NOTE: The enum to int value mapping must remain stable

Must be one of the following constant values.

ConstantValueDescription
azerty3Azerty-based keyboard layout.
colemak5Colemak keyboard layout.
dvorak4Dvorak keyboard layout.
extended9Keyboard layout that has been enhanced with a large number of extra characters.
qwerty1Qwerty-based keyboard layout.
qwertz2Qwertz-based keyboard layout.
turkish_f8Turkish-F keyboard layout.
turkish_q7Turkish-Q keyboard layout.
workman6Workman keyboard layout.

Constant Value: 16844415 (0x0101067f)

keyboardLocale

Added in API level 34
public static final int keyboardLocale

The locales the given keyboard layout corresponds to. This is a list of BCP-47 conformant language tags separated by the delimiter ',' or '|'. Some examples of language tags are: en-US, zh-Hans-CN, el-Grek-polyton. It includes information for language code, country code, variant, and script code like \u2018Latn\u2019, \u2018Cyrl\u2019, etc.

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

Constant Value: 16844414 (0x0101067e)

keyboardMode

Added in API level 3
Deprecated in API level 29
public static final int keyboardMode

This constant was deprecated in API level 29.
Copy this definition into your own application project.

Mode of the keyboard. If the mode doesn't match the requested keyboard mode, the row will be skipped.

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

Constant Value: 16843341 (0x0101024d)

keyboardNavigationCluster

Added in API level 26
public static final int keyboardNavigationCluster

Whether this view is a root of a keyboard navigation cluster. See View.setKeyboardNavigationCluster(boolean).

May be a boolean value, such as "true" or "false".

Constant Value: 16844096 (0x01010540)

keycode

Added in API level 1
public static final int keycode

This enum provides the same keycode values as can be found in KeyEvent.

Must be one of the following constant values.

ConstantValueDescription
KEYCODE_07
KEYCODE_18
KEYCODE_11e3
KEYCODE_12e4
KEYCODE_29
KEYCODE_3a
KEYCODE_3D_MODEce
KEYCODE_4b
KEYCODE_5c
KEYCODE_6d
KEYCODE_7e
KEYCODE_8f
KEYCODE_910
KEYCODE_A1d
KEYCODE_ALL_APPS11c
KEYCODE_ALT_LEFT39
KEYCODE_ALT_RIGHT3a
KEYCODE_APOSTROPHE4b
KEYCODE_APP_SWITCHbb
KEYCODE_ASSISTdb
KEYCODE_AT4d
KEYCODE_AVR_INPUTb6
KEYCODE_AVR_POWERb5
KEYCODE_B1e
KEYCODE_BACK4
KEYCODE_BACKSLASH49
KEYCODE_BOOKMARKae
KEYCODE_BREAK79
KEYCODE_BRIGHTNESS_DOWNdc
KEYCODE_BRIGHTNESS_UPdd
KEYCODE_BUTTON_1bc
KEYCODE_BUTTON_10c5
KEYCODE_BUTTON_11c6
KEYCODE_BUTTON_12c7
KEYCODE_BUTTON_13c8
KEYCODE_BUTTON_14c9
KEYCODE_BUTTON_15ca
KEYCODE_BUTTON_16cb
KEYCODE_BUTTON_2bd
KEYCODE_BUTTON_3be
KEYCODE_BUTTON_4bf
KEYCODE_BUTTON_5c0
KEYCODE_BUTTON_6c1
KEYCODE_BUTTON_7c2
KEYCODE_BUTTON_8c3
KEYCODE_BUTTON_9c4
KEYCODE_BUTTON_A60
KEYCODE_BUTTON_B61
KEYCODE_BUTTON_C62
KEYCODE_BUTTON_L166
KEYCODE_BUTTON_L268
KEYCODE_BUTTON_MODE6e
KEYCODE_BUTTON_R167
KEYCODE_BUTTON_R269
KEYCODE_BUTTON_SELECT6d
KEYCODE_BUTTON_START6c
KEYCODE_BUTTON_THUMBL6a
KEYCODE_BUTTON_THUMBR6b
KEYCODE_BUTTON_X63
KEYCODE_BUTTON_Y64
KEYCODE_BUTTON_Z65
KEYCODE_C1f
KEYCODE_CALCULATORd2
KEYCODE_CALENDARd0
KEYCODE_CALL5
KEYCODE_CAMERA1b
KEYCODE_CAPS_LOCK73
KEYCODE_CAPTIONSaf
KEYCODE_CHANNEL_DOWNa7
KEYCODE_CHANNEL_UPa6
KEYCODE_CLEAR1c
KEYCODE_COMMA37
KEYCODE_CONTACTScf
KEYCODE_COPY116
KEYCODE_CTRL_LEFT71
KEYCODE_CTRL_RIGHT72
KEYCODE_CUT115
KEYCODE_D20
KEYCODE_DEL43
KEYCODE_DEMO_APP_112d
KEYCODE_DEMO_APP_212e
KEYCODE_DEMO_APP_312f
KEYCODE_DEMO_APP_4130
KEYCODE_DPAD_CENTER17
KEYCODE_DPAD_DOWN14
KEYCODE_DPAD_DOWN_LEFT10d
KEYCODE_DPAD_DOWN_RIGHT10f
KEYCODE_DPAD_LEFT15
KEYCODE_DPAD_RIGHT16
KEYCODE_DPAD_UP13
KEYCODE_DPAD_UP_LEFT10c
KEYCODE_DPAD_UP_RIGHT10e
KEYCODE_DVRad
KEYCODE_E21
KEYCODE_EISUd4
KEYCODE_ENDCALL6
KEYCODE_ENTER42
KEYCODE_ENVELOPE41
KEYCODE_EQUALS46
KEYCODE_ESCAPE6f
KEYCODE_EXPLORER40
KEYCODE_F22
KEYCODE_F183
KEYCODE_F108c
KEYCODE_F118d
KEYCODE_F128e
KEYCODE_F284
KEYCODE_F385
KEYCODE_F486
KEYCODE_F587
KEYCODE_F688
KEYCODE_F789
KEYCODE_F88a
KEYCODE_F98b
KEYCODE_FEATURED_APP_1129
KEYCODE_FEATURED_APP_212a
KEYCODE_FEATURED_APP_312b
KEYCODE_FEATURED_APP_412c
KEYCODE_FOCUS50
KEYCODE_FORWARD7d
KEYCODE_FORWARD_DEL70
KEYCODE_FUNCTION77
KEYCODE_G23
KEYCODE_GRAVE44
KEYCODE_GUIDEac
KEYCODE_H24
KEYCODE_HEADSETHOOK4f
KEYCODE_HELP103
KEYCODE_HENKANd6
KEYCODE_HOME3
KEYCODE_I25
KEYCODE_INFOa5
KEYCODE_INSERT7c
KEYCODE_J26
KEYCODE_K27
KEYCODE_KANAda
KEYCODE_KATAKANA_HIRAGANAd7
KEYCODE_L28
KEYCODE_LANGUAGE_SWITCHcc
KEYCODE_LAST_CHANNELe5
KEYCODE_LEFT_BRACKET47
KEYCODE_M29
KEYCODE_MANNER_MODEcd
KEYCODE_MEDIA_AUDIO_TRACKde
KEYCODE_MEDIA_CLOSE80
KEYCODE_MEDIA_EJECT81
KEYCODE_MEDIA_FAST_FORWARD5a
KEYCODE_MEDIA_NEXT57
KEYCODE_MEDIA_PAUSE7f
KEYCODE_MEDIA_PLAY7e
KEYCODE_MEDIA_PLAY_PAUSE55
KEYCODE_MEDIA_PREVIOUS58
KEYCODE_MEDIA_RECORD82
KEYCODE_MEDIA_REWIND59
KEYCODE_MEDIA_SKIP_BACKWARD111
KEYCODE_MEDIA_SKIP_FORWARD110
KEYCODE_MEDIA_SLEEPdf
KEYCODE_MEDIA_STEP_BACKWARD113
KEYCODE_MEDIA_STEP_FORWARD112
KEYCODE_MEDIA_STOP56
KEYCODE_MEDIA_TOP_MENUe2
KEYCODE_MEDIA_WAKEUPe0
KEYCODE_MENU52
KEYCODE_META_LEFT75
KEYCODE_META_RIGHT76
KEYCODE_MINUS45
KEYCODE_MOVE_END7b
KEYCODE_MOVE_HOME7a
KEYCODE_MUHENKANd5
KEYCODE_MUSICd1
KEYCODE_MUTE5b
KEYCODE_N2a
KEYCODE_NAVIGATE_IN106
KEYCODE_NAVIGATE_NEXT105
KEYCODE_NAVIGATE_OUT107
KEYCODE_NAVIGATE_PREVIOUS104
KEYCODE_NOTIFICATION53
KEYCODE_NUM4e
KEYCODE_NUMPAD_090
KEYCODE_NUMPAD_191
KEYCODE_NUMPAD_292
KEYCODE_NUMPAD_393
KEYCODE_NUMPAD_494
KEYCODE_NUMPAD_595
KEYCODE_NUMPAD_696
KEYCODE_NUMPAD_797
KEYCODE_NUMPAD_898
KEYCODE_NUMPAD_999
KEYCODE_NUMPAD_ADD9d
KEYCODE_NUMPAD_COMMA9f
KEYCODE_NUMPAD_DIVIDE9a
KEYCODE_NUMPAD_DOT9e
KEYCODE_NUMPAD_ENTERa0
KEYCODE_NUMPAD_EQUALSa1
KEYCODE_NUMPAD_LEFT_PARENa2
KEYCODE_NUMPAD_MULTIPLY9b
KEYCODE_NUMPAD_RIGHT_PARENa3
KEYCODE_NUMPAD_SUBTRACT9c
KEYCODE_NUM_LOCK8f
KEYCODE_O2b
KEYCODE_P2c
KEYCODE_PAGE_DOWN5d
KEYCODE_PAGE_UP5c
KEYCODE_PAIRINGe1
KEYCODE_PASTE117
KEYCODE_PERIOD38
KEYCODE_PICTSYMBOLS5e
KEYCODE_PLUS51
KEYCODE_POUND12
KEYCODE_POWER1a
KEYCODE_PROFILE_SWITCH120
KEYCODE_PROG_BLUEba
KEYCODE_PROG_GREDb7
KEYCODE_PROG_GREENb8
KEYCODE_PROG_YELLOWb9
KEYCODE_Q2d
KEYCODE_R2e
KEYCODE_REFRESH11d
KEYCODE_RIGHT_BRACKET48
KEYCODE_ROd9
KEYCODE_S2f
KEYCODE_SCROLL_LOCK74
KEYCODE_SEARCH54
KEYCODE_SEMICOLON4a
KEYCODE_SETTINGSb0
KEYCODE_SHIFT_LEFT3b
KEYCODE_SHIFT_RIGHT3c
KEYCODE_SLASH4c
KEYCODE_SOFT_LEFT1
KEYCODE_SOFT_RIGHT2
KEYCODE_SOFT_SLEEP114
KEYCODE_SPACE3e
KEYCODE_STAR11
KEYCODE_STB_INPUTb4
KEYCODE_STB_POWERb3
KEYCODE_STEM_1109
KEYCODE_STEM_210a
KEYCODE_STEM_310b
KEYCODE_STEM_PRIMARY108
KEYCODE_SWITCH_CHARSET5f
KEYCODE_SYM3f
KEYCODE_SYSRQ78
KEYCODE_SYSTEM_NAVIGATION_DOWN119
KEYCODE_SYSTEM_NAVIGATION_LEFT11a
KEYCODE_SYSTEM_NAVIGATION_RIGHT11b
KEYCODE_SYSTEM_NAVIGATION_UP118
KEYCODE_T30
KEYCODE_TAB3d
KEYCODE_THUMBS_DOWN11f
KEYCODE_THUMBS_UP11e
KEYCODE_TVaa
KEYCODE_TV_ANTENNA_CABLEf2
KEYCODE_TV_AUDIO_DESCRIPTIONfc
KEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWNfe
KEYCODE_TV_AUDIO_DESCRIPTION_MIX_UPfd
KEYCODE_TV_CONTENTS_MENU100
KEYCODE_TV_DATA_SERVICEe6
KEYCODE_TV_INPUTb2
KEYCODE_TV_INPUT_COMPONENT_1f9
KEYCODE_TV_INPUT_COMPONENT_2fa
KEYCODE_TV_INPUT_COMPOSITE_1f7
KEYCODE_TV_INPUT_COMPOSITE_2f8
KEYCODE_TV_INPUT_HDMI_1f3
KEYCODE_TV_INPUT_HDMI_2f4
KEYCODE_TV_INPUT_HDMI_3f5
KEYCODE_TV_INPUT_HDMI_4f6
KEYCODE_TV_INPUT_VGA_1fb
KEYCODE_TV_MEDIA_CONTEXT_MENU101
KEYCODE_TV_NETWORKf1
KEYCODE_TV_NUMBER_ENTRYea
KEYCODE_TV_POWERb1
KEYCODE_TV_RADIO_SERVICEe8
KEYCODE_TV_SATELLITEed
KEYCODE_TV_SATELLITE_BSee
KEYCODE_TV_SATELLITE_CSef
KEYCODE_TV_SATELLITE_SERVICEf0
KEYCODE_TV_TELETEXTe9
KEYCODE_TV_TERRESTRIAL_ANALOGeb
KEYCODE_TV_TERRESTRIAL_DIGITALec
KEYCODE_TV_TIMER_PROGRAMMING102
KEYCODE_TV_ZOOM_MODEff
KEYCODE_U31
KEYCODE_UNKNOWN0
KEYCODE_V32
KEYCODE_VIDEO_APP_1121
KEYCODE_VIDEO_APP_2122
KEYCODE_VIDEO_APP_3123
KEYCODE_VIDEO_APP_4124
KEYCODE_VIDEO_APP_5125
KEYCODE_VIDEO_APP_6126
KEYCODE_VIDEO_APP_7127
KEYCODE_VIDEO_APP_8128
KEYCODE_VOICE_ASSISTe7
KEYCODE_VOLUME_DOWN19
KEYCODE_VOLUME_MUTEa4
KEYCODE_VOLUME_UP18
KEYCODE_W33
KEYCODE_WINDOWab
KEYCODE_X34
KEYCODE_Y35
KEYCODE_YENd8
KEYCODE_Z36
KEYCODE_ZENKAKU_HANKAKUd3
KEYCODE_ZOOM_INa8
KEYCODE_ZOOM_OUTa9

Constant Value: 16842949 (0x010100c5)

killAfterRestore

Added in API level 5
public static final int killAfterRestore

Whether the application in question should be terminated after its settings have been restored during a full-system restore operation. Single-package restore operations will never cause the application to be shut down. Full-system restore operations typically only occur once, when the phone is first set up. Third-party applications will not usually need to use this attribute.

The default is true, which means that after the application has finished processing its data during a full-system restore, it will be terminated.

May be a boolean value, such as "true" or "false".

Constant Value: 16843420 (0x0101029c)

knownActivityEmbeddingCerts

Added in API level 33
public static final int knownActivityEmbeddingCerts

A reference to an array resource containing the signing certificate digests, one of which a client is required to be signed with in order to embed the activity. If the client is not signed with one of the certificates in the set, and the activity does not allow embedding by untrusted hosts via allowUntrustedActivityEmbedding flag, the embedding request will fail.

The digest should be computed over the DER encoding of the trusted certificate using the SHA-256 digest algorithm.

If only a single signer is declared this can also be a string resource, or the digest can be declared inline as the value for this attribute.

If the attribute is declared both on the application and the activity level, the value on the activity level takes precedence.

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

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

Constant Value: 16844394 (0x0101066a)

knownCerts

Added in API level 31
public static final int knownCerts

A reference to an array resource containing the signing certificate digests to be granted this permission when using the knownSigner protection flag. The digest should be computed over the DER encoding of the trusted certificate using the SHA-256 digest algorithm.

If only a single signer is declared this can also be a string resource, or the digest can be declared inline as the value for this attribute.

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

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

Constant Value: 16844330 (0x0101062a)

lStar

Added in API level 31
public static final int lStar

Perceptual luminance of a color, in accessibility friendly color space. From 0 to 100.

May be a floating point value, such as "1.2".

Constant Value: 16844359 (0x01010647)

label

Added in API level 1
public static final int label

A user-legible name for the given item. Use with the application tag (to supply a default label for all application components), or with the activity, receiver, service, or instrumentation tag (to supply a specific label for that component). It may also be used with the intent-filter tag to supply a label to show to the user when an activity is being selected based on a particular Intent.

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 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;

Constant Value: 16842753 (0x01010001)

labelFor

Added in API level 17
public static final int labelFor

Specifies the id of a view for which this view serves as a label for accessibility purposes. For example, a TextView before an EditText in the UI usually specifies what information is contained in the EditText. Hence, the TextView is a label for the EditText.

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

Constant Value: 16843718 (0x010103c6)

labelTextSize

Added in API level 3
Deprecated in API level 29
public static final int labelTextSize

This constant was deprecated in API level 29.
Copy this definition into your own application project.

Size of the text for custom keys with some text and no icon.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843317 (0x01010235)

languageTag

Added in API level 24
public static final int languageTag

The BCP-47 Language Tag of the subtype. This replaces R.styleable.InputMethod_Subtype_imeSubtypeLocale.

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

Constant Value: 16844040 (0x01010508)

largeHeap

Added in API level 11
public static final int largeHeap

Request that your application's processes be created with a large Dalvik heap. This applies to all processes created for the application. It only applies to the first application loaded into a process; if using a sharedUserId to allow multiple applications to use a process, they all must use this option consistently or will get unpredictable results.

May be a boolean value, such as "true" or "false".

Constant Value: 16843610 (0x0101035a)

largeScreens

Added in API level 4
public static final int largeScreens

Indicates whether the application supports larger screen form-factors. A large screen is defined as a screen that is significantly larger than a normal phone screen, and thus may require some special care on the application's part to make good use of it. An example would be a VGA normal density screen, though even larger screens are certainly possible. An application that does not support large screens will be placed as a postage stamp on such a screen, so that it retains the dimensions it was originally designed for.

May be a boolean value, such as "true" or "false".

Constant Value: 16843398 (0x01010286)

largestWidthLimitDp

Added in API level 13
public static final int largestWidthLimitDp

Starting with Build.VERSION_CODES.HONEYCOMB_MR2, this is the new way to specify the screens an application is compatible with. This attribute provides the maximum "smallest screen width" (as per the -swNNNdp resource configuration) that the application can work well on. If this value is smaller than the "smallest screen width" of the device it is running on, the application will be forced in to screen compatibility mode with no way for the user to turn it off. Currently the compatibility mode only emulates phone screens with a 320dp width, so compatibility mode is not applied if the value for largestWidthLimitDp is larger than 320.

May be an integer value, such as "100".

Constant Value: 16843622 (0x01010366)

lastBaselineToBottomHeight

Added in API level 28
public static final int lastBaselineToBottomHeight

Distance from the bottom of the TextView to the last text baseline. If set, this overrides the value set for paddingBottom.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844158 (0x0101057e)

launchMode

Added in API level 1
public static final int launchMode

Specify how an activity should be launched. See the Tasks and Back Stack document for important information on how these options impact the behavior of your application.

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.

ConstantValueDescription
singleInstance3Only 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 Tasks and Back Stack document for more details about tasks.
singleInstancePerTask4The activity can only be running as the root activity of the task, the first activity that created the task, and therefore there will only be one instance of this activity in a task. In contrast to the singleTask launch mode, this activity can be started in multiple instances in different tasks if the FLAG_ACTIVITY_MULTIPLE_TASK or FLAG_ACTIVITY_NEW_DOCUMENT is set. This enum value is introduced in API level 31.
singleTask2If, 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 Tasks and Back Stack document for more details about tasks.
singleTop1If, 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.
standard0The 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.

Constant Value: 16842781 (0x0101001d)

launchTaskBehindSourceAnimation

Added in API level 21
public static final int launchTaskBehindSourceAnimation

When opening an activity in a new task using Intent.FLAG_ACTIVITY_LAUNCH_BEHIND, this is the animation that is run on the activity of the old task (which is already on the screen and then stays on).

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

Constant Value: 16843922 (0x01010492)

launchTaskBehindTargetAnimation

Added in API level 21
public static final int launchTaskBehindTargetAnimation

When opening an activity in a new task using Intent/FLAG_ACTIVITY_LAUNCH_BEHIND, this is the animation that is run on the activity of the new task (which is entering the screen and then leaving).

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

Constant Value: 16843921 (0x01010491)

layerType

Added in API level 11
public static final int layerType

Specifies the type of layer backing this view. The default value is none. Refer to View.setLayerType(int, android.graphics.Paint) for more information.

Must be one of the following constant values.

ConstantValueDescription
hardware2Use a hardware layer. Refer to View.setLayerType(int, android.graphics.Paint) for more information.
none0Don't use a layer.
software1Use a software layer. Refer to View.setLayerType(int, android.graphics.Paint) for more information.

Constant Value: 16843604 (0x01010354)

layout

Added in API level 1
public static final int layout

Supply an identifier for the layout resource to inflate when the ViewStub becomes visible or when forced to do so. The layout resource must be a valid reference to a layout.

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

Constant Value: 16842994 (0x010100f2)

layoutAnimation

Added in API level 1
public static final int layoutAnimation

Defines the layout animation to use the first time the ViewGroup is laid out. Layout animations can also be started manually after the first layout.

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

Constant Value: 16842988 (0x010100ec)

layoutDirection

Added in API level 17
public static final int layoutDirection

Defines the direction of layout drawing. This typically is associated with writing direction of the language script used. The possible values are "ltr" for Left-to-Right, "rtl" for Right-to-Left, "locale", and "inherit" from parent view. If there is nothing to inherit, "locale" is used. "locale" falls back to "en-US". "ltr" is the direction used in "en-US". The default for this attribute is "inherit".

Must be one of the following constant values.

ConstantValueDescription
inherit2Inherit from parent.
locale3Locale.
ltr0Left-to-Right.
rtl1Right-to-Left.

Constant Value: 16843698 (0x010103b2)

layoutMode

Added in API level 18
public static final int layoutMode

Defines the layout mode of this ViewGroup.

Must be one of the following constant values.

ConstantValueDescription
clipBounds0Use the children's clip bounds when laying out this container.
opticalBounds1Use the children's optical bounds when laying out this container.

Constant Value: 16843738 (0x010103da)

layout_above

Added in API level 1
public static final int layout_above

Positions the bottom edge of this view above the given anchor view ID. Accommodates bottom margin of this view and top margin of anchor view.

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

Constant Value: 16843140 (0x01010184)

layout_alignBaseline

Added in API level 1
public static final int layout_alignBaseline

Positions the baseline of this view on the baseline of the given anchor view ID.

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

Constant Value: 16843142 (0x01010186)

layout_alignBottom

Added in API level 1
public static final int layout_alignBottom

Makes the bottom edge of this view match the bottom edge of the given anchor view ID. Accommodates bottom margin.

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

Constant Value: 16843146 (0x0101018a)

layout_alignEnd

Added in API level 17
public static final int layout_alignEnd

Makes the end edge of this view match the end edge of the given anchor view ID. Accommodates end margin.

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

Constant Value: 16843706 (0x010103ba)

layout_alignLeft

Added in API level 1
public static final int layout_alignLeft

Makes the left edge of this view match the left edge of the given anchor view ID. Accommodates left margin.

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

Constant Value: 16843143 (0x01010187)

layout_alignParentBottom

Added in API level 1
public static final int layout_alignParentBottom

If true, makes the bottom edge of this view match the bottom edge of the parent. Accommodates bottom margin.

May be a boolean value, such as "true" or "false".

Constant Value: 16843150 (0x0101018e)

layout_alignParentEnd

Added in API level 17
public static final int layout_alignParentEnd

If true, makes the end edge of this view match the end edge of the parent. Accommodates end margin.

May be a boolean value, such as "true" or "false".

Constant Value: 16843708 (0x010103bc)

layout_alignParentLeft

Added in API level 1
public static final int layout_alignParentLeft

If true, makes the left edge of this view match the left edge of the parent. Accommodates left margin.

May be a boolean value, such as "true" or "false".

Constant Value: 16843147 (0x0101018b)

layout_alignParentRight

Added in API level 1
public static final int layout_alignParentRight

If true, makes the right edge of this view match the right edge of the parent. Accommodates right margin.

May be a boolean value, such as "true" or "false".

Constant Value: 16843149 (0x0101018d)

layout_alignParentStart

Added in API level 17
public static final int layout_alignParentStart

If true, makes the start edge of this view match the start edge of the parent. Accommodates start margin.

May be a boolean value, such as "true" or "false".

Constant Value: 16843707 (0x010103bb)

layout_alignParentTop

Added in API level 1
public static final int layout_alignParentTop

If true, makes the top edge of this view match the top edge of the parent. Accommodates top margin.

May be a boolean value, such as "true" or "false".

Constant Value: 16843148 (0x0101018c)

layout_alignRight

Added in API level 1
public static final int layout_alignRight

Makes the right edge of this view match the right edge of the given anchor view ID. Accommodates right margin.

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

Constant Value: 16843145 (0x01010189)

layout_alignStart

Added in API level 17
public static final int layout_alignStart

Makes the start edge of this view match the start edge of the given anchor view ID. Accommodates start margin.

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

Constant Value: 16843705 (0x010103b9)

layout_alignTop

Added in API level 1
public static final int layout_alignTop

Makes the top edge of this view match the top edge of the given anchor view ID. Accommodates top margin.

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

Constant Value: 16843144 (0x01010188)

layout_alignWithParentIfMissing

Added in API level 1
public static final 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.

May be a boolean value, such as "true" or "false".

Constant Value: 16843154 (0x01010192)

layout_below

Added in API level 1
public static final int layout_below

Positions the top edge of this view below the given anchor view ID. Accommodates top margin of this view and bottom margin of anchor view.

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

Constant Value: 16843141 (0x01010185)

layout_centerHorizontal

Added in API level 1
public static final int layout_centerHorizontal

If true, centers this child horizontally within its parent.

May be a boolean value, such as "true" or "false".

Constant Value: 16843152 (0x01010190)

layout_centerInParent

Added in API level 1
public static final int layout_centerInParent

If true, centers this child horizontally and vertically within its parent.

May be a boolean value, such as "true" or "false".

Constant Value: 16843151 (0x0101018f)

layout_centerVertical

Added in API level 1
public static final int layout_centerVertical

If true, centers this child vertically within its parent.

May be a boolean value, such as "true" or "false".

Constant Value: 16843153 (0x01010191)

layout_column

Added in API level 1
public static final int layout_column

The index of the column in which this child should be.

May be an integer value, such as "100".

Constant Value: 16843084 (0x0101014c)

layout_columnSpan

Added in API level 14
public static final int layout_columnSpan

The column span: the difference between the right and left boundaries delimiting the group of cells occupied by this view. The default is one. See GridLayout.Spec.

May be an integer value, such as "100".

Constant Value: 16843645 (0x0101037d)

layout_columnWeight

Added in API level 21
public static final int layout_columnWeight

The relative proportion of horizontal space that should be allocated to this view during excess space distribution.

May be a floating point value, such as "1.2".

Constant Value: 16843865 (0x01010459)

layout_gravity

Added in API level 1
public static final int layout_gravity

Standard gravity constant that a child supplies to its parent. Defines how the child view should be positioned, on both the X and Y axes, within its enclosing layout.

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

ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional option that can be set to have the left and/or right edges of the child clipped to its container's bounds. The clip will be based on the horizontal gravity: a left gravity will clip the right edge, a right gravity will clip the left edge, and neither will clip both edges.
clip_vertical80Additional option that can be set to have the top and/or bottom edges of the child clipped to its container's bounds. The clip will be based on the vertical gravity: a top gravity will clip the bottom edge, a bottom gravity will clip the top edge, and neither will clip both edges.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push object to the top of its container, not changing its size.

Constant Value: 16842931 (0x010100b3)

layout_height

Added in API level 1
public static final int layout_height

Specifies the basic height of the view. This is a required attribute for any view inside of a containing layout manager. Its value may be a dimension (such as "12dip") for a constant height or one of the special constants.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Must be one of the following constant values.

ConstantValueDescription
fill_parentffffffffThe view should be as big as its parent (minus padding). This constant is deprecated starting from API Level 8 and is replaced by match_parent.
match_parentffffffffThe view should be as big as its parent (minus padding). Introduced in API Level 8.
wrap_contentfffffffeThe view should be only big enough to enclose its content (plus padding).

Constant Value: 16842997 (0x010100f5)

layout_margin

Added in API level 1
public static final int layout_margin

Specifies extra space on the left, top, right and bottom sides of this view. If both layout_margin and any of layout_marginLeft, layout_marginRight, layout_marginStart, layout_marginEnd, layout_marginTop, and layout_marginBottom are also specified, the layout_margin value will take precedence over the edge-specific values. This space is outside this view's bounds. Margin values should be positive.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842998 (0x010100f6)

layout_marginBottom

Added in API level 1
public static final int layout_marginBottom

Specifies extra space on the bottom side of this view. This space is outside this view's bounds. Margin values should be positive.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843002 (0x010100fa)

layout_marginEnd

Added in API level 17
public static final int layout_marginEnd

Specifies extra space on the end side of this view. This space is outside this view's bounds. Margin values should be positive.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843702 (0x010103b6)

layout_marginHorizontal

Added in API level 26
public static final int layout_marginHorizontal

Specifies extra space on the left and right sides of this view. Specifying layout_marginHorizontal is equivalent to specifying layout_marginLeft and layout_marginRight. If both layout_marginHorizontal and either/both of layout_marginLeft and layout_marginRight are also specified, the layout_marginHorizontal value will take precedence over the edge-specific values. Also, layout_margin will always take precedence over any of these values, including layout_marginHorizontal. This space is outside this view's bounds. Margin values should be positive.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844091 (0x0101053b)

layout_marginLeft

Added in API level 1
public static final int layout_marginLeft

Specifies extra space on the left side of this view. This space is outside this view's bounds. Margin values should be positive.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842999 (0x010100f7)

layout_marginRight

Added in API level 1
public static final int layout_marginRight

Specifies extra space on the right side of this view. This space is outside this view's bounds. Margin values should be positive.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843001 (0x010100f9)

layout_marginStart

Added in API level 17
public static final int layout_marginStart

Specifies extra space on the start side of this view. This space is outside this view's bounds. Margin values should be positive.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843701 (0x010103b5)

layout_marginTop

Added in API level 1
public static final int layout_marginTop

Specifies extra space on the top side of this view. This space is outside this view's bounds. Margin values should be positive.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843000 (0x010100f8)

layout_marginVertical

Added in API level 26
public static final int layout_marginVertical

Specifies extra space on the top and bottom sides of this view. Specifying layout_marginVertical is equivalent to specifying layout_marginTop and layout_marginBottom with that same value. If both layout_marginVertical and either/both of layout_marginTop and layout_marginBottom are also specified, the layout_marginVertical value will take precedence over the edge-specific values. Also, layout_margin will always take precedence over any of these values, including layout_marginVertical. This space is outside this view's bounds. Margin values should be positive.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844092 (0x0101053c)

layout_row

Added in API level 14
public static final int layout_row

The row boundary delimiting the top of the group of cells occupied by this view.

May be an integer value, such as "100".

Constant Value: 16843643 (0x0101037b)

layout_rowSpan

Added in API level 14
public static final int layout_rowSpan

The row span: the difference between the top and bottom boundaries delimiting the group of cells occupied by this view. The default is one. See GridLayout.Spec.

May be an integer value, such as "100".

Constant Value: 16843644 (0x0101037c)

layout_rowWeight

Added in API level 21
public static final int layout_rowWeight

The relative proportion of vertical space that should be allocated to this view during excess space distribution.

May be a floating point value, such as "1.2".

Constant Value: 16843864 (0x01010458)

layout_scale

Added in API level 1
public static final int layout_scale

May be a floating point value, such as "1.2".

Constant Value: 16843155 (0x01010193)

layout_span

Added in API level 1
public static final int layout_span

Defines how many columns this child should span. Must be >= 1.

May be an integer value, such as "100".

Constant Value: 16843085 (0x0101014d)

layout_toEndOf

Added in API level 17
public static final int layout_toEndOf

Positions the start edge of this view to the end of the given anchor view ID. Accommodates start margin of this view and end margin of anchor view.

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

Constant Value: 16843704 (0x010103b8)

layout_toLeftOf

Added in API level 1
public static final int layout_toLeftOf

Positions the right edge of this view to the left of the given anchor view ID. Accommodates right margin of this view and left margin of anchor view.

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

Constant Value: 16843138 (0x01010182)

layout_toRightOf

Added in API level 1
public static final int layout_toRightOf

Positions the left edge of this view to the right of the given anchor view ID. Accommodates left margin of this view and right margin of anchor view.

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

Constant Value: 16843139 (0x01010183)

layout_toStartOf

Added in API level 17
public static final int layout_toStartOf

Positions the end edge of this view to the start of the given anchor view ID. Accommodates end margin of this view and start margin of anchor view.

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

Constant Value: 16843703 (0x010103b7)

layout_weight

Added in API level 1
public static final int layout_weight

Indicates how much of the extra space in the LinearLayout is allocated to the view associated with these LayoutParams. Specify 0 if the view should not be stretched. Otherwise the extra pixels will be pro-rated among all views whose weight is greater than 0.

May be a floating point value, such as "1.2".

Constant Value: 16843137 (0x01010181)

layout_width

Added in API level 1
public static final int layout_width

Specifies the basic width of the view. This is a required attribute for any view inside of a containing layout manager. Its value may be a dimension (such as "12dip") for a constant width or one of the special constants.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Must be one of the following constant values.

ConstantValueDescription
fill_parentffffffffThe view should be as big as its parent (minus padding). This constant is deprecated starting from API Level 8 and is replaced by match_parent.
match_parentffffffffThe view should be as big as its parent (minus padding). Introduced in API Level 8.
wrap_contentfffffffeThe view should be only big enough to enclose its content (plus padding).

Constant Value: 16842996 (0x010100f4)

layout_x

Added in API level 1
public static final int layout_x

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843135 (0x0101017f)

layout_y

Added in API level 1
public static final int layout_y

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843136 (0x01010180)

left

Added in API level 1
public static final int left

Amount of left padding inside the gradient shape.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843181 (0x010101ad)

letterSpacing

Added in API level 21
public static final int letterSpacing

Text letter-spacing.

May be a floating point value, such as "1.2".

Constant Value: 16843958 (0x010104b6)

level

Added in API level 24
public static final int level

Specifies the initial drawable level in the range 0 to 10000.

May be an integer value, such as "100".

Constant Value: 16844032 (0x01010500)

lineBreakStyle

Added in API level 33
public static final int lineBreakStyle

Specifies the line-break strategies for text wrapping.

Must be one of the following constant values.

ConstantValueDescription
loose1The least restrictive line-break rules are used for line breaking.
none0No line-break rules are used for line breaking.
normal2The most common line-break rules are used for line breaking.
strict3The most strict line-break rules are used for line breaking.

Constant Value: 16844398 (0x0101066e)

lineBreakWordStyle

Added in API level 33
public static final int lineBreakWordStyle

Specifies the line-break word strategies for text wrapping.

Must be one of the following constant values.

ConstantValueDescription
none0No line-break word style is used for line breaking.
phrase1Line breaking is based on phrases, which results in text wrapping only on meaningful words.

Constant Value: 16844399 (0x0101066f)

lineHeight

Added in API level 28
public static final int lineHeight

Explicit height between lines of text. If set, this will override the values set for lineSpacingExtra and lineSpacingMultiplier.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844159 (0x0101057f)

lineSpacingExtra

Added in API level 1
public static final int lineSpacingExtra

Extra spacing between lines of text. The value will not be applied for the last line of text.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843287 (0x01010217)

lineSpacingMultiplier

Added in API level 1
public static final int lineSpacingMultiplier

Extra spacing between lines of text, as a multiplier. The value will not be applied for the last line of text.

May be a floating point value, such as "1.2".

Constant Value: 16843288 (0x01010218)

lines

Added in API level 1
public static final int lines

Makes the TextView be exactly this many lines tall.

May be an integer value, such as "100".

Constant Value: 16843092 (0x01010154)

linksClickable

Added in API level 1
public static final 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.

May be a boolean value, such as "true" or "false".

Constant Value: 16842929 (0x010100b1)

listChoiceBackgroundIndicator

Added in API level 11
public static final int listChoiceBackgroundIndicator

Drawable used as a background for selected list items.

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

Constant Value: 16843504 (0x010102f0)

listChoiceIndicatorMultiple

Added in API level 1
public static final int listChoiceIndicatorMultiple

Drawable to use for multiple choice indicators.

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

Constant Value: 16843290 (0x0101021a)

listChoiceIndicatorSingle

Added in API level 1
public static final int listChoiceIndicatorSingle

Drawable to use for single choice indicators.

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

Constant Value: 16843289 (0x01010219)

listDivider

Added in API level 1
public static final int listDivider

The drawable for the list divider.

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

Constant Value: 16843284 (0x01010214)

listDividerAlertDialog

Added in API level 11
public static final int listDividerAlertDialog

The list divider used in alert dialogs.

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

Constant Value: 16843525 (0x01010305)

listMenuViewStyle

Added in API level 24
public static final int listMenuViewStyle

Default menu-style ListView style.

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

Constant Value: 16844018 (0x010104f2)

listPopupWindowStyle

Added in API level 11
public static final int listPopupWindowStyle

Default ListPopupWindow style.

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

Constant Value: 16843519 (0x010102ff)

listPreferredItemHeight

Added in API level 1
public static final int listPreferredItemHeight

The preferred list item height.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842829 (0x0101004d)

listPreferredItemHeightLarge

Added in API level 14
public static final int listPreferredItemHeightLarge

A larger, more robust list item height.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843654 (0x01010386)

listPreferredItemHeightSmall

Added in API level 14
public static final int listPreferredItemHeightSmall

A smaller, sleeker list item height.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843655 (0x01010387)

listPreferredItemPaddingEnd

Added in API level 17
public static final int listPreferredItemPaddingEnd

The preferred padding along the end edge of list items.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843710 (0x010103be)

listPreferredItemPaddingLeft

Added in API level 14
public static final int listPreferredItemPaddingLeft

The preferred padding along the left edge of list items.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843683 (0x010103a3)

listPreferredItemPaddingRight

Added in API level 14
public static final int listPreferredItemPaddingRight

The preferred padding along the right edge of list items.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843684 (0x010103a4)

listPreferredItemPaddingStart

Added in API level 17
public static final int listPreferredItemPaddingStart

The preferred padding along the start edge of list items.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843709 (0x010103bd)

listSelector

Added in API level 1
public static final int listSelector

Drawable used to indicate the currently selected item in the list.

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

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

Constant Value: 16843003 (0x010100fb)

listSeparatorTextViewStyle

Added in API level 1
public static final int listSeparatorTextViewStyle

TextView style for list separators.

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

Constant Value: 16843272 (0x01010208)

listViewStyle

Added in API level 1
public static final int listViewStyle

Default ListView style.

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

Constant Value: 16842868 (0x01010074)

listViewWhiteStyle

Added in API level 1
public static final int listViewWhiteStyle

ListView with white background.

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

Constant Value: 16842869 (0x01010075)

localeConfig

Added in API level 33
public static final int localeConfig

An XML resource with the application's LocaleConfig

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

Constant Value: 16844379 (0x0101065b)

lockTaskMode

Added in API level 23
public static final int lockTaskMode

This value indicates how tasks rooted at this activity will behave in lockTask mode. While in lockTask mode the system will not launch non-permitted tasks until lockTask mode is disabled.

While in lockTask mode with multiple permitted tasks running, each launched task is permitted to finish, transitioning to the previous locked task, until there is only one task remaining. At that point the last task running is not permitted to finish, unless it uses the value always.

Must be one of the following constant values.

ConstantValueDescription
always2Tasks rooted at this activity will always launch into lockTask mode. If the system is already in lockTask mode when this task is launched then the new task will be launched on top of the current task. Tasks launched in this mode are capable of exiting lockTask mode using Activity.finish().

Note: This mode is only available to system and privileged applications. Non-privileged apps with this value will be treated as normal.

if_whitelisted3If the DevicePolicyManager (DPM) authorizes this package (DevicePolicyManager.setLockTaskPackages(ComponentName, String)) then this mode is identical to always, except that the activity needs to call Activity.stopLockTask() before being able to finish if it is the last locked task. If the DPM does not authorize this package then this mode is identical to normal.
never1Tasks will not launch into lockTask mode and cannot be placed there using Activity.startLockTask() or be pinned from the Overview screen. If the system is already in lockTask mode when a new task rooted at this activity is launched that task will not be started.

Note: This mode is only available to system and privileged applications. Non-privileged apps with this value will be treated as normal.

normal0This is the default value. Tasks will not launch into lockTask mode but can be placed there by calling Activity.startLockTask(). If a task with this mode has been allowlisted using DevicePolicyManager.setLockTaskPackages(ComponentName, String) then calling Activity.startLockTask() will enter lockTask mode immediately, otherwise the user will be presented with a dialog to approve entering pinned mode.

If the system is already in lockTask mode when a new task rooted at this activity is launched that task will or will not start depending on whether the package of this activity has been allowlisted.

Tasks rooted at this activity can only exit lockTask mode using Activity.stopLockTask().

Constant Value: 16844013 (0x010104ed)

Added in API level 11
public static final int logo

A Drawable resource providing an extended graphical logo for its associated item. Use with the application tag (to supply a default logo for all application components), or with the activity, receiver, service, or instrumentation tag (to supply a specific logo for that component). It may also be used with the intent-filter tag to supply a logo to show to the user when an activity is being selected based on a particular Intent.

The given logo will be used to display to the user a graphical representation of its associated component; for example as the header in the Action Bar. The primary differences between an icon and a logo are that logos are often wider and more detailed, and are used without an accompanying text caption. This must be a reference to a Drawable resource containing the image definition.

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

Constant Value: 16843454 (0x010102be)

logoDescription

Added in API level 23
public static final int logoDescription

A content description string to describe the appearance of the associated logo image.

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

Constant Value: 16844009 (0x010104e9)

longClickable

Added in API level 1
public static final int longClickable

Defines whether this view reacts to long click events.

May be a boolean value, such as "true" or "false".

Constant Value: 16842982 (0x010100e6)

loopViews

Added in API level 11
public static final int loopViews

Defines whether the animator loops to the first view once it has reached the end of the list.

May be a boolean value, such as "true" or "false".

Constant Value: 16843527 (0x01010307)

manageSpaceActivity

Added in API level 1
public static final int manageSpaceActivity

Name of the activity to be launched to manage application's space on device. The specified activity gets automatically launched when the application's space needs to be managed and is usually invoked through user actions. Applications can thus provide their own custom behavior for managing space for various scenarios like out of memory conditions. This is an optional attribute and applications can choose not to specify a default activity to manage space.

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

Constant Value: 16842756 (0x01010004)

mapViewStyle

Added in API level 1
public static final int mapViewStyle

Default MapView style.

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

Constant Value: 16842890 (0x0101008a)

marqueeRepeatLimit

Added in API level 2
public static final int marqueeRepeatLimit

The number of times to repeat the marquee animation. Only applied if the TextView has marquee enabled.

May be an integer value, such as "100".

Must be one of the following constant values.

ConstantValueDescription
marquee_foreverffffffffIndicates that marquee should repeat indefinitely.

Constant Value: 16843293 (0x0101021d)

matchOrder

Added in API level 21
public static final int matchOrder

The match order to use for the transition. This is a comma-separated list of values, containing one or more of the following: id, itemId, name, instance. These correspond to Transition.MATCH_ID, Transition.MATCH_ITEM_ID, Transition.MATCH_NAME, and Transition.MATCH_INSTANCE, respectively. This corresponds to Transition.setMatchOrder(int).

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

Constant Value: 16843855 (0x0101044f)

max

Added in API level 1
public static final int max

Defines the maximum value.

May be an integer value, such as "100".

Constant Value: 16843062 (0x01010136)

maxAspectRatio

Added in API level 26
public static final int maxAspectRatio

This value indicates the maximum aspect ratio the activity supports. If the app runs on a device with a wider aspect ratio, the system automatically letterboxes the app, leaving portions of the screen unused so the app can run at its specified maximum aspect ratio.

Maximum aspect ratio, expressed as (longer dimension / shorter dimension) in decimal form. For example, if the maximum aspect ratio is 7:3, set value to 2.33.

Value needs to be greater or equal to 1.0, otherwise it is ignored.

May be a floating point value, such as "1.2".

Constant Value: 16844128 (0x01010560)

maxButtonHeight

Added in API level 24
public static final int maxButtonHeight

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844029 (0x010104fd)

maxDate

Added in API level 11
public static final int maxDate

The maximal date shown by this calendar view in mm/dd/yyyy format.

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

Constant Value: 16843584 (0x01010340)

maxEms

Added in API level 1
public static final int maxEms

Makes the TextView be at most this many ems wide.

May be an integer value, such as "100".

Constant Value: 16843095 (0x01010157)

maxHeight

Added in API level 1
public static final int maxHeight

An optional argument to supply a maximum height for this view. See {see android.widget.ImageView#setMaxHeight} for details.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843040 (0x01010120)

maxItemsPerRow

Added in API level 1
public static final int maxItemsPerRow

Defines the maximum number of items per row.

May be an integer value, such as "100".

Constant Value: 16843060 (0x01010134)

maxLength

Added in API level 1
public static final int maxLength

Set an input filter to constrain the text length to the specified number.

May be an integer value, such as "100".

Constant Value: 16843104 (0x01010160)

maxLevel

Added in API level 1
public static final int maxLevel

The maximum level allowed for this item.

May be an integer value, such as "100".

Constant Value: 16843186 (0x010101b2)

maxLines

Added in API level 1
public static final int maxLines

Makes the TextView be at most this many lines tall. When used on an editable text, the inputType attribute's value must be combined with the textMultiLine flag for the maxLines attribute to apply.

May be an integer value, such as "100".

Constant Value: 16843091 (0x01010153)

maxLongVersionCode

Added in API level 28
public static final int maxLongVersionCode

The max version code of the package for which compatibility mode is requested. This corresponds to the long value returned by PackageInfo.getLongVersionCode() for the target package.

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

Constant Value: 16844163 (0x01010583)

maxRecents

Added in API level 21
public static final int maxRecents

The maximum number of entries of tasks rooted at this activity in the recent task list. When this number of entries is reached the least recently used instance of this activity will be removed from recents. The value will be clamped between 1 and 100 inclusive. The default value for this if it is not specified is 15.

May be an integer value, such as "100".

Constant Value: 16843846 (0x01010446)

maxResizeHeight

Added in API level 31
public static final int maxResizeHeight

Maximum height that the AppWidget can be resized to.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844339 (0x01010633)

maxResizeWidth

Added in API level 31
public static final int maxResizeWidth

Maximum width that the AppWidget can be resized to.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844338 (0x01010632)

maxRows

Added in API level 1
public static final int maxRows

Defines the maximum number of rows displayed.

May be an integer value, such as "100".

Constant Value: 16843059 (0x01010133)

maxSdkVersion

Added in API level 4
public static final int maxSdkVersion

Optional: specify the maximum version of the Android OS for which the application wishes to request the permission. When running on a version of Android higher than the number given here, the permission will not be requested.

May be an integer value, such as "100".

Constant Value: 16843377 (0x01010271)

maxWidth

Added in API level 1
public static final int maxWidth

An optional argument to supply a maximum width for this view. See {see android.widget.ImageView#setMaxWidth} for details.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843039 (0x0101011f)

maximumAngle

Added in API level 21
public static final int maximumAngle

The maximum arc angle in degrees between the start and end points.

May be a floating point value, such as "1.2".

Constant Value: 16843903 (0x0101047f)

measureAllChildren

Added in API level 1
public static final int measureAllChildren

Determines whether to measure all children or just those in the VISIBLE or INVISIBLE state when measuring. Defaults to false.

May be a boolean value, such as "true" or "false".

Constant Value: 16843018 (0x0101010a)

measureWithLargestChild

Added in API level 11
public static final int measureWithLargestChild

When set to true, all children with a weight will be considered having the minimum size of the largest child. If false, all children are measured normally.

May be a boolean value, such as "true" or "false".

Constant Value: 16843476 (0x010102d4)

mediaRouteButtonStyle

Added in API level 16
public static final int mediaRouteButtonStyle

Default style for the MediaRouteButton widget.

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

Constant Value: 16843693 (0x010103ad)

mediaRouteTypes

Added in API level 16
public static final int mediaRouteTypes

The types of media routes the button and its resulting chooser will filter by.

May be an integer value, such as "100".

Must be one of the following constant values.

ConstantValueDescription
liveAudio1Allow selection of live audio routes.
user800000Allow selection of user (app-specified) routes.

Constant Value: 16843694 (0x010103ae)

memtagMode

Added in API level 31
public static final int memtagMode

Enable hardware memory tagging (ARM MTE) in this process. When enabled, heap memory bugs like use-after-free and buffer overflow are detected and result in an immediate ("sync" mode) or delayed ("async" mode) crash instead of a silent memory corruption. Sync mode, while slower, provides enhanced bug reports including stack traces at the time of allocation and deallocation of memory, similar to AddressSanitizer. See the ARM announcement for more details.

This attribute can be applied to a process tag, or to an application tag (to supply a default setting for all application components).

Must be one of the following constant values.

ConstantValueDescription
async1
defaultffffffff
off0
sync2

Constant Value: 16844324 (0x01010624)

Added in API level 1
public static final int menuCategory

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

Must be one of the following constant values.

ConstantValueDescription
alternative40000Items are alternative actions.
container10000Items are part of a container.
secondary30000Items are user-supplied secondary (infrequently used).
system20000Items are provided by the system.

Constant Value: 16843230 (0x010101de)

mimeGroup

Added in API level 30
public static final int mimeGroup

Specify a group of MIME types that are handled. MIME types can be added and removed to a package's MIME group via the PackageManager.

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

Constant Value: 16844309 (0x01010615)

mimeType

Added in API level 1
public static final int mimeType

Specify a MIME type that is handled, as per IntentFilter.addDataType().

Note: MIME type matching in the Android framework is case-sensitive, unlike formal RFC MIME types. As a result, MIME types here should always use lower case letters.

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

Constant Value: 16842790 (0x01010026)

min

Added in API level 26
public static final int min

Defines the minimum value.

May be an integer value, such as "100".

Constant Value: 16844089 (0x01010539)

minAspectRatio

Added in API level 29
public static final int minAspectRatio

This value indicates the minimum aspect ratio the activity supports. If the app runs on a device with a narrower aspect ratio, the system automatically letterboxes the app, leaving portions of the screen unused so the app can run at its specified minimum aspect ratio.

Minimum aspect ratio, expressed as (longer dimension / shorter dimension) in decimal form. For example, if the minimum aspect ratio is 4:3, set value to 1.33.

Value needs to be greater or equal to 1.0, otherwise it is ignored.

May be a floating point value, such as "1.2".

Constant Value: 16844187 (0x0101059b)

minDate

Added in API level 11
public static final int minDate

The minimal date shown by this calendar view in mm/dd/yyyy format.

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

Constant Value: 16843583 (0x0101033f)

minEms

Added in API level 1
public static final int minEms

Makes the TextView be at least this many ems wide.

May be an integer value, such as "100".

Constant Value: 16843098 (0x0101015a)

minHeight

Added in API level 1
public static final int minHeight

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843072 (0x01010140)

minLevel

Added in API level 1
public static final int minLevel

The minimum level allowed for this item.

May be an integer value, such as "100".

Constant Value: 16843185 (0x010101b1)

minLines

Added in API level 1
public static final int minLines

Makes the TextView be at least this many lines tall. When used on an editable text, the inputType attribute's value must be combined with the textMultiLine flag for the minLines attribute to apply.

May be an integer value, such as "100".

Constant Value: 16843094 (0x01010156)

minResizeHeight

Added in API level 14
public static final int minResizeHeight

Minimum height that the AppWidget can be resized to.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843670 (0x01010396)

minResizeWidth

Added in API level 14
public static final int minResizeWidth

Minimum width that the AppWidget can be resized to.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843669 (0x01010395)

minSdkVersion

Added in API level 1
public static final int minSdkVersion

This is the minimum SDK version number that the application requires. This number is an abstract integer, from the list in Build.VERSION_CODES If not supplied, the application will work on any SDK. This may also be string (such as "Donut") if the application was built against a development branch, in which case it will only work against the development builds.

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

Constant Value: 16843276 (0x0101020c)

minWidth

Added in API level 1
public static final int minWidth

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843071 (0x0101013f)

minimumHorizontalAngle

Added in API level 21
public static final int minimumHorizontalAngle

The minimum arc angle in degrees between the start and end points when they are close to horizontal.

May be a floating point value, such as "1.2".

Constant Value: 16843901 (0x0101047d)

minimumVerticalAngle

Added in API level 21
public static final int minimumVerticalAngle

The minimum arc angle in degrees between the start and end points when they are close to vertical.

May be a floating point value, such as "1.2".

Constant Value: 16843902 (0x0101047e)

mipMap

Added in API level 18
public static final int mipMap

Enables or disables the mipmap hint. See Bitmap.setHasMipMap(boolean) for more information. Default value is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16843725 (0x010103cd)

mirrorForRtl

Added in API level 18
public static final int mirrorForRtl

Defines if the associated drawables need to be mirrored when in RTL mode. Default is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16843726 (0x010103ce)

mode

Added in API level 1
public static final int mode

Must be one of the following constant values.

ConstantValueDescription
collapsing2When selected show both lines, otherwise show only the first line. This is the default mode.
oneLine1Always show only the first line.
twoLine3Always show both lines.

Constant Value: 16843134 (0x0101017e)

moreIcon

Added in API level 1
public static final int moreIcon

'More' icon.

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

Constant Value: 16843061 (0x01010135)

multiArch

Added in API level 21
public static final int multiArch

Declare that code from this application will need to be loaded into other applications' processes. On devices that support multiple instruction sets, this implies the code might be loaded into a process that's using any of the devices supported instruction sets.

The system might treat such applications specially, for eg., by extracting the application's native libraries for all supported instruction sets or by compiling the application's dex code for all supported instruction sets.

May be a boolean value, such as "true" or "false".

Constant Value: 16843918 (0x0101048e)

multiprocess

Added in API level 1
public static final int multiprocess

Specify whether a component is allowed to have multiple instances of itself running in different processes. Use with the activity and provider tags.

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.

May be a boolean value, such as "true" or "false".

Constant Value: 16842771 (0x01010013)

name

Added in API level 1
public static final int name

A unique name for the given item. This must use a Java-style naming convention to ensure the name is unique, for example "com.mycompany.MyName".

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

Constant Value: 16842755 (0x01010003)

nativeHeapZeroInitialized

Added in API level 31
public static final int nativeHeapZeroInitialized

If true enables automatic zero initialization of all native heap allocations.

May be a boolean value, such as "true" or "false".

Constant Value: 16844325 (0x01010625)

Added in API level 21
Deprecated in API level 35
public static final int navigationBarColor

This constant was deprecated in API level 35.
Draw proper background behind WindowInsets.Type.navigationBars() or WindowInsets.Type.tappableElement() instead.

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

The color for the navigation bar. If the color is not opaque, consider setting View.SYSTEM_UI_FLAG_LAYOUT_STABLE and View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION. For this to take effect, the window must be drawing the system bar backgrounds with windowDrawsSystemBarBackgrounds and the navigation bar must not have been requested to be translucent with windowTranslucentNavigation. Corresponds to Window.setNavigationBarColor(int).

If the color is transparent and the window enforces the navigation bar contrast, the system will determine whether a scrim is necessary and draw one on behalf of the app to ensure that the navigation bar has enough contrast with the contents of this app, and set an appropriate effective bar background accordingly. See: enforceNavigationBarContrast

If the window belongs to an app targeting VANILLA_ICE_CREAM or above, this attribute is ignored.

Constant Value: 16843858 (0x01010452)

Added in API level 27
Deprecated in API level 35
public static final int navigationBarDividerColor

This constant was deprecated in API level 35.
Draw proper background behind WindowInsets.Type.navigationBars() or WindowInsets.Type.tappableElement() instead.

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

Shows a thin line of the specified color between the navigation bar and the app content.

For this to take effect, the window must be drawing the system bar backgrounds with windowDrawsSystemBarBackgrounds and the navigation bar must not have been requested to be translucent with windowTranslucentNavigation. Corresponds to Window.setNavigationBarDividerColor(int).

If the window belongs to an app targeting VANILLA_ICE_CREAM or above, this attribute is ignored.

Constant Value: 16844141 (0x0101056d)

Added in API level 21
public static final int navigationContentDescription

Text to set as the content description for the navigation button located at the start of the toolbar.

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

Constant Value: 16843969 (0x010104c1)

Added in API level 21
public static final int navigationIcon

Icon drawable to use for the navigation button located at the start of the toolbar.

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

Constant Value: 16843968 (0x010104c0)

Added in API level 11
public static final int navigationMode

The type of navigation to use.

Must be one of the following constant values.

ConstantValueDescription
listMode1The action bar will use a selection list for navigation.
normal0Normal static title text.
tabMode2The action bar will use a series of horizontal tabs for navigation.

Constant Value: 16843471 (0x010102cf)

negativeButtonText

Added in API level 1
public static final int negativeButtonText

The negative button text for the dialog. Set to @null to hide the negative button.

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

Constant Value: 16843254 (0x010101f6)

nestedScrollingEnabled

Added in API level 21
public static final int nestedScrollingEnabled

Specifies that this view should permit nested scrolling within a compatible ancestor view.

May be a boolean value, such as "true" or "false".

Constant Value: 16843830 (0x01010436)

networkSecurityConfig

Added in API level 24
public static final int networkSecurityConfig

An XML resource with the application's Network Security Config.

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

Constant Value: 16844071 (0x01010527)

nextClusterForward

Added in API level 26
public static final int nextClusterForward

Defines the next keyboard navigation cluster. 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.

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

Constant Value: 16844098 (0x01010542)

nextFocusDown

Added in API level 1
public static final 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.

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

Constant Value: 16842980 (0x010100e4)

nextFocusForward

Added in API level 11
public static final int nextFocusForward

Defines the next view to give focus to when the next focus is View.FOCUS_FORWARD 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.

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

Constant Value: 16843580 (0x0101033c)

nextFocusLeft

Added in API level 1
public static final int nextFocusLeft

Defines the next view to give focus to when the next focus is 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.

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

Constant Value: 16842977 (0x010100e1)

nextFocusRight

Added in API level 1
public static final 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.

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

Constant Value: 16842978 (0x010100e2)

nextFocusUp

Added in API level 1
public static final 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.

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

Constant Value: 16842979 (0x010100e3)

noHistory

Added in API level 3
public static final int noHistory

Specify whether an activity should be kept in its history stack. If this attribute is set, then as soon as the user navigates away from the activity it will be finished and they will no longer be able to return to it.

May be a boolean value, such as "true" or "false".

Constant Value: 16843309 (0x0101022d)

nonInteractiveUiTimeout

Added in API level 29
public static final int nonInteractiveUiTimeout

A recommended timeout in milliseconds used in android.view.accessibility.AccessibilityManager.getRecommendedTimeoutMillis(int, int) to return a suitable value for UIs that do not include interactive controls. This setting can be changed at runtime by calling android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo).

May be an integer value, such as "100".

Constant Value: 16844175 (0x0101058f)

normalScreens

Added in API level 4
public static final int normalScreens

Indicates whether an application supports the normal screen form-factors. Traditionally this is an HVGA normal density screen, but WQVGA low density and WVGA high density are also considered to be normal. This attribute is true by default, and applications currently should leave it that way.

May be a boolean value, such as "true" or "false".

Constant Value: 16843397 (0x01010285)

notificationTimeout

Added in API level 14
public static final int notificationTimeout

The minimal period in milliseconds between two accessibility events of the same type are sent to this service. This setting can be changed at runtime by calling android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo).

May be an integer value, such as "100".

Constant Value: 16843651 (0x01010383)

numColumns

Added in API level 1
public static final int numColumns

Defines how many columns to show.

May be an integer value, such as "100".

Must be one of the following constant values.

ConstantValueDescription
auto_fitffffffffDisplay as many columns as possible to fill the available space.

Constant Value: 16843032 (0x01010118)

numStars

Added in API level 1
public static final int numStars

The number of stars (or rating items) to show.

May be an integer value, such as "100".

Constant Value: 16843076 (0x01010144)

numberPickerStyle

Added in API level 24
public static final int numberPickerStyle

NumberPicker style.

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

Constant Value: 16844068 (0x01010524)

numbersBackgroundColor

Added in API level 21
public static final int numbersBackgroundColor

The background color for the hours/minutes numbers.

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

Constant Value: 16843938 (0x010104a2)

numbersInnerTextColor

Added in API level 23
public static final int numbersInnerTextColor

The color for the inner hours numbers used in 24-hour mode. This should be a color state list where the activated state will be used when the number is active.

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

Constant Value: 16844001 (0x010104e1)

numbersSelectorColor

Added in API level 21
public static final int numbersSelectorColor

The color for the hours/minutes selector.

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

Constant Value: 16843939 (0x010104a3)

numbersTextColor

Added in API level 21
public static final int numbersTextColor

The color for the hours/minutes numbers. This should be a color state list where the activated state will be used when the number is active.

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

Constant Value: 16843937 (0x010104a1)

numeric

Added in API level 1
Deprecated in API level 15
public static final int numeric

This constant was deprecated in API level 15.
Use inputType instead.

If set, specifies that this TextView has a numeric input method. The default is false.

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

ConstantValueDescription
decimal5Input is numeric, with decimals allowed.
integer1Input is numeric.
signed3Input is numeric, with sign allowed.

Constant Value: 16843109 (0x01010165)

numericModifiers

Added in API level 26
public static final int numericModifiers

The numeric modifier key. This is the modifier when using a numeric (for example, 12-key) keyboard. The values should be kept in sync with KeyEvent

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

ConstantValueDescription
ALT2
CTRL1000
FUNCTION8
META10000
SHIFT1
SYM4

Constant Value: 16844111 (0x0101054f)

numericShortcut

Added in API level 1
public static final int numericShortcut

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

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

Constant Value: 16843236 (0x010101e4)

offset

Added in API level 24
public static final int offset

The offset (or ratio) of this current color item inside the gradient. The value is only meaningful when it is between 0 and 1.

May be a floating point value, such as "1.2".

Constant Value: 16844052 (0x01010514)

onClick

Added in API level 4
Deprecated in API level 31
public static final int onClick

This constant was deprecated in API level 31.
View actually traverses the Context hierarchy looking for the relevant method, which is fragile (an intermediate ContextWrapper adding a same-named method would change behavior) and restricts bytecode optimizers such as R8. Instead, use View.setOnClickListener.

Name of the method in this View's context to invoke when the view is clicked. This name must correspond to a public method that takes exactly one parameter of type View. For instance, if you specify android:onClick="sayHello", you must declare a public void sayHello(View v) method of your context (typically, your Activity).

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

Constant Value: 16843375 (0x0101026f)

oneshot

Added in API level 1
public static final int oneshot

If true, the animation will only run a single time and then stop. If false (the default), it will continually run, restarting at the first frame after the last has finished.

May be a boolean value, such as "true" or "false".

Constant Value: 16843159 (0x01010197)

opacity

Added in API level 11
public static final int opacity

Indicates the opacity of the layer. This can be useful to allow the system to enable drawing optimizations. The default value is translucent.

Must be one of the following constant values.

ConstantValueDescription
opaqueffffffffIndicates that the layer is opaque and contains no transparent nor translucent pixels.
translucentfffffffdThe layer has translucent pixels.
transparentfffffffeThe layer is completely transparent (no pixel will be drawn).

Constant Value: 16843550 (0x0101031e)

opticalInsetBottom

Added in API level 29
public static final int opticalInsetBottom

Bottom optical inset.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844171 (0x0101058b)

opticalInsetLeft

Added in API level 29
public static final int opticalInsetLeft

Left optical inset.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844168 (0x01010588)

opticalInsetRight

Added in API level 29
public static final int opticalInsetRight

Right optical inset.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844170 (0x0101058a)

opticalInsetTop

Added in API level 29
public static final int opticalInsetTop

Top optical inset.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844169 (0x01010589)

order

Added in API level 1
public static final int order

The order for the Preference (lower values are to be ordered first). If this is not specified, the default ordering will be alphabetic.

May be an integer value, such as "100".

Constant Value: 16843242 (0x010101ea)

orderInCategory

Added in API level 1
public static final int orderInCategory

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

May be an integer value, such as "100".

Constant Value: 16843231 (0x010101df)

ordering

Added in API level 11
public static final int ordering

Name of the property being animated.

Must be one of the following constant values.

ConstantValueDescription
sequentially1child animations should be played sequentially, in the same order as the xml.
together0child animations should be played together.

Constant Value: 16843490 (0x010102e2)

orderingFromXml

Added in API level 1
public static final int orderingFromXml

Whether to order the Preference under this group as they appear in the XML file. If this is false, the ordering will follow the Preference order attribute and default to alphabetic for those without the order attribute.

May be a boolean value, such as "true" or "false".

Constant Value: 16843239 (0x010101e7)

orientation

Added in API level 1
public static final int orientation

Standard orientation constant.

Must be one of the following constant values.

ConstantValueDescription
horizontal0Defines an horizontal widget.
vertical1Defines a vertical widget.

Constant Value: 16842948 (0x010100c4)

outAnimation

Added in API level 1
public static final int outAnimation

Identifier for the animation to use when a view is hidden.

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

Constant Value: 16843128 (0x01010178)

outlineAmbientShadowColor

Added in API level 28
public static final int outlineAmbientShadowColor

Sets the color of the ambient shadow that is drawn when the view has a positive Z or elevation value.

By default the shadow color is black. Generally, this color will be opaque so the intensity of the shadow is consistent between different views with different colors.

The opacity of the final ambient shadow is a function of the shadow caster height, the alpha channel of the outlineAmbientShadowColor (typically opaque), and the ambientShadowAlpha theme attribute.

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

Constant Value: 16844162 (0x01010582)

outlineProvider

Added in API level 21
public static final int outlineProvider

ViewOutlineProvider used to determine the View's Outline.

Must be one of the following constant values.

ConstantValueDescription
background0Default, background drawable-driven outline.
bounds2Generates an opaque outline for the bounds of the view.
none1No outline provider.
paddedBounds3Generates an opaque outline for the padded bounds of the view.

Constant Value: 16843960 (0x010104b8)

outlineSpotShadowColor

Added in API level 28
public static final int outlineSpotShadowColor

Sets the color of the spot shadow that is drawn when the view has a positive Z or elevation value.

By default the shadow color is black. Generally, this color will be opaque so the intensity of the shadow is consistent between different views with different colors.

The opacity of the final spot shadow is a function of the shadow caster height, the alpha channel of the outlineSpotShadowColor (typically opaque), and the spotShadowAlpha theme attribute.

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

Constant Value: 16844161 (0x01010581)

overScrollFooter

Added in API level 9
public static final int overScrollFooter

Drawable to draw below list content.

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

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

Constant Value: 16843459 (0x010102c3)

overScrollHeader

Added in API level 9
public static final int overScrollHeader

Drawable to draw above list content.

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

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

Constant Value: 16843458 (0x010102c2)

overScrollMode

Added in API level 9
public static final int overScrollMode

Defines over-scrolling behavior. This property is used only if the View is scrollable. Over-scrolling is the ability for the user to receive feedback when attempting to scroll beyond meaningful content.

Must be one of the following constant values.

ConstantValueDescription
always0Always show over-scroll effects, even if the content fits entirely within the available space.
ifContentScrolls1Only show over-scroll effects if the content is large enough to meaningfully scroll.
never2Never show over-scroll effects.

Constant Value: 16843457 (0x010102c1)

overlapAnchor

Added in API level 21
public static final int overlapAnchor

Whether the popup window should overlap its anchor view.

May be a boolean value, such as "true" or "false".

Constant Value: 16843874 (0x01010462)

overridesImplicitlyEnabledSubtype

Added in API level 14
public static final int overridesImplicitlyEnabledSubtype

Set true when this subtype should be selected by default if no other subtypes are selected explicitly. Note that a subtype with this parameter being true will not be shown in the subtypes list.

May be a boolean value, such as "true" or "false".

Constant Value: 16843682 (0x010103a2)

packageNames

Added in API level 14
public static final int packageNames

Comma separated package names from which this service would like to receive events (leave out for all packages). android.accessibilityservice.AccessibilityService.setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo).

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

Constant Value: 16843649 (0x01010381)

packageType

Added in API level 29
public static final int packageType

Required type of association with the package, for example "android.package.ad_service" if it provides an advertising service. This should use the standard scoped naming convention as used for other things such as package names, based on the Java naming convention.

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

Constant Value: 16844167 (0x01010587)

padding

Added in API level 1
public static final int padding

Sets the padding, in pixels, of all four edges. Padding is defined as space between the edges of the view and the view's content. This value will take precedence over any of the edge-specific values (paddingLeft, paddingTop, paddingRight, paddingBottom, paddingHorizontal and paddingVertical), but will not override paddingStart or paddingEnd, if set. A view's size will include its padding. If a 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.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842965 (0x010100d5)

paddingBottom

Added in API level 1
public static final int paddingBottom

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

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842969 (0x010100d9)

paddingEnd

Added in API level 17
public static final int paddingEnd

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

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843700 (0x010103b4)

paddingHorizontal

Added in API level 26
public static final int paddingHorizontal

Sets the padding, in pixels, of the left and right edges; see padding. This value will take precedence over paddingLeft and paddingRight, but not paddingStart or paddingEnd (if set).

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844093 (0x0101053d)

paddingLeft

Added in API level 1
public static final int paddingLeft

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

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842966 (0x010100d6)

paddingMode

Added in API level 21
public static final int paddingMode

Indicates how layer padding should affect the bounds of subsequent layers. The default padding mode value is nest.

Must be one of the following constant values.

ConstantValueDescription
nest0Nest each layer inside the padding of the previous layer.
stack1Stack each layer directly atop the previous layer.

Constant Value: 16843863 (0x01010457)

paddingRight

Added in API level 1
public static final int paddingRight

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

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842968 (0x010100d8)

paddingStart

Added in API level 17
public static final int paddingStart

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

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843699 (0x010103b3)

paddingTop

Added in API level 1
public static final int paddingTop

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

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842967 (0x010100d7)

paddingVertical

Added in API level 26
public static final int paddingVertical

Sets the padding, in pixels, of the top and bottom edges; see padding. This value will take precedence over paddingTop and paddingBottom, if set.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844094 (0x0101053e)

panelBackground

Added in API level 1
public static final int panelBackground

The background of a panel when it is inset from the left and right edges of the screen.

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

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

Constant Value: 16842846 (0x0101005e)

panelColorBackground

Added in API level 1
public static final int panelColorBackground

Color that matches (as closely as possible) the panel background.

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

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

Constant Value: 16842849 (0x01010061)

panelColorForeground

Added in API level 1
public static final int panelColorForeground

Default color of foreground panel imagery.

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

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

Constant Value: 16842848 (0x01010060)

panelFullBackground

Added in API level 1
public static final int panelFullBackground

The background of a panel when it extends to the left and right edges of the screen.

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

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

Constant Value: 16842847 (0x0101005f)

panelTextAppearance

Added in API level 1
public static final int panelTextAppearance

Default appearance of panel text.

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

Constant Value: 16842850 (0x01010062)

parentActivityName

Added in API level 16
public static final int parentActivityName

The name of the logical parent of the activity as it appears in the manifest.

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

Constant Value: 16843687 (0x010103a7)

password

Added in API level 1
Deprecated in API level 15
public static final int password

This constant was deprecated in API level 15.
Use inputType instead.

Whether the characters of the field are displayed as password dots instead of themselves.

May be a boolean value, such as "true" or "false".

Constant Value: 16843100 (0x0101015c)

passwordsActivity

Added in API level 31
public static final int passwordsActivity

Fully qualified class name of an activity that allows the user to view any passwords saved by this service.

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

Constant Value: 16844351 (0x0101063f)

path

Added in API level 1
public static final int path

Specify a URI path that must exactly match, as per PatternMatcher with PatternMatcher.PATTERN_LITERAL.

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

Constant Value: 16842794 (0x0101002a)

pathAdvancedPattern

Added in API level 31
public static final int pathAdvancedPattern

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

Constant Value: 16844320 (0x01010620)

pathData

Added in API level 21
public static final int pathData

The specification of the operations that define the path.

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

Constant Value: 16843781 (0x01010405)

pathPattern

Added in API level 1
public static final int pathPattern

Specify a URI path that matches a simple pattern, as per 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.

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

Constant Value: 16842796 (0x0101002c)

pathPrefix

Added in API level 1
public static final int pathPrefix

Specify a URI path that must be a prefix to match, as per PatternMatcher with PatternMatcher.PATTERN_PREFIX.

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

Constant Value: 16842795 (0x0101002b)

pathSuffix

Added in API level 31
public static final int pathSuffix

Specify a URI path that must be a suffix to match, as per PatternMatcher with PatternMatcher.PATTERN_SUFFIX.

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

Constant Value: 16844318 (0x0101061e)

patternPathData

Added in API level 21
public static final int patternPathData

The path string describing the pattern to use for the PathPathMotion.

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

Constant Value: 16843978 (0x010104ca)

permission

Added in API level 1
public static final int permission

Specify a permission that a client is required to have in order to use the associated object. If the client does not hold the named permission, its request will fail. See the Security and Permissions document for more information on permissions.

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

Constant Value: 16842758 (0x01010006)

permissionFlags

Added in API level 17
public static final int permissionFlags

Flags indicating more context for a permission.

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

ConstantValueDescription
costsMoney1Set to indicate that this permission allows an operation that may cost the user money. Such permissions may be highlighted when shown to the user with this additional information.
hardRestricted4This permission is restricted by the platform and it would be grantable only to apps that meet special criteria per platform policy.
immutablyRestricted10This permission is restricted immutably which means that its restriction state may be specified only on the first install of the app and will stay in this initial allowlist state until the app is uninstalled.
installerExemptIgnored20Modifier for permission restriction. This permission cannot be exempted by the installer.
removed2Additional flag from base permission type: this permission has been removed and it is no longer enforced. It shouldn't be shown in the UI. Removed permissions are kept as normal permissions for backwards compatibility as apps may be checking them before calling an API.
softRestricted8This permission is restricted by the platform and it would be grantable in its full form to apps that meet special criteria per platform policy. Otherwise, a weaker form of the permission would be granted. The weak grant depends on the permission.

What weak grant means is described in the documentation of the permissions.

Constant Value: 16843719 (0x010103c7)

permissionGroup

Added in API level 1
public static final int permissionGroup

Specified the name of a group that this permission is associated with. The group must have been defined with the permission-group tag.

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

Constant Value: 16842762 (0x0101000a)

permissionGroupFlags

Added in API level 17
public static final int permissionGroupFlags

Flags indicating more context for a permission group.

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

ConstantValueDescription
personalInfo1Set to indicate that this permission group contains permissions protecting access to some information that is considered personal to the user (such as contacts, e-mails, etc).

Constant Value: 16843717 (0x010103c5)

persistableMode

Added in API level 21
public static final int persistableMode

Define how an activity persist across reboots. Activities defined as "never" will not be persisted. Those defined as "always" will be persisted. Those defined as "taskOnly" will persist the root activity of the task only. See below for more detail as to what gets persisted.

Must be one of the following constant values.

ConstantValueDescription
persistAcrossReboots2If this activity forms the root of a task then the task and this activity will be persisted across reboots. If the activity above this activity is also tagged with the attribute "persist" then it will be persisted as well. And so on up the task stack until either an activity without the persistableMode="persistAcrossReboots" attribute or one that was launched with the flag Intent.FLAG_CLEAR_TASK_WHEN_RESET is encountered.

Activities that are declared with the persistAcrossReboots attribute will be provided with a PersistableBundle in onSavedInstanceState(), These activities may use this PeristableBundle to save their state. Then, following a reboot, that PersistableBundle will be provided back to the activity in its onCreate() method.

persistNever1If this activity forms the root of a task then that task will not be persisted across reboots
persistRootOnly0The default. If this activity forms the root of a task then that task will be persisted across reboots but only the launching intent will be used. If the task relinquishes its identity then the intent used is that of the topmost inherited identity. All activities above this activity in the task will not be persisted. In addition this activity will not be passed a PersistableBundle into which it could have stored its state.

Constant Value: 16843821 (0x0101042d)

persistent

Added in API level 1
public static final int persistent

Flag to control special persistent mode of an application. This should not normally be used by applications; it requires that the system keep your application running at all times.

May be a boolean value, such as "true" or "false".

Constant Value: 16842765 (0x0101000d)

persistentDrawingCache

Added in API level 1
public static final int persistentDrawingCache

Defines the persistence of the drawing cache. The drawing cache might be enabled by a ViewGroup for all its children in specific situations (for instance during a scrolling.) This property lets you persist the cache in memory after its initial usage. Persisting the cache consumes more memory but may prevent frequent garbage collection if the cache is created over and over again. By default the persistence is set to scrolling. Deprecated: The view drawing cache was largely made obsolete with the introduction of hardware-accelerated rendering in API 11.

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

ConstantValueDescription
all3The drawing cache is always persisted.
animation1The drawing cache is persisted after a layout animation.
none0The drawing cache is not persisted after use.
scrolling2The drawing cache is persisted after a scroll.

Constant Value: 16842990 (0x010100ee)

persistentWhenFeatureAvailable

Added in API level 26
public static final int persistentWhenFeatureAvailable

If set, the "persistent" attribute will only be honored if the feature specified here is present on the device.

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

Constant Value: 16844131 (0x01010563)

phoneNumber

Added in API level 1
Deprecated in API level 15
public static final int phoneNumber

This constant was deprecated in API level 15.
Use inputType instead.

If set, specifies that this TextView has a phone number input method. The default is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16843111 (0x01010167)

physicalKeyboardHintLanguageTag

Added in API level 34
public static final int physicalKeyboardHintLanguageTag

The BCP-47 Language Tag of the preferred physical keyboard of the subtype. If it's not specified, R.styleable.InputMethod_Subtype_languageTag will be used. See also InputMethodSubtype.getPhysicalKeyboardHintLanguageTag().

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

Constant Value: 16844411 (0x0101067b)

physicalKeyboardHintLayoutType

Added in API level 34
public static final int physicalKeyboardHintLayoutType

The layout type of the preferred physical keyboard of the subtype. It matches the layout type string in the keyboard layout definition. See also InputMethodSubtype.getPhysicalKeyboardHintLayoutType().

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

Constant Value: 16844412 (0x0101067c)

pivotX

Added in API level 1
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.

Constant Value: 16843189 (0x010101b5)

pivotY

Added in API level 1
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.

Constant Value: 16843190 (0x010101b6)

pointerIcon

Added in API level 24
public static final int pointerIcon

Must be one of the following constant values.

ConstantValueDescription
alias3f2Pointer icon of 'alias', indicating an alias of/shortcut to something is to be created.
all_scroll3f5Pointer icon of four-way arrows, indicating scrolling all direction.
arrow3e8The default icon of arrow pointer.
cell3eePointer icon for cell and grid.
context_menu3e9Pointer icon indicating context-menu will appear.
copy3f3Pointer icon of 'copy', used for drag/drop.
crosshair3efPointer icon of crosshair, indicating to spot a location.
grab3fcPointer icon of a hand sign to grab something.
grabbing3fdPointer icon of a hand sign while grabbing something.
hand3eaPointer icon of a hand with the index finger.
handwriting3fePointer icon indicating handwriting.
help3ebPointer icon indicating help.
horizontal_double_arrow3f6Pointer icon of horizontal double arrow, indicating horizontal resize.
no_drop3f4Pointer icon of 'no-drop', indicating the drop will not be accepted at the current location.
none0Null icon, pointer becomes invisible.
text3f0Pointer icon of I-beam, usually for text.
top_left_diagonal_double_arrow3f9Pointer icon of diagonal double arrow, starting from top-left to bottom-right. Indicating freeform resize.
top_right_diagonal_double_arrow3f8Pointer icon of diagonal double arrow, starting from top-right to bottom-left. Indicating freeform resize.
vertical_double_arrow3f7Pointer icon of vertical double arrow, indicating vertical resize.
vertical_text3f1Pointer icon of I-beam with 90-degree rotated, for vertical text.
wait3ecPointer icon indicating something is going on and waiting.
zoom_in3faPointer icon indicating zoom-in.
zoom_out3fbPointer icon indicating zoom-out.

Constant Value: 16844041 (0x01010509)

popupAnimationStyle

Added in API level 9
public static final int popupAnimationStyle

The animation style to use for the popup window.

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

Constant Value: 16843465 (0x010102c9)

popupBackground

Added in API level 1
public static final int popupBackground

The background to use for the popup window.

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

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

Constant Value: 16843126 (0x01010176)

popupCharacters

Added in API level 3
Deprecated in API level 29
public static final int popupCharacters

This constant was deprecated in API level 29.
Copy this definition into your own application project.

The characters to display in the popup keyboard.

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

Constant Value: 16843332 (0x01010244)

popupElevation

Added in API level 21
public static final int popupElevation

Window elevation to use for the popup window.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843916 (0x0101048c)

popupEnterTransition

Added in API level 24
public static final int popupEnterTransition

Transition used to move views into the popup window.

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

Constant Value: 16844063 (0x0101051f)

popupExitTransition

Added in API level 24
public static final int popupExitTransition

Transition used to move views out of the popup window.

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

Constant Value: 16844064 (0x01010520)

popupKeyboard

Added in API level 3
Deprecated in API level 29
public static final int popupKeyboard

This constant was deprecated in API level 29.
Copy this definition into your own application project.

The XML keyboard layout of any popup keyboard.

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

Constant Value: 16843331 (0x01010243)

popupLayout

Added in API level 3
Deprecated in API level 29
public static final int popupLayout

This constant was deprecated in API level 29.
Copy this definition into your own application project.

Layout resource for popup keyboards.

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

Constant Value: 16843323 (0x0101023b)

popupMenuStyle

Added in API level 11
public static final int popupMenuStyle

Default PopupMenu style.

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

Constant Value: 16843520 (0x01010300)

popupTheme

Added in API level 21
public static final int popupTheme

Reference to a theme that should be used to inflate popups shown by widgets in the toolbar.

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

Constant Value: 16843945 (0x010104a9)

popupWindowStyle

Added in API level 1
public static final int popupWindowStyle

Default PopupWindow style.

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

Constant Value: 16842870 (0x01010076)

port

Added in API level 1
public static final int port

Specify a URI authority port that is handled, as per IntentFilter.addDataAuthority(). If a host is supplied but not a port, any port is matched.

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

Constant Value: 16842793 (0x01010029)

positiveButtonText

Added in API level 1
public static final int positiveButtonText

The positive button text for the dialog. Set to @null to hide the positive button.

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

Constant Value: 16843253 (0x010101f5)

preferKeepClear

Added in API level 33
public static final int preferKeepClear

Sets a preference to keep the bounds of this view clear from floating windows above this view's window. This informs the system that the view is considered a vital area for the user and that ideally it should not be covered. Setting this is only appropriate for UI where the user would likely take action to uncover it.

The system will try to respect this, but when not possible will ignore it.

This is equivalent to View.setPreferKeepClear(boolean).

May be a boolean value, such as "true" or "false".

Constant Value: 16844381 (0x0101065d)

preferMinimalPostProcessing

Added in API level 30
public static final int preferMinimalPostProcessing

Indicates whether the activity wants the connected display to do minimal post processing on the produced image or video frames. This will only be requested if this activity's main window is visible on the screen.

This setting should be used when low latency has a higher priority than image enhancement processing (e.g. for games or video conferencing).

If the Display sink is connected via HDMI, the device will begin to send infoframes with Auto Low Latency Mode enabled and Game Content Type. This will switch the connected display to a minimal image processing mode (if available), which reduces latency, improving the user experience for gaming or video conferencing applications. For more information, see HDMI 2.1 specification.

If the Display sink has an internal connection or uses some other protocol than HDMI, effects may be similar but implementation-defined.

The ability to switch to a mode with minimal post proessing may be disabled by a user setting in the system settings menu. In that case, this field is ignored and the display will remain in its current mode.

See ActivityInfo.FLAG_PREFER_MINIMAL_POST_PROCESSING

May be a boolean value, such as "true" or "false".

Constant Value: 16844300 (0x0101060c)

preferenceCategoryStyle

Added in API level 1
public static final int preferenceCategoryStyle

Default style for PreferenceCategory.

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

Constant Value: 16842892 (0x0101008c)

preferenceFragmentStyle

Added in API level 24
public static final int preferenceFragmentStyle

Default style for Headers pane in PreferenceActivity.

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

Constant Value: 16844038 (0x01010506)

preferenceInformationStyle

Added in API level 1
public static final int preferenceInformationStyle

Default style for informational Preference.

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

Constant Value: 16842893 (0x0101008d)

preferenceLayoutChild

Added in API level 1
public static final int preferenceLayoutChild

The preference layout that has the child/tabbed effect.

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

Constant Value: 16842900 (0x01010094)

preferenceScreenStyle

Added in API level 1
public static final int preferenceScreenStyle

Default style for PreferenceScreen.

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

Constant Value: 16842891 (0x0101008b)

preferenceStyle

Added in API level 1
public static final int preferenceStyle

Default style for Preference.

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

Constant Value: 16842894 (0x0101008e)

presentationTheme

Added in API level 17
public static final int presentationTheme

Theme to use for presentations spawned from this theme.

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

Constant Value: 16843712 (0x010103c0)

preserveLegacyExternalStorage

Added in API level 30
public static final int preserveLegacyExternalStorage

If true this app would like to preserve the legacy storage model from a previously installed version. Note that this may not always be respected due to policy or backwards compatibility reasons.

This has no effect on the first install of an app on a device. For an updating app, setting this to true will preserve the legacy behaviour configured by the requestLegacyExternalStorage flag. If on an update, this flag is set to false then the legacy access is not preserved, such an app can only have legacy access with the requestLegacyExternalStorage flag.

The default value is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16844308 (0x01010614)

previewImage

Added in API level 11
public static final int previewImage

A preview, in a drawable resource id, of what the Dream will look like.

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

Constant Value: 16843482 (0x010102da)

previewLayout

Added in API level 31
public static final int previewLayout

The layout resource id of a preview of what the AppWidget will look like after it's configured. Unlike previewImage, previewLayout can better showcase AppWidget in different locales, system themes, display sizes & density etc. If supplied, this will take precedence over the previewImage on supported widget hosts. Otherwise, previewImage will be used.

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

Constant Value: 16844327 (0x01010627)

primaryContentAlpha

Added in API level 26
public static final int primaryContentAlpha

The alpha applied to the foreground color to create the primary text color.

May be a floating point value, such as "1.2".

Constant Value: 16844114 (0x01010552)

priority

Added in API level 1
public static final int priority

Specify the relative importance or ability in handling a particular Intent. For receivers, this controls the order in which they are executed to receive a broadcast (note that for asynchronous broadcasts, this order is ignored). For activities, this provides information about how good an activity is handling an Intent; when multiple activities match an intent and have different priorities, only those with the higher priority value will be considered a match.

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.

May be an integer value, such as "100".

Constant Value: 16842780 (0x0101001c)

privateImeOptions

Added in API level 3
public static final int privateImeOptions

An addition content type description to supply to the input method attached to the text view, which is private to the implementation of the input method. This simply fills in the EditorInfo.privateImeOptions field when the input method is connected.

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

Constant Value: 16843299 (0x01010223)

process

Added in API level 1
public static final int process

Specify a specific process that the associated code is to run in. Use with the application tag (to supply a default process for all application components), or with the activity, receiver, service, or provider tag (to supply a specific icon for that component).

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.

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

Constant Value: 16842769 (0x01010011)

progress

Added in API level 1
public static final int progress

Defines the default progress value, between 0 and max.

May be an integer value, such as "100".

Constant Value: 16843063 (0x01010137)

progressBackgroundTint

Added in API level 21
public static final int progressBackgroundTint

Tint to apply to the progress indicator background.

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

Constant Value: 16843877 (0x01010465)

progressBackgroundTintMode

Added in API level 21
public static final int progressBackgroundTintMode

Blending mode used to apply the progress indicator background tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable\u2019s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable\u2019s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

Constant Value: 16843878 (0x01010466)

progressBarPadding

Added in API level 11
public static final int progressBarPadding

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

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843545 (0x01010319)

progressBarStyle

Added in API level 1
public static final int progressBarStyle

Default ProgressBar style. This is a medium circular progress bar.

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

Constant Value: 16842871 (0x01010077)

progressBarStyleHorizontal

Added in API level 1
public static final int progressBarStyleHorizontal

Horizontal ProgressBar style. This is a horizontal progress bar.

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

Constant Value: 16842872 (0x01010078)

progressBarStyleInverse

Added in API level 4
public static final int progressBarStyleInverse

Inverse ProgressBar style. This is a medium circular progress bar.

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

Constant Value: 16843399 (0x01010287)

progressBarStyleLarge

Added in API level 1
public static final int progressBarStyleLarge

Large ProgressBar style. This is a large circular progress bar.

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

Constant Value: 16842874 (0x0101007a)

progressBarStyleLargeInverse

Added in API level 4
public static final int progressBarStyleLargeInverse

Large inverse ProgressBar style. This is a large circular progress bar.

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

Constant Value: 16843401 (0x01010289)

progressBarStyleSmall

Added in API level 1
public static final int progressBarStyleSmall

Small ProgressBar style. This is a small circular progress bar.

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

Constant Value: 16842873 (0x01010079)

progressBarStyleSmallInverse

Added in API level 4
public static final int progressBarStyleSmallInverse

Small inverse ProgressBar style. This is a small circular progress bar.

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

Constant Value: 16843400 (0x01010288)

progressBarStyleSmallTitle

Added in API level 1
public static final int progressBarStyleSmallTitle

Small ProgressBar in title style. This is a small circular progress bar that will be placed in title bars.

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

Constant Value: 16843279 (0x0101020f)

progressDrawable

Added in API level 1
public static final int progressDrawable

Drawable used for the progress mode.

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

Constant Value: 16843068 (0x0101013c)

progressTint

Added in API level 21
public static final int progressTint

Tint to apply to the progress indicator.

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

Constant Value: 16843875 (0x01010463)

progressTintMode

Added in API level 21
public static final int progressTintMode

Blending mode used to apply the progress indicator tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable\u2019s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable\u2019s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

Constant Value: 16843876 (0x01010464)

prompt

Added in API level 1
public static final int prompt

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

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

Constant Value: 16843131 (0x0101017b)

propertyName

Added in API level 11
public static final int propertyName

Name of the property being animated.

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

Constant Value: 16843489 (0x010102e1)

propertyXName

Added in API level 21
public static final int propertyXName

Name of the property being animated as the X coordinate of the pathData.

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

Constant Value: 16843892 (0x01010474)

propertyYName

Added in API level 21
public static final int propertyYName

Name of the property being animated as the Y coordinate of the pathData.

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

Constant Value: 16843893 (0x01010475)

protectionLevel

Added in API level 1
public static final 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. 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").

Each protection level consists of a base permission type and zero or more flags. Use the following functions to extract those.

 int basePermissionType = permissionInfo.getProtection();
 int permissionFlags = permissionInfo.getProtectionFlags();
 

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

ConstantValueDescription
appPredictor200000Additional flag from base permission type: this permission can be automatically granted to the system app predictor
appop40Additional flag from base permission type: this permission is closely associated with an app op for controlling access.
companion800000Additional flag from base permission type: this permission can be automatically granted to the system companion device manager service
configurator80000Additional flag from base permission type: this permission automatically granted to device configurator
dangerous1Base permission type: 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.
development20Additional flag from base permission type: this permission can also (optionally) be granted to development applications. Although undocumented, the permission state used to be shared by all users (including future users), but it is managed per-user since API level 31.
incidentReportApprover100000Additional flag from base permission type: this permission designates the app that will approve the sharing of incident reports.
installer100Additional flag from base permission type: this permission can be automatically granted to system apps that install packages.
instant1000Additional flag from base permission type: this permission can be granted to instant apps
internal4Base permission type: a permission that is managed internally by the system and only granted according to the protection flags.
knownSigner8000000Additional flag from base permission type: this permission can also be granted if the requesting application is signed by, or has in its signing lineage, any of the certificate digests declared in knownCerts.
module400000Additional flag from base permission type: this permission can also be granted if the requesting application is included in the mainline module}.
normal0Base permission type: 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).
oem4000Additional flag from base permission type: this permission can be granted only if its protection level is signature, the requesting app resides on the OEM partition, and the OEM has allowlisted the app to receive this permission by the OEM.
pre2380Additional flag from base permission type: this permission can be automatically granted to apps that target API levels below Build.VERSION_CODES.M (before runtime permissions were introduced).
preinstalled400Additional flag from base permission type: this permission can be automatically granted any application pre-installed on the system image (not just privileged apps).
privileged10Additional flag from base permission type: this permission can also be granted to any applications installed as privileged apps on the system image. 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 flag 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.
recents2000000Additional flag from base permission type: this permission will be granted to the recents app.
retailDemo1000000Additional flag from base permission type: this permission will be granted to the retail demo app, as defined by the OEM. This flag has been replaced by the retail demo role and is a no-op since Android V.
role4000000Additional flag from base permission type: this permission is managed by role.
runtime2000Additional flag from base permission type: this permission can only be granted to apps that target runtime permissions (Build.VERSION_CODES.M and above)
setup800Additional flag from base permission type: this permission can be automatically granted to the setup wizard app
signature2Base permission type: 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.
signatureOrSystem3Old synonym for "signature|privileged". Deprecated in API level 23. Base permission type: 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.
system10Old synonym for "privileged". Deprecated in API level 23.
textClassifier10000Additional flag from base permission type: this permission can be automatically granted to the system default text classifier
vendorPrivileged8000Additional flag from base permission type: this permission can be granted to privileged apps in vendor partition.
verifier200Additional flag from base permission type: this permission can be automatically granted to system apps that verify packages.

Constant Value: 16842761 (0x01010009)

publicKey

Added in API level 14
public static final int publicKey

The attribute that holds a Base64-encoded public key.

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

Constant Value: 16843686 (0x010103a6)

query

Added in API level 35
public static final int query

Specify a URI query that must exactly match, as a UriRelativeFilter with PatternMatcher.PATTERN_LITERAL.

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

Constant Value: 16844431 (0x0101068f)

queryActionMsg

Added in API level 1
public static final int queryActionMsg

If you wish to handle an action key during normal search query entry, you must define an action string here. This will be added to the ACTION_SEARCH intent that is passed to your searchable activity. To examine the string, use getStringExtra(SearchManager.ACTION_MSG). Optional attribute.

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

Constant Value: 16843227 (0x010101db)

queryAdvancedPattern

Added in API level 35
public static final int queryAdvancedPattern

Specify a URI query that matches an advanced pattern, as a UriRelativeFilter with PatternMatcher.PATTERN_ADVANCED_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.

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

Constant Value: 16844434 (0x01010692)

queryAfterZeroResults

Added in API level 4
public static final int queryAfterZeroResults

If provided and true, this searchable activity will be invoked for all queries in a particular session. If set to false and the activity returned zero results for a query, it will not be invoked again in that session for supersets of that zero-results query. For example, if the activity returned zero results for "bo", it would not be queried again for "bob". The default value is false. Optional attribute..

May be a boolean value, such as "true" or "false".

Constant Value: 16843394 (0x01010282)

queryBackground

Added in API level 21
public static final int queryBackground

Background for the section containing the search query.

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

Constant Value: 16843911 (0x01010487)

queryHint

Added in API level 11
public static final int queryHint

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

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

Constant Value: 16843608 (0x01010358)

queryPattern

Added in API level 35
public static final int queryPattern

Specify a URI query that matches a simple pattern, as a UriRelativeFilter 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.

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

Constant Value: 16844433 (0x01010691)

queryPrefix

Added in API level 35
public static final int queryPrefix

Specify a URI query that must be a prefix to match, as a UriRelativeFilter with PatternMatcher.PATTERN_PREFIX.

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

Constant Value: 16844432 (0x01010690)

querySuffix

Added in API level 35
public static final int querySuffix

Specify a URI query that must be a suffix to match, as a UriRelativeFilter with PatternMatcher.PATTERN_SUFFIX.

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

Constant Value: 16844435 (0x01010693)

quickContactBadgeStyleSmallWindowLarge

Added in API level 6
public static final int quickContactBadgeStyleSmallWindowLarge

Default quickcontact badge style with large quickcontact window.

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

Constant Value: 16843443 (0x010102b3)

quickContactBadgeStyleSmallWindowMedium

Added in API level 6
public static final int quickContactBadgeStyleSmallWindowMedium

Default quickcontact badge style with medium quickcontact window.

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

Constant Value: 16843442 (0x010102b2)

quickContactBadgeStyleSmallWindowSmall

Added in API level 6
public static final int quickContactBadgeStyleSmallWindowSmall

Default quickcontact badge style with small quickcontact window.

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

Constant Value: 16843441 (0x010102b1)

quickContactBadgeStyleWindowLarge

Added in API level 6
public static final int quickContactBadgeStyleWindowLarge

Default quickcontact badge style with large quickcontact window.

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

Constant Value: 16843440 (0x010102b0)

quickContactBadgeStyleWindowMedium

Added in API level 6
public static final int quickContactBadgeStyleWindowMedium

Default quickcontact badge style with medium quickcontact window.

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

Constant Value: 16843439 (0x010102af)

quickContactBadgeStyleWindowSmall

Added in API level 6
public static final int quickContactBadgeStyleWindowSmall

Default quickcontact badge style with small quickcontact window.

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

Constant Value: 16843438 (0x010102ae)

radioButtonStyle

Added in API level 1
public static final int radioButtonStyle

Default RadioButton style.

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

Constant Value: 16842878 (0x0101007e)

radius

Added in API level 1
public static final int radius

Defines the radius of the four corners.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843176 (0x010101a8)

rating

Added in API level 1
public static final int rating

The rating to set by default.

May be a floating point value, such as "1.2".

Constant Value: 16843077 (0x01010145)

ratingBarStyle

Added in API level 1
public static final int ratingBarStyle

Default RatingBar style.

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

Constant Value: 16842876 (0x0101007c)

ratingBarStyleIndicator

Added in API level 1
public static final int ratingBarStyleIndicator

Indicator RatingBar style.

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

Constant Value: 16843280 (0x01010210)

ratingBarStyleSmall

Added in API level 1
public static final int ratingBarStyleSmall

Small indicator RatingBar style.

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

Constant Value: 16842877 (0x0101007d)

readPermission

Added in API level 1
public static final int readPermission

A specific permission name for read-only access to a ContentProvider. See the Security and Permissions document for more information on permissions.

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

Constant Value: 16842759 (0x01010007)

recognitionService

Added in API level 21
public static final int recognitionService

The service that provides voice recognition. This is required. On Android 11 and earlier, this must be a valid RecognitionService.

From Android 12 onward, this attribute does nothing. However, we still require it to be set to something to reduce the risk that an app with an unspecified value gets pushed to older platform versions, where it will cause a boot loop. To make sure developers don't miss it, the system will reset the current assistant if this isn't specified.

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

Constant Value: 16843932 (0x0101049c)

recreateOnConfigChanges

Added in API level 26
public static final int recreateOnConfigChanges

Specify the configuration changes that trigger the system to recreate the current activity if any of these configuration changes happen in the system. The valid configuration changes include mcc and mnc which are the same with those in configChanges. By default from Android O, we don't recreate the activity even the app doesn't specify mcc or mnc in configChanges. If the app wants to be recreated, specify them in recreateOnConfigChanges.

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

ConstantValueDescription
mcc1The IMSI MCC has changed, that is a SIM has been detected and updated the Mobile Country Code.
mnc2The IMSI MNC has changed, that is a SIM has been detected and updated the Mobile Network Code.

Constant Value: 16844103 (0x01010547)

recycleEnabled

Added in API level 26
public static final int recycleEnabled

Whether the preference has enabled to have its view recycled when used in the list view. This is true by default.

May be a boolean value, such as "true" or "false".

Constant Value: 16844121 (0x01010559)

relinquishTaskIdentity

Added in API level 21
public static final int relinquishTaskIdentity

Tasks whose root has this attribute set to true will replace baseIntent with that of the next activity in the task. If the next activity also has this attribute set to true then it will yield the baseIntent to any activity that it launches in the same task. This continues until an activity is encountered which has this attribute set to false. False is the default. This attribute set to true also permits activity's use of the TaskDescription to change labels, colors and icons in the recent task list.

NOTE: Setting this flag to true will not change the affinity of the task, which is used for intent resolution during activity launch. The task's root activity will always define its affinity.

May be a boolean value, such as "true" or "false".

Constant Value: 16843894 (0x01010476)

reparent

Added in API level 21
public static final int reparent

Tells ChangeTransform to track parent changes. Default is true. Corresponds to ChangeTransform.setReparent(boolean).

May be a boolean value, such as "true" or "false".

Constant Value: 16843964 (0x010104bc)

reparentWithOverlay

Added in API level 21
public static final int reparentWithOverlay

A parent change should use an overlay or affect the transform of the transitionining View. Default is true. Corresponds to ChangeTransform.setReparentWithOverlay(boolean).

May be a boolean value, such as "true" or "false".

Constant Value: 16843965 (0x010104bd)

repeatCount

Added in API level 1
public static final int repeatCount

Defines how many times the animation should repeat. The default value is 0.

May be an integer value, such as "100".

Must be one of the following constant values.

ConstantValueDescription
infiniteffffffff

Constant Value: 16843199 (0x010101bf)

repeatMode

Added in API level 1
public static final int repeatMode

Defines the animation behavior when it reaches the end and the repeat count is greater than 0 or infinite. The default value is restart.

Must be one of the following constant values.

ConstantValueDescription
restart1The animation starts again from the beginning.
reverse2The animation plays backward.

Constant Value: 16843200 (0x010101c0)

reqFiveWayNav

Added in API level 3
public static final int reqFiveWayNav

Application's requirement for five way navigation

May be a boolean value, such as "true" or "false".

Constant Value: 16843314 (0x01010232)

reqHardKeyboard

Added in API level 3
public static final int reqHardKeyboard

Application's requirement for a hard keyboard

May be a boolean value, such as "true" or "false".

Constant Value: 16843305 (0x01010229)

reqKeyboardType

Added in API level 3
public static final int reqKeyboardType

The input method preferred by an application.

Must be one of the following constant values.

ConstantValueDescription
nokeys1
qwerty2
twelvekey3
undefined0

Constant Value: 16843304 (0x01010228)

reqNavigation

Added in API level 3
public static final int reqNavigation

The navigation device preferred by an application.

Must be one of the following constant values.

ConstantValueDescription
dpad2
nonav1
trackball3
undefined0
wheel4

Constant Value: 16843306 (0x0101022a)

reqTouchScreen

Added in API level 3
public static final int reqTouchScreen

The touch screen type used by an application.

Must be one of the following constant values.

ConstantValueDescription
finger3
notouch1
stylus2
undefined0

Constant Value: 16843303 (0x01010227)

requestLegacyExternalStorage

Added in API level 29
public static final int requestLegacyExternalStorage

If true this app would like to run under the legacy storage model. Note that this may not always be respected due to policy or backwards compatibility reasons.

Apps not requesting legacy storage can continue to discover and read media belonging to other apps via MediaStore.

The default value is: - false for apps with targetSdkVersion >= 29 (Q). - true for apps with targetSdkVersion < 29.

May be a boolean value, such as "true" or "false".

Constant Value: 16844291 (0x01010603)

requestRawExternalStorageAccess

Added in API level 31
public static final int requestRawExternalStorageAccess

If true this app would like raw external storage access.

This flag can only be used by apps holding

When the flag is set, all file path access on external storage will bypass database operations that update MediaStore collection. Raw external storage access as a side effect can improve performance of bulk file path operations but can cause unexpected behavior in apps due to inconsistencies in MediaStore collection and lower file system. When the flag is set, app should scan the file after file path operations to ensure consistency of MediaStore collection.

The flag can be set to false if the app doesn't do many bulk file path operations or if app prefers the system to ensure the consistency of the MediaStore collection for file path operations without scanning the file.

The default value is true if

false otherwise.

May be a boolean value, such as "true" or "false".

Constant Value: 16844357 (0x01010645)

requireContentUriPermissionFromCaller

Added in API level 35
public static final int requireContentUriPermissionFromCaller

Specifies permissions necessary to launch this activity when passing content URIs. The default value is none, meaning no specific permissions are required. Setting this attribute restricts activity invocation based on the invoker's permissions. If the invoker doesn't have the required permissions, the activity start will be denied via a SecurityException.

Note that the enforcement works for content URIs inside Intent.getData(), Intent.EXTRA_STREAM, and Intent.getClipData().

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

Must be one of the following constant values.

ConstantValueDescription
none0Default, no specific permissions are required.
read1Enforces the invoker to have read access to the passed content URIs.
readAndWrite4Enforces the invoker to have both read and write access to the passed content URIs.
readOrWrite3Enforces the invoker to have either read or write access to the passed content URIs.
write2Enforces the invoker to have write access to the passed content URIs.

Constant Value: 16844443 (0x0101069b)

requireDeviceScreenOn

Added in API level 31
public static final int requireDeviceScreenOn

Whether the device must be screen on before routing data to this service. The default is true.

May be a boolean value, such as "true" or "false".

Constant Value: 16844317 (0x0101061d)

requireDeviceUnlock

Added in API level 19
public static final int requireDeviceUnlock

Whether the device must be unlocked before routing data to this service. The default is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16843756 (0x010103ec)

required

Added in API level 5
public static final int required

Specify whether this feature is required for the application. The default is true, meaning the application requires the feature, and does not want to be installed on devices that don't support it. If you set this to false, then this will not impose a restriction on where the application can be installed.

May be a boolean value, such as "true" or "false".

Constant Value: 16843406 (0x0101028e)

requiredAccountType

Added in API level 18
public static final int requiredAccountType

Declare that this application requires an account of a certain type. The default value is null and indicates that the application can work without any accounts. The type should correspond to the account authenticator type, such as "com.google".

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

Constant Value: 16843734 (0x010103d6)

requiredDisplayCategory

Added in API level 34
public static final int requiredDisplayCategory

Specifies the required display category of the activity. Upon creation, a display can specify which display categories it supports and one of the categories must be present in the <activity> element to allow this activity to run. The default value is null, which indicates the activity does not have a required display category and thus can only run on a display that didn't specify any display categories. Each activity can only specify one required category but a display can accommodate multiple display categories.

This field should be formatted as a Java-language-style free form string(for example, com.google.automotive_entertainment), which may contain uppercase or lowercase letters ('A' through 'Z'), numbers, and underscores ('_') but may only start with letters.

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

Constant Value: 16844409 (0x01010679)

requiredFeature

Added in API level 26
public static final int requiredFeature

Optional: the system must support this feature for the permission to be requested. If it doesn't support the feature, it will be as if the manifest didn't request it at all.

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

Constant Value: 16844116 (0x01010554)

requiredForAllUsers

Added in API level 18
public static final int requiredForAllUsers

Flag to specify if this application needs to be present for all users. Only pre-installed applications can request this feature. Default value is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16843728 (0x010103d0)

requiredNotFeature

Added in API level 26
public static final int requiredNotFeature

Optional: the system must NOT support this feature for the permission to be requested. If it does support the feature, it will be as if the manifest didn't request it at all.

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

Constant Value: 16844117 (0x01010555)

requiredSplitTypes

Added in API level 33
public static final int requiredSplitTypes

List of split types required by this APK to be present in order to function properly, separated by commas. The platform will reject installation of an app that is missing any required split types. Each split type is a string, and is only used for matching requiredSplitTypes and splitTypes. As an example, if this APK requires localized string resources, screen density resources, and native code this value could be "language,density,abi". Default value is null to indicate no split types are required.

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

Constant Value: 16844366 (0x0101064e)

requiresFadingEdge

Added in API level 14
public static final int requiresFadingEdge

Defines which edges should be faded on scrolling.

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

ConstantValueDescription
horizontal1000Fades horizontal edges only.
none0No edge is faded.
vertical2000Fades vertical edges only.

Constant Value: 16843685 (0x010103a5)

requiresSmallestWidthDp

Added in API level 13
public static final int requiresSmallestWidthDp

Starting with Build.VERSION_CODES.HONEYCOMB_MR2, this is the new way to specify the minimum screen size an application is compatible with. This attribute provides the required minimum "smallest screen width" (as per the -swNNNdp resource configuration) that the application can run on. For example, a typical phone screen is 320, a 7" tablet 600, and a 10" tablet 720. If the smallest screen width of the device is below the value supplied here, then the application is considered incompatible with that device. If not supplied, then any old smallScreens, normalScreens, largeScreens, or xlargeScreens attributes will be used instead.

May be an integer value, such as "100".

Constant Value: 16843620 (0x01010364)

resetEnabledSettingsOnAppDataCleared

Added in API level 33
public static final int resetEnabledSettingsOnAppDataCleared

Specifies whether enabled settings of components in the application should be reset to PackageManager.COMPONENT_ENABLED_STATE_DEFAULT when the application's user data is cleared. The default value is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16844370 (0x01010652)

resizeClip

Added in API level 22
public static final int resizeClip

Resize the view by adjusting the clipBounds rather than changing the dimensions of the view itself. The default value is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16843983 (0x010104cf)

resizeMode

Added in API level 12
public static final int resizeMode

Optional parameter which indicates if and how this widget can be resized. Supports combined values using | operator.

May be an integer value, such as "100".

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

ConstantValueDescription
horizontal1
none0
vertical2

Constant Value: 16843619 (0x01010363)

resizeable

Added in API level 4
public static final int resizeable

Indicates whether the application can resize itself to newer screen sizes. This is mostly used to distinguish between old applications that may not be compatible with newly introduced screen sizes and newer applications that should be; it will be set for you automatically based on whether you are targeting a newer platform that supports more screens.

May be a boolean value, such as "true" or "false".

Constant Value: 16843405 (0x0101028d)

resizeableActivity

Added in API level 24
public static final int resizeableActivity

Hint to platform that the activity works well in multi-window mode. Intended for a multi-window device where there can be multiple activities of various sizes on the screen at the same time.

The default value is false for applications with targetSdkVersion lesser than Build.VERSION_CODES.N and true otherwise.

Setting this flag to false lets the system know that the app may not be tested or optimized for multi-window environment. The system may still put such activity in multi-window with compatibility mode applied. It also does not guarantee that there will be no other apps in multi-window visible on screen (e.g. picture-in-picture) or on other displays. Therefore, this flag cannot be used to assure an exclusive resource access.

A task's root activity value is applied to all additional activities launched in the task. That is if the root activity of a task is resizeable then the system will treat all other activities in the task as resizeable and will not if the root activity isn't resizeable.

May be a boolean value, such as "true" or "false".

Constant Value: 16844022 (0x010104f6)

resource

Added in API level 1
public static final int resource

Resource identifier to assign to this piece of named meta-data. The resource identifier can later be retrieved from the meta data Bundle through Bundle.getInt.

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

Constant Value: 16842789 (0x01010025)

resourcesMap

Added in API level 30
public static final int resourcesMap

The xml file that defines the target id to overlay value mappings.

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

Constant Value: 16844297 (0x01010609)

restoreAnyVersion

Added in API level 8
public static final int restoreAnyVersion

Indicate that the application is prepared to attempt a restore of any backed-up dataset, even if the backup is apparently from a newer version of the application than is currently installed on the device. Setting this attribute to true will permit the Backup Manager to attempt restore even when a version mismatch suggests that the data are incompatible. Use with caution!

The default value of this attribute is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16843450 (0x010102ba)

restoreNeedsApplication

Added in API level 5
Deprecated in API level 15
public static final int restoreNeedsApplication

This constant was deprecated in API level 15.
This attribute is not used by the Android operating system.

May be a boolean value, such as "true" or "false".

Constant Value: 16843421 (0x0101029d)

restrictedAccountType

Added in API level 18
public static final int restrictedAccountType

Declare that this application requires access to restricted accounts of a certain type. The default value is null and restricted accounts won\'t be visible to this application. The type should correspond to the account authenticator type, such as "com.google".

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

Constant Value: 16843733 (0x010103d5)

restrictionType

Added in API level 21
public static final int restrictionType

Must be one of the following constant values.

ConstantValueDescription
bool1
bundle7
bundle_array8
choice2
hidden0
integer5
multi-select4
string6

Constant Value: 16843923 (0x01010493)

resumeWhilePausing

Added in API level 21
public static final int resumeWhilePausing

Indicate that it is okay for this activity be resumed while the previous activity is in the process of pausing, without waiting for the previous pause to complete. Use this with caution: your activity can not acquire any exclusive resources (such as opening the camera or recording audio) when it launches, or it may conflict with the previous activity and fail.

The default value of this attribute is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16843954 (0x010104b2)

reversible

Added in API level 21
public static final int reversible

Whether this transition is reversible.

May be a boolean value, such as "true" or "false".

Constant Value: 16843851 (0x0101044b)

revisionCode

Added in API level 22
public static final int revisionCode

Internal revision code. This number is the number used to determine whether one APK is more recent than another: it has no other meaning than that higher numbers are more recent. This value is only meaningful when the two versionCode values are already identical. When an app is delivered as multiple split APKs, each APK may have a different revisionCode value.

May be an integer value, such as "100".

Constant Value: 16843989 (0x010104d5)

Added in API level 1
public static final int right

Amount of right padding inside the gradient shape.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843183 (0x010101af)

ringtonePreferenceStyle

Added in API level 1
public static final int ringtonePreferenceStyle

Default style for RingtonePreference.

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

Constant Value: 16842899 (0x01010093)

ringtoneType

Added in API level 1
public static final int ringtoneType

Which ringtone type(s) to show in the picker.

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

ConstantValueDescription
alarm4Alarm sounds.
all7All available ringtone sounds.
notification2Notification sounds.
ringtone1Ringtones.

Constant Value: 16843257 (0x010101f9)

rollbackDataPolicy

Added in API level 31
public static final int rollbackDataPolicy

Declare the policy to deal with user data when rollback is committed.

Must be one of the following constant values.

ConstantValueDescription
restore0User data will be restored during rollback.
retain2User data will remain unchanged during rollback.
wipe1User data will be wiped out during rollback.

Constant Value: 16844311 (0x01010617)

rotation

Added in API level 11
public static final int rotation

rotation of the view, in degrees.

May be a floating point value, such as "1.2".

Constant Value: 16843558 (0x01010326)

rotationAnimation

Added in API level 26
public static final int rotationAnimation

Flag that specifies the activity's preferred screen rotation animation. Valid values are "rotate", "crossfade", "jumpcut", and "seamless" as described in WindowManager.LayoutParams.rotationAnimation. Specifying your rotation animation in WindowManager.LayoutParams may be racy with app startup and update transitions that occur during application startup; and so, specify the animation in the manifest attribute.

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

ConstantValueDescription
crossfade1
jumpcut2
rotate0
seamless3

Constant Value: 16844090 (0x0101053a)

rotationX

Added in API level 11
public static final int rotationX

rotation of the view around the x axis, in degrees.

May be a floating point value, such as "1.2".

Constant Value: 16843559 (0x01010327)

rotationY

Added in API level 11
public static final int rotationY

rotation of the view around the y axis, in degrees.

May be a floating point value, such as "1.2".

Constant Value: 16843560 (0x01010328)

roundIcon

Added in API level 25
public static final int roundIcon

A Drawable resource providing a graphical representation of its associated item. Use with the application tag (to supply a default round icon for all application components), or with the activity, receiver, service, or instrumentation tag (to supply a specific round icon for that component). It may also be used with the intent-filter tag to supply a round icon to show to the user when an activity is being selected based on a particular Intent.

The given round icon will be used to display to the user a graphical representation of its associated component; for example, as the round icon for main activity that is displayed in the launcher. This must be a reference to a Drawable resource containing the image definition.

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

Constant Value: 16844076 (0x0101052c)

rowCount

Added in API level 14
public static final int rowCount

The maximum number of rows to create when automatically positioning children.

May be an integer value, such as "100".

Constant Value: 16843637 (0x01010375)

rowDelay

Added in API level 1
public static final int rowDelay

Fraction of the animation duration used to delay the beginning of the animation of each row.

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.

Constant Value: 16843216 (0x010101d0)

rowEdgeFlags

Added in API level 3
Deprecated in API level 29
public static final int rowEdgeFlags

This constant was deprecated in API level 29.
Copy this definition into your own application project.Copy this definition into your own application project.Copy this definition into your own application project.

Row edge flags.

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

ConstantValueDescription
bottom8Row is anchored to the bottom of the keyboard.
top4Row is anchored to the top of the keyboard.

Constant Value: 16843329 (0x01010241)

rowHeight

Added in API level 1
public static final int rowHeight

Defines the height of each row.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843058 (0x01010132)

rowOrderPreserved

Added in API level 14
public static final int rowOrderPreserved

When set to true, forces row boundaries to appear in the same order as row indices. The default is true. See GridLayout.setRowOrderPreserved(boolean).

May be a boolean value, such as "true" or "false".

Constant Value: 16843638 (0x01010376)

saveEnabled

Added in API level 1
public static final int saveEnabled

If false, no state will be saved for this view when it is being frozen. The default is true, allowing the view to be saved (however it also must have an ID assigned to it for its state to be saved). Setting this to false only disables the state for this view, not for its children which may still be saved.

May be a boolean value, such as "true" or "false".

Constant Value: 16842983 (0x010100e7)

scaleGravity

Added in API level 1
public static final int scaleGravity

Specifies where the drawable is positioned after scaling. The default value is left.

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

ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional option that can be set to have the left and/or right edges of the child clipped to its container's bounds. The clip will be based on the horizontal gravity: a left gravity will clip the right edge, a right gravity will clip the left edge, and neither will clip both edges.
clip_vertical80Additional option that can be set to have the top and/or bottom edges of the child clipped to its container's bounds. The clip will be based on the vertical gravity: a top gravity will clip the bottom edge, a bottom gravity will clip the top edge, and neither will clip both edges.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push object to the top of its container, not changing its size.

Constant Value: 16843262 (0x010101fe)

scaleHeight

Added in API level 1
public static final int scaleHeight

Scale height, expressed as a percentage of the drawable's bound. The value's format is XX%. For instance: 100%, 12.5%, etc.

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

Constant Value: 16843261 (0x010101fd)

scaleType

Added in API level 1
public static final int scaleType

Controls how the image should be resized or moved to match the size of this ImageView. See ImageView.ScaleType

Must be one of the following constant values.

ConstantValueDescription
center5Center the image in the view, but perform no scaling.
centerCrop6Scale the image uniformly (maintain the image's aspect ratio) so both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding). The image is then centered in the view.
centerInside7Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or less than the corresponding dimension of the view (minus padding). The image is then centered in the view.
fitCenter3Scale the image using Matrix.ScaleToFit.CENTER.
fitEnd4Scale the image using Matrix.ScaleToFit.END.
fitStart2Scale the image using Matrix.ScaleToFit.START.
fitXY1Scale the image using Matrix.ScaleToFit.FILL.
matrix0Scale using the image matrix when drawing. See ImageView.setImageMatrix(Matrix).

Constant Value: 16843037 (0x0101011d)

scaleWidth

Added in API level 1
public static final int scaleWidth

Scale width, expressed as a percentage of the drawable's bound. The value's format is XX%. For instance: 100%, 12.5%, etc.

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

Constant Value: 16843260 (0x010101fc)

scaleX

Added in API level 11
public static final int scaleX

scale of the view in the x direction.

May be a floating point value, such as "1.2".

Constant Value: 16843556 (0x01010324)

scaleY

Added in API level 11
public static final int scaleY

scale of the view in the y direction.

May be a floating point value, such as "1.2".

Constant Value: 16843557 (0x01010325)

scheme

Added in API level 1
public static final int scheme

Specify a URI scheme that is handled, as per IntentFilter.addDataScheme().

Note: scheme matching in the Android framework is case-sensitive, unlike the formal RFC. As a result, schemes here should always use lower case letters.

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

Constant Value: 16842791 (0x01010027)

screenDensity

Added in API level 9
public static final int screenDensity

Specifies a compatible screen density, as per the device configuration screen density bins.

May be an integer value, such as "100".

Must be one of the following constant values.

ConstantValueDescription
hdpif0A high density screen, approximately 240dpi.
ldpi78A low density screen, approximately 120dpi.
mdpia0A medium density screen, approximately 160dpi.
xhdpi140An extra high density screen, approximately 320dpi.
xxhdpi1e0An extra extra high density screen, approximately 480dpi.
xxxhdpi280An extra extra extra high density screen, approximately 640dpi.

Constant Value: 16843467 (0x010102cb)

screenOrientation

Added in API level 1
public static final int screenOrientation

Specify the orientation an activity should be run in. If not specified, it will run in the current preferred orientation of the screen.

This attribute is supported by the <activity> element.

Must be one of the following constant values.

ConstantValueDescription
behind3Keep the screen in the same orientation as whatever is behind this activity. Corresponds to ActivityInfo.SCREEN_ORIENTATION_BEHIND.
fullSensoraOrientation is determined by a physical orientation sensor: the display will rotate based on how the user moves the device. This allows any of the 4 possible rotations, regardless of what the device will normally do (for example some devices won't normally use 180 degree rotation). Corresponds to ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR.
fullUserdRespect the user's sensor-based rotation preference, but if sensor-based rotation is enabled then allow the screen to rotate in all 4 possible directions regardless of what the device will normally do (for example some devices won't normally use 180 degree rotation). Corresponds to ActivityInfo.SCREEN_ORIENTATION_FULL_USER.
landscape0Would like to have the screen in a landscape orientation: that is, with the display wider than it is tall, ignoring sensor data. Corresponds to ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE.
lockedeScreen is locked to its current rotation, whatever that is. Corresponds to ActivityInfo.SCREEN_ORIENTATION_LOCKED.
nosensor5Always ignore orientation determined by orientation sensor: the display will not rotate when the user moves the device. Corresponds to ActivityInfo.SCREEN_ORIENTATION_NOSENSOR.
portrait1Would like to have the screen in a portrait orientation: that is, with the display taller than it is wide, ignoring sensor data. Corresponds to ActivityInfo.SCREEN_ORIENTATION_PORTRAIT.
reverseLandscape8Would like to have the screen in landscape orientation, turned in the opposite direction from normal landscape. Corresponds to ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE.
reversePortrait9Would like to have the screen in portrait orientation, turned in the opposite direction from normal portrait. Corresponds to ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT.
sensor4Orientation is determined by a physical orientation sensor: the display will rotate based on how the user moves the device. Ignores user's setting to turn off sensor-based rotation. Corresponds to ActivityInfo.SCREEN_ORIENTATION_SENSOR.
sensorLandscape6Would like to have the screen in landscape orientation, but can use the sensor to change which direction the screen is facing. Corresponds to ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE.
sensorPortrait7Would like to have the screen in portrait orientation, but can use the sensor to change which direction the screen is facing. Corresponds to ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT.
unspecifiedffffffffNo 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. Corresponds to ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED.
user2Use the user's current preferred orientation of the handset. Corresponds to ActivityInfo.SCREEN_ORIENTATION_USER.
userLandscapebWould like to have the screen in landscape orientation, but if the user has enabled sensor-based rotation then we can use the sensor to change which direction the screen is facing. Corresponds to ActivityInfo.SCREEN_ORIENTATION_USER_LANDSCAPE.
userPortraitcWould like to have the screen in portrait orientation, but if the user has enabled sensor-based rotation then we can use the sensor to change which direction the screen is facing. Corresponds to ActivityInfo.SCREEN_ORIENTATION_USER_PORTRAIT.

Constant Value: 16842782 (0x0101001e)

screenReaderFocusable

Added in API level 28
public static final int screenReaderFocusable

Whether this view should be treated as a focusable unit by screen reader accessibility tools. See View.setScreenReaderFocusable(boolean). The default value, false, leaves the screen reader to consider other signals, such as focusability or the presence of text, to decide what it focus.

May be a boolean value, such as "true" or "false".

Constant Value: 16844148 (0x01010574)

screenSize

Added in API level 9
public static final int screenSize

Specifies a compatible screen size, as per the device configuration screen size bins.

Must be one of the following constant values.

ConstantValueDescription
large190A large screen configuration, at least 400x530dp.
normal12cA normal screen configuration, at least 320x480dp.
smallc8A small screen configuration, at least 240x320dp.
xlarge1f4An extra large screen configuration, at least 600x800dp.

Constant Value: 16843466 (0x010102ca)

scrollHorizontally

Added in API level 1
public static final int scrollHorizontally

Whether the text is allowed to be wider than the view (and therefore can be scrolled horizontally).

May be a boolean value, such as "true" or "false".

Constant Value: 16843099 (0x0101015b)

scrollIndicators

Added in API level 23
public static final int scrollIndicators

Defines which scroll indicators should be displayed when the view can be scrolled. Multiple values may be combined using logical OR, for example "top|bottom".

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

ConstantValueDescription
bottom2Displays bottom scroll indicator when vew can be scrolled down.
end20Displays right scroll indicator when vew can be scrolled in the end direction.
left4Displays left scroll indicator when vew can be scrolled left.
none0No scroll indicators are displayed.
right8Displays right scroll indicator when vew can be scrolled right.
start10Displays right scroll indicator when vew can be scrolled in the start direction.
top1Displays top scroll indicator when view can be scrolled up.

Constant Value: 16844006 (0x010104e6)

scrollViewStyle

Added in API level 1
public static final int scrollViewStyle

Default ScrollView style.

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

Constant Value: 16842880 (0x01010080)

scrollX

Added in API level 1
public static final int scrollX

The initial horizontal scroll offset, in pixels.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842962 (0x010100d2)

scrollY

Added in API level 1
public static final int scrollY

The initial vertical scroll offset, in pixels.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842963 (0x010100d3)

scrollbarAlwaysDrawHorizontalTrack

Added in API level 1
public static final int scrollbarAlwaysDrawHorizontalTrack

Defines whether the horizontal scrollbar track should always be drawn.

May be a boolean value, such as "true" or "false".

Constant Value: 16842856 (0x01010068)

scrollbarAlwaysDrawVerticalTrack

Added in API level 1
public static final int scrollbarAlwaysDrawVerticalTrack

Defines whether the vertical scrollbar track should always be drawn.

May be a boolean value, such as "true" or "false".

Constant Value: 16842857 (0x01010069)

scrollbarDefaultDelayBeforeFade

Added in API level 5
public static final int scrollbarDefaultDelayBeforeFade

Defines the delay in milliseconds that a scrollbar waits before fade out.

May be an integer value, such as "100".

Constant Value: 16843433 (0x010102a9)

scrollbarFadeDuration

Added in API level 5
public static final int scrollbarFadeDuration

Defines the delay in milliseconds that a scrollbar takes to fade out.

May be an integer value, such as "100".

Constant Value: 16843432 (0x010102a8)

scrollbarSize

Added in API level 1
public static final int scrollbarSize

Sets the width of vertical scrollbars and height of horizontal scrollbars.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842851 (0x01010063)

scrollbarStyle

Added in API level 1
public static final int scrollbarStyle

Controls the scrollbar style and position. The scrollbars can be overlaid or inset. When inset, they add to the padding of the view. And the scrollbars can be drawn inside the padding area or on the edge of the view. For example, if a view has a background drawable and you want to draw the scrollbars inside the padding specified by the drawable, you can use insideOverlay or insideInset. If you want them to appear at the edge of the view, ignoring the padding, then you can use outsideOverlay or outsideInset.

Must be one of the following constant values.

ConstantValueDescription
insideInset1000000Inside the padding and inset.
insideOverlay0Inside the padding and overlaid.
outsideInset3000000Edge of the view and inset.
outsideOverlay2000000Edge of the view and overlaid.

Constant Value: 16842879 (0x0101007f)

scrollbarThumbHorizontal

Added in API level 1
public static final int scrollbarThumbHorizontal

Defines the horizontal scrollbar thumb drawable.

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

Constant Value: 16842852 (0x01010064)

scrollbarThumbVertical

Added in API level 1
public static final int scrollbarThumbVertical

Defines the vertical scrollbar thumb drawable.

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

Constant Value: 16842853 (0x01010065)

scrollbarTrackHorizontal

Added in API level 1
public static final int scrollbarTrackHorizontal

Defines the horizontal scrollbar track drawable.

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

Constant Value: 16842854 (0x01010066)

scrollbarTrackVertical

Added in API level 1
public static final int scrollbarTrackVertical

Defines the vertical scrollbar track drawable.

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

Constant Value: 16842855 (0x01010067)

scrollbars

Added in API level 1
public static final int scrollbars

Defines which scrollbars should be displayed on scrolling or not.

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

ConstantValueDescription
horizontal100Displays horizontal scrollbar only.
none0No scrollbar is displayed.
vertical200Displays vertical scrollbar only.

Constant Value: 16842974 (0x010100de)

scrollingCache

Added in API level 1
public static final int scrollingCache

When set to true, the list uses a drawing cache during scrolling. This makes the rendering faster but uses more memory. The default value is true.

May be a boolean value, such as "true" or "false".

Constant Value: 16843006 (0x010100fe)

searchButtonText

Added in API level 1
Deprecated in API level 15
public static final int searchButtonText

This constant was deprecated in API level 15.
This will create a non-standard UI appearance, because the search bar UI is changing to use only icons for its buttons.

If supplied, this string will be displayed as the text of the "Search" button. Optional attribute.

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

Constant Value: 16843269 (0x01010205)

searchHintIcon

Added in API level 22
public static final int searchHintIcon

Search icon displayed as a text field hint.

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

Constant Value: 16843988 (0x010104d4)

searchIcon

Added in API level 21
public static final int searchIcon

Search icon.

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

Constant Value: 16843907 (0x01010483)

searchMode

Added in API level 1
public static final int searchMode

Additional features are controlled by mode bits in this field. Omitting this field, or setting to zero, provides default behavior. Optional attribute.

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

ConstantValueDescription
queryRewriteFromData10If 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.
queryRewriteFromText20If 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.
showSearchIconAsBadge8This is deprecated.
The default application icon is now always used, so this option is obsolete.
showSearchLabelAsBadge4If 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.

Constant Value: 16843221 (0x010101d5)

searchResultHighlightColor

Added in API level 34
public static final int searchResultHighlightColor

Color of search results highlight. This color is typically used when TextView/EditText shows search result in-app text search invoked with Ctrl+F.

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

Constant Value: 16844418 (0x01010682)

searchSettingsDescription

Added in API level 4
public static final int searchSettingsDescription

If provided, this string will be used to describe the searchable item in the searchable items settings within system search settings. Optional attribute.

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

Constant Value: 16843402 (0x0101028a)

searchSuggestAuthority

Added in API level 1
public static final int searchSuggestAuthority

If provided, this is the trigger indicating that the searchable activity provides suggestions as well. The value must be a fully-qualified content provider authority (for example, "com.example.android.apis.SuggestionProvider") and should match the "android:authorities" tag in your content provider's manifest entry. Optional attribute.

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

Constant Value: 16843222 (0x010101d6)

searchSuggestIntentAction

Added in API level 1
public static final 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. Optional attribute.

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

Constant Value: 16843225 (0x010101d9)

searchSuggestIntentData

Added in API level 1
public static final 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. Optional attribute.

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

Constant Value: 16843226 (0x010101da)

searchSuggestPath

Added in API level 1
public static final 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. Optional attribute.

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

Constant Value: 16843223 (0x010101d7)

searchSuggestSelection

Added in API level 1
public static final int searchSuggestSelection

If provided, suggestion queries will be passed into your query function as the selection parameter. Typically this will be a WHERE clause for your database, and will contain a single question mark, which represents the actual query string that has been typed by the user. If not provided, then the user query text will be appended to the query Uri (after an additional "/".) Optional attribute.

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

Constant Value: 16843224 (0x010101d8)

searchSuggestThreshold

Added in API level 4
public static final int searchSuggestThreshold

If provided, this is the minimum number of characters needed to trigger search suggestions. The default value is 0. Optional attribute.

May be an integer value, such as "100".

Constant Value: 16843373 (0x0101026d)

searchViewStyle

Added in API level 21
public static final int searchViewStyle

Style for the search query widget.

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

Constant Value: 16843904 (0x01010480)

secondaryContentAlpha

Added in API level 26
public static final int secondaryContentAlpha

The alpha applied to the foreground color to create the secondary text color.

May be a floating point value, such as "1.2".

Constant Value: 16844115 (0x01010553)

secondaryProgress

Added in API level 1
public static final int secondaryProgress

Defines the secondary progress value, between 0 and max. This progress is drawn between the primary progress and the background. It can be ideal for media scenarios such as showing the buffering progress while the default progress shows the play progress.

May be an integer value, such as "100".

Constant Value: 16843064 (0x01010138)

secondaryProgressTint

Added in API level 21
public static final int secondaryProgressTint

Tint to apply to the secondary progress indicator.

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

Constant Value: 16843879 (0x01010467)

secondaryProgressTintMode

Added in API level 21
public static final int secondaryProgressTintMode

Blending mode used to apply the secondary progress indicator tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable\u2019s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable\u2019s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

Constant Value: 16843880 (0x01010468)

secureElementName

Added in API level 29
public static final int secureElementName

Secure Element which the AIDs should be routed to

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

Constant Value: 16844290 (0x01010602)

seekBarStyle

Added in API level 1
public static final int seekBarStyle

Default SeekBar style.

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

Constant Value: 16842875 (0x0101007b)

segmentedButtonStyle

Added in API level 11
public static final int segmentedButtonStyle

Style for segmented buttons - a container that houses several buttons with the appearance of a singel button broken into segments.

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

Constant Value: 16843568 (0x01010330)

selectAllOnFocus

Added in API level 1
public static final int selectAllOnFocus

If the text is selectable, select it all when the view takes focus.

May be a boolean value, such as "true" or "false".

Constant Value: 16843102 (0x0101015e)

selectable

Added in API level 1
public static final int selectable

Whether the Preference is selectable.

May be a boolean value, such as "true" or "false".

Constant Value: 16843238 (0x010101e6)

selectableAsDefault

Added in API level 31
public static final int selectableAsDefault

Flag indicating whether a recognition service can be selected as default. The default value of this flag is true.

May be a boolean value, such as "true" or "false".

Constant Value: 16844352 (0x01010640)

selectableItemBackground

Added in API level 11
public static final int selectableItemBackground

Background drawable for bordered standalone items that need focus/pressed states.

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

Constant Value: 16843534 (0x0101030e)

selectableItemBackgroundBorderless

Added in API level 21
public static final int selectableItemBackgroundBorderless

Background drawable for borderless standalone items that need focus/pressed states.

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

Constant Value: 16843868 (0x0101045c)

selectedDateVerticalBar

Added in API level 11
Deprecated in API level 23
public static final int selectedDateVerticalBar

This constant was deprecated in API level 23.
Drawable for the vertical bar shown at the beginning and at the end of the selected date.

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

Constant Value: 16843591 (0x01010347)

selectedWeekBackgroundColor

Added in API level 11
Deprecated in API level 23
public static final int selectedWeekBackgroundColor

This constant was deprecated in API level 23.
The background color for the selected week.

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

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

Constant Value: 16843586 (0x01010342)

selectionDividerHeight

Added in API level 29
public static final int selectionDividerHeight

The height of the selection divider.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844184 (0x01010598)

sessionService

Added in API level 21
public static final int sessionService

The service that hosts active voice interaction sessions. This is required.

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

Constant Value: 16843837 (0x0101043d)

settingsActivity

Added in API level 3
public static final int settingsActivity

Fully qualified class name of an activity that allows the user to modify the settings for this service.

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

Constant Value: 16843301 (0x01010225)

settingsSliceUri

Added in API level 29
public static final int settingsSliceUri

Uri that specifies a settings Slice for this wallpaper.

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

Constant Value: 16844179 (0x01010593)

settingsSubtitle

Added in API level 34
public static final int settingsSubtitle

A string that is displayed to the user in the Credential Manager settings screen that can be used to provide more information about a provider. For longer strings it will be truncated.

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

Constant Value: 16844422 (0x01010686)

setupActivity

Added in API level 21
public static final int setupActivity

Component name of an activity that allows the user to set up this service.

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

Constant Value: 16843766 (0x010103f6)

shadowColor

Added in API level 1
public static final int shadowColor

Place a blurred shadow of text underneath the text, drawn with the specified color. The text shadow produced does not interact with properties on View that are responsible for real time shadows, elevation and translationZ.

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

Constant Value: 16843105 (0x01010161)

shadowDx

Added in API level 1
public static final int shadowDx

Horizontal offset of the text shadow.

May be a floating point value, such as "1.2".

Constant Value: 16843106 (0x01010162)

shadowDy

Added in API level 1
public static final int shadowDy

Vertical offset of the text shadow.

May be a floating point value, such as "1.2".

Constant Value: 16843107 (0x01010163)

shadowRadius

Added in API level 1
public static final int shadowRadius

Blur radius of the text shadow.

May be a floating point value, such as "1.2".

Constant Value: 16843108 (0x01010164)

shape

Added in API level 1
public static final int shape

Indicates what shape to fill with a gradient.

Must be one of the following constant values.

ConstantValueDescription
line2Line shape.
oval1Oval shape.
rectangle0Rectangle shape, with optional rounder corners.
ring3Ring shape.

Constant Value: 16843162 (0x0101019a)

shareInterpolator

Added in API level 1
public static final int shareInterpolator

May be a boolean value, such as "true" or "false".

Constant Value: 16843195 (0x010101bb)

sharedUserId

Added in API level 1
Deprecated in API level 29
public static final int sharedUserId

This constant was deprecated in API level 29.
Shared user IDs cause non-deterministic behavior within the package manager. As such, its use is strongly discouraged and may be removed in a future version of Android. Instead, apps should use proper communication mechanisms, such as services and content providers, to facilitate interoperability between shared components. Note that existing apps cannot remove this value, as migrating off a shared user ID is not supported.

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

Specify the name of a user ID that will be shared between multiple packages. By default, each package gets its own unique user-id. By setting this value on two or more packages, each of these packages will be given a single shared user ID, so they can for example run in the same process. Note that for them to actually get the same user ID, they must also be signed with the same signature.

Constant Value: 16842763 (0x0101000b)

sharedUserLabel

Added in API level 3
Deprecated in API level 29
public static final int sharedUserLabel

This constant was deprecated in API level 29.
There is no replacement for this attribute. sharedUserId has been deprecated making this attribute unnecessary.

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

Specify a label for the shared user UID of this package. This is only used if you have also used android:sharedUserId. This must be a reference to a string resource; it can not be an explicit string.

Constant Value: 16843361 (0x01010261)

sharedUserMaxSdkVersion

Added in API level 33
public static final int sharedUserMaxSdkVersion

The maximum device SDK version for which the application will remain in the user ID defined in sharedUserId. Used when the application wants to migrate out of using shared user ID, but has to maintain backwards compatibility with the API level specified and before.

May be an integer value, such as "100".

Constant Value: 16844365 (0x0101064d)

shell

Added in API level 29
public static final int shell

Flag indicating whether the application can be profiled by the shell user, even when running on a device that is running in user mode.

May be a boolean value, such as "true" or "false".

Constant Value: 16844180 (0x01010594)

shiftDrawingOffsetForStartOverhang

Added in API level 35
public static final int shiftDrawingOffsetForStartOverhang

May be a boolean value, such as "true" or "false".

Constant Value: 16844450 (0x010106a2)

shortcutDisabledMessage

Added in API level 25
public static final int shortcutDisabledMessage

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

Constant Value: 16844075 (0x0101052b)

shortcutId

Added in API level 25
public static final int shortcutId

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

Constant Value: 16844072 (0x01010528)

shortcutLongLabel

Added in API level 25
public static final int shortcutLongLabel

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

Constant Value: 16844074 (0x0101052a)

shortcutShortLabel

Added in API level 25
public static final int shortcutShortLabel

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

Constant Value: 16844073 (0x01010529)

shouldDefaultToObserveMode

Added in API level 35
public static final int shouldDefaultToObserveMode

Whether the device should default to observe mode when this service is default or in the foreground.

May be a boolean value, such as "true" or "false".

Constant Value: 16844448 (0x010106a0)

shouldDisableView

Added in API level 1
public static final int shouldDisableView

Whether the view of this Preference should be disabled when this Preference is disabled.

May be a boolean value, such as "true" or "false".

Constant Value: 16843246 (0x010101ee)

shouldUseDefaultUnfoldTransition

Added in API level 32
public static final int shouldUseDefaultUnfoldTransition

Indicates that this wallpaper service should receive zoom transition updates when changing the structural state of the device (e.g. when folding or unfolding a foldable device). When this value is set to true WallpaperService.Engine could receive zoom updates before or after changing the device state. Wallpapers receive zoom updates using WallpaperService.Engine.onZoomChanged(float) and zoom rendering should be handled manually. Zoom updates are delivered only when WallpaperService.Engine is created and not destroyed. Default value is true. Corresponds to WallpaperInfo.shouldUseDefaultUnfoldTransition()

May be a boolean value, such as "true" or "false".

Constant Value: 16844364 (0x0101064c)

showAsAction

Added in API level 11
public static final int showAsAction

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

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

ConstantValueDescription
always2Always show this item in an actionbar, even if it would override the system's limits of how much stuff to put there. This may make your action bar look bad on some screens. In most cases you should use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never".
collapseActionView8This item's action view collapses to a normal menu item. When expanded, the action view takes over a larger segment of its container.
ifRoom1Show this item in an action bar if there is room for it as determined by the system. Favor this option over "always" where possible. Mutually exclusive with "never" and "always".
never0Never show this item in an action bar, show it in the overflow menu instead. Mutually exclusive with "ifRoom" and "always".
withText4When this item is shown as an action in the action bar, show a text label with it even if it has an icon representation.

Constant Value: 16843481 (0x010102d9)

showBackdrop

Added in API level 33
public static final int showBackdrop

Special option for window animations: whether to show a background behind the animating windows. By default the window's background is used unless overridden by the animation.

May be a boolean value, such as "true" or "false".

Constant Value: 16844380 (0x0101065c)

showClockAndComplications

Added in API level 33
public static final int showClockAndComplications

Whether to show clock and other complications such as weather in the overlay. Default to true. Note that the overlay on dreams is currently only supported on tablets.

May be a boolean value, such as "true" or "false".

Constant Value: 16844372 (0x01010654)

showDefault

Added in API level 1
public static final int showDefault

Whether to show an item for a default sound.

May be a boolean value, such as "true" or "false".

Constant Value: 16843258 (0x010101fa)

showDividers

Added in API level 11
public static final int showDividers

Setting for which dividers to show.

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

ConstantValueDescription
beginning1
end4
middle2
none0

Constant Value: 16843561 (0x01010329)

showForAllUsers

Added in API level 23
public static final int showForAllUsers

Specify that an Activity should be shown even if the current/foreground user is different from the user of the Activity. This will also force the android.view.LayoutParams.FLAG_SHOW_WHEN_LOCKED flag to be set for all windows of this activity

May be a boolean value, such as "true" or "false".

Constant Value: 16844015 (0x010104ef)

showInInputMethodPicker

Added in API level 31
public static final int showInInputMethodPicker

Specifies whether the IME wants to be shown in the Input Method picker. Defaults to true. Set this to false if the IME is intended to be accessed programmatically.

Note: This functions as a hint to the system, which may choose to ignore this preference in certain situations or in future releases.

May be a boolean value, such as "true" or "false".

Constant Value: 16844360 (0x01010648)

showMetadataInPreview

Added in API level 25
public static final int showMetadataInPreview

Whether to show any metadata when previewing the wallpaper. If this value is set to true, any component that shows a preview of this live wallpaper should also show accompanying information like the title, the description, the author and the context description of this wallpaper so the user gets to know further information about this wallpaper.

May be a boolean value, such as "true" or "false".

Constant Value: 16844079 (0x0101052f)

showOnLockScreen

Added in API level 17
Deprecated in API level 23
public static final int showOnLockScreen

This constant was deprecated in API level 23.
use showForAllUsers instead.

May be a boolean value, such as "true" or "false".

Specify that an Activity should be shown over the lock screen and, in a multiuser environment, across all users' windows.

Constant Value: 16843721 (0x010103c9)

showSilent

Added in API level 1
public static final int showSilent

Whether to show an item for 'Silent'.

May be a boolean value, such as "true" or "false".

Constant Value: 16843259 (0x010101fb)

showText

Added in API level 21
public static final int showText

Whether to draw on/off text.

May be a boolean value, such as "true" or "false".

Constant Value: 16843949 (0x010104ad)

showWeekNumber

Added in API level 11
Deprecated in API level 23
public static final int showWeekNumber

This constant was deprecated in API level 23.
Whether do show week numbers.

May be a boolean value, such as "true" or "false".

Constant Value: 16843582 (0x0101033e)

showWhenLocked

Added in API level 27
public static final int showWhenLocked

Specifies whether an Activity should be shown on top of the lock screen whenever the lockscreen is up and the activity is resumed. Normally an activity will be transitioned to the stopped state if it is started while the lockscreen is up, but with this flag set the activity will remain in the resumed state visible on-top of the lock screen.

This should be used instead of WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED flag set for Windows. When using the Window flag during activity startup, there may not be time to add it before the system stops your activity for being behind the lock-screen. This leads to a double life-cycle as it is then restarted.

May be a boolean value, such as "true" or "false".

Constant Value: 16844137 (0x01010569)

shownWeekCount

Added in API level 11
Deprecated in API level 23
public static final int shownWeekCount

This constant was deprecated in API level 23.
The number of weeks to be shown.

May be an integer value, such as "100".

Constant Value: 16843585 (0x01010341)

shrinkColumns

Added in API level 1
public static final int shrinkColumns

The zero-based index of the columns to shrink. The column indices must be separated by a comma: 1, 2, 5. Illegal and duplicate indices are ignored. You can shrink all columns by using the value "*" instead. Note that a column can be marked stretchable and shrinkable at the same time.

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

Constant Value: 16843082 (0x0101014a)

singleLine

Added in API level 1
Deprecated in API level 15
public static final int singleLine

This constant was deprecated in API level 15.
This attribute is deprecated. Use maxLines instead to change the layout of a static text, and use the textMultiLine flag in the inputType attribute instead for editable text views (if both singleLine and inputType are supplied, the inputType flags will override the value of 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. The default value is false (multi-line wrapped text mode) for non-editable text, but if you specify any value for inputType, the default is true (single-line input field mode).

May be a boolean value, such as "true" or "false".

Constant Value: 16843101 (0x0101015d)

singleLineTitle

Added in API level 26
public static final int singleLineTitle

Whether to use single line for the preference title text. By default, preference title will be constrained to one line, so the default value of this attribute is true.

May be a boolean value, such as "true" or "false".

Constant Value: 16844124 (0x0101055c)

singleUser

Added in API level 17
public static final int singleUser

If set to true, a single instance of this component will run for all users. That instance will run as user 0, the default/primary user. When the app running is in processes for other users and interacts with this component (by binding to a service for example) those processes will always interact with the instance running for user 0. Enabling single user mode forces "exported" of the component to be false, to help avoid introducing multi-user security bugs. This feature is only available to applications built in to the system image; you must hold the permission INTERACT_ACROSS_USERS in order to use this feature. This flag can only be used with services, receivers, and providers; it can not be used with activities.

May be a boolean value, such as "true" or "false".

Constant Value: 16843711 (0x010103bf)

slideEdge

Added in API level 21
public static final int slideEdge

Must be one of the following constant values.

ConstantValueDescription
bottom50Slide to and from the bottom edge of the Scene.
end800005Slide to and from the x-axis position at the end of the Scene root.
left3Slide to and from the left edge of the Scene.
right5Slide to and from the right edge of the Scene.
start800003Slide to and from the x-axis position at the start of the Scene root.
top30Slide to and from the top edge of the Scene.

Constant Value: 16843824 (0x01010430)

smallIcon

Added in API level 5
public static final int smallIcon

Smaller icon of the authenticator.

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

Constant Value: 16843422 (0x0101029e)

smallScreens

Added in API level 4
public static final int smallScreens

Indicates whether the application supports smaller screen form-factors. A small screen is defined as one with a smaller aspect ratio than the traditional HVGA screen; that is, for a portrait screen, less tall than an HVGA screen. In practice, this means a QVGA low density or VGA high density screen. An application that does not support small screens will not be available for small screen devices, since there is little the platform can do to make such an application work on a smaller screen.

May be a boolean value, such as "true" or "false".

Constant Value: 16843396 (0x01010284)

smoothScrollbar

Added in API level 3
public static final int smoothScrollbar

When set to true, the list will use a more refined calculation method based on the pixels height of the items visible on screen. This property is set to true by default but should be set to false if your adapter will display items of varying heights. When this property is set to true and your adapter displays items of varying heights, the scrollbar thumb will change size as the user scrolls through the list. When set to false, the list will use only the number of items in the adapter and the number of items visible on screen to determine the scrollbar's properties.

May be a boolean value, such as "true" or "false".

Constant Value: 16843313 (0x01010231)

soundEffectsEnabled

Added in API level 1
public static final int soundEffectsEnabled

Boolean that controls whether a view should have sound effects enabled for events such as clicking and touching.

May be a boolean value, such as "true" or "false".

Constant Value: 16843285 (0x01010215)

spacing

Added in API level 1
public static final int spacing

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843027 (0x01010113)

spinnerDropDownItemStyle

Added in API level 1
public static final int spinnerDropDownItemStyle

Default style for spinner drop down items.

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

Constant Value: 16842887 (0x01010087)

spinnerItemStyle

Added in API level 1
public static final int spinnerItemStyle

Default spinner item style.

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

Constant Value: 16842889 (0x01010089)

spinnerMode

Added in API level 11
public static final int spinnerMode

Display mode for spinner options.

Must be one of the following constant values.

ConstantValueDescription
dialog0Spinner options will be presented to the user as a dialog window.
dropdown1Spinner options will be presented to the user as an inline dropdown anchored to the spinner widget itself.

Constant Value: 16843505 (0x010102f1)

spinnerStyle

Added in API level 1
public static final int spinnerStyle

Default Spinner style.

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

Constant Value: 16842881 (0x01010081)

spinnersShown

Added in API level 11
public static final int spinnersShown

Whether the spinners are shown. Only valid for "spinner" mode.

May be a boolean value, such as "true" or "false".

Constant Value: 16843595 (0x0101034b)

splashScreenTheme

Added in API level 31
public static final int splashScreenTheme

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

Constant Value: 16844337 (0x01010631)

splitMotionEvents

Added in API level 11
public static final int splitMotionEvents

Sets whether this ViewGroup should split MotionEvents to separate child views during touch event dispatch. If false (default prior to HONEYCOMB), touch events will be dispatched to the child view where the first pointer went down until the last pointer goes up. If true (default for HONEYCOMB and later), touch events may be dispatched to multiple children. MotionEvents for each pointer will be dispatched to the child view where the initial ACTION_DOWN event happened. See ViewGroup.setMotionEventSplittingEnabled(boolean) for more information.

May be a boolean value, such as "true" or "false".

Constant Value: 16843503 (0x010102ef)

splitName

Added in API level 26
public static final int splitName

When an application is partitioned into splits, this is the name of the split that contains the defined component.

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

Constant Value: 16844105 (0x01010549)

splitTrack

Added in API level 21
public static final int splitTrack

Whether to split the track and leave a gap for the thumb drawable.

May be a boolean value, such as "true" or "false".

Constant Value: 16843852 (0x0101044c)

splitTypes

Added in API level 33
public static final int splitTypes

List of split types offered by this APK, separated by commas. Each split type is a string, and is only used for matching requiredSplitTypes and splitTypes. As an example, if this split offers localized string resources, and screen density resources the value could be "language,density". Default value is null to indicate no split types are offered.

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

Constant Value: 16844367 (0x0101064f)

spotShadowAlpha

Added in API level 21
public static final int spotShadowAlpha

Alpha value of the spot shadow projected by elevated views, between 0 and 1.

May be a floating point value, such as "1.2".

Constant Value: 16843967 (0x010104bf)

src

Added in API level 1
public static final int src

Sets a drawable as the content of this ImageView.

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

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

Constant Value: 16843033 (0x01010119)

ssp

Added in API level 19
public static final int ssp

Specify a URI scheme specific part that must exactly match, as per IntentFilter.addDataSchemeSpecificPart() with PatternMatcher.PATTERN_LITERAL.

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

Constant Value: 16843747 (0x010103e3)

sspAdvancedPattern

Added in API level 31
public static final int sspAdvancedPattern

Specify a URI scheme specific part that matches an advanced pattern, as per IntentFilter.addDataSchemeSpecificPart() with PatternMatcher.PATTERN_ADVANCED_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.

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

Constant Value: 16844321 (0x01010621)

sspPattern

Added in API level 19
public static final int sspPattern

Specify a URI scheme specific part that matches a simple pattern, as per IntentFilter.addDataSchemeSpecificPart() 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.

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

Constant Value: 16843749 (0x010103e5)

sspPrefix

Added in API level 19
public static final int sspPrefix

Specify a URI scheme specific part that must be a prefix to match, as per IntentFilter.addDataSchemeSpecificPart() with PatternMatcher.PATTERN_PREFIX.

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

Constant Value: 16843748 (0x010103e4)

sspSuffix

Added in API level 31
public static final int sspSuffix

Specify a URI scheme specific part that must be a suffix to match, as per IntentFilter.addDataSchemeSpecificPart() with PatternMatcher.PATTERN_SUFFIX.

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

Constant Value: 16844319 (0x0101061f)

stackFromBottom

Added in API level 1
public static final int stackFromBottom

Used by ListView and GridView to stack their content from the bottom.

May be a boolean value, such as "true" or "false".

Constant Value: 16843005 (0x010100fd)

stackViewStyle

Added in API level 21
public static final int stackViewStyle

Default StackView style.

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

Constant Value: 16843838 (0x0101043e)

starStyle

Added in API level 1
public static final int starStyle

Default Star style.

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

Constant Value: 16842882 (0x01010082)

start

Added in API level 23
public static final int start

Start inset to apply to the layer. Overrides left or right depending on layout direction.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843995 (0x010104db)

startColor

Added in API level 1
public static final int startColor

Start color of the gradient.

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

Constant Value: 16843165 (0x0101019d)

startDelay

Added in API level 19
public static final int startDelay

Delay in milliseconds before the transition starts.

May be an integer value, such as "100".

Constant Value: 16843746 (0x010103e2)

startOffset

Added in API level 1
public static final int startOffset

Delay in milliseconds before the animation runs, once start time is reached.

May be an integer value, such as "100".

Constant Value: 16843198 (0x010101be)

startX

Added in API level 24
public static final int startX

X coordinate of the start point origin of the gradient. Defined in same coordinates as the path itself

May be a floating point value, such as "1.2".

Constant Value: 16844048 (0x01010510)

startY

Added in API level 24
public static final int startY

Y coordinate of the start point of the gradient within the shape. Defined in same coordinates as the path itself

May be a floating point value, such as "1.2".

Constant Value: 16844049 (0x01010511)

startYear

Added in API level 1
Deprecated in API level 16
public static final int startYear

This constant was deprecated in API level 16.
Use minDate instead.Use minDate instead.

The first year (inclusive), for example "1940".

May be an integer value, such as "100".

Constant Value: 16843132 (0x0101017c)

stateListAnimator

Added in API level 21
public static final int stateListAnimator

Sets the state-based animator for the View.

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

Constant Value: 16843848 (0x01010448)

stateNotNeeded

Added in API level 1
public static final int stateNotNeeded

Indicates that an Activity does not need to have its freeze state (as returned by Activity.onSaveInstanceState(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(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.

May be a boolean value, such as "true" or "false".

Constant Value: 16842774 (0x01010016)

state_above_anchor

Added in API level 1
public static final int state_above_anchor

State identifier indicating the popup will be above the anchor.

May be a boolean value, such as "true" or "false".

Constant Value: 16842922 (0x010100aa)

state_accelerated

Added in API level 11
public static final int state_accelerated

State value for StateListDrawable, indicating that the Drawable is in a view that is hardware accelerated. This means that the device can at least render a full-screen scaled bitmap with one layer of text and bitmaps composited on top of it at 60fps. When this is set, the colorBackgroundCacheHint will be ignored even if it specifies a solid color, since that optimization is not needed.

May be a boolean value, such as "true" or "false".

Constant Value: 16843547 (0x0101031b)

state_activated

Added in API level 11
public static final int state_activated

State value for StateListDrawable, set when a view or its parent has been "activated" meaning the user has currently marked it as being of interest. This is an alternative representation of state_checked for when the state should be propagated down the view hierarchy.

May be a boolean value, such as "true" or "false".

Constant Value: 16843518 (0x010102fe)

state_active

Added in API level 1
public static final int state_active

State value for StateListDrawable, set when a view or drawable is considered "active" by its host. Actual usage may vary between views. Consult the host view documentation for details.

May be a boolean value, such as "true" or "false".

Constant Value: 16842914 (0x010100a2)

state_checkable

Added in API level 1
public static final int state_checkable

State identifier indicating that the object may display a check mark. See state_checked for the identifier that indicates whether it is actually checked.

May be a boolean value, such as "true" or "false".

Constant Value: 16842911 (0x0101009f)

state_checked

Added in API level 1
public static final int state_checked

State identifier indicating that the object is currently checked. See 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.

May be a boolean value, such as "true" or "false".

Constant Value: 16842912 (0x010100a0)

state_drag_can_accept

Added in API level 14
public static final int state_drag_can_accept

State for StateListDrawable indicating that the Drawable is in a view that is capable of accepting a drop of the content currently being manipulated in a drag-and-drop operation.

May be a boolean value, such as "true" or "false".

Constant Value: 16843624 (0x01010368)

state_drag_hovered

Added in API level 14
public static final int state_drag_hovered

State for StateListDrawable indicating that a drag operation (for which the Drawable's view is a valid recipient) is currently positioned over the Drawable.

May be a boolean value, such as "true" or "false".

Constant Value: 16843625 (0x01010369)

state_empty

Added in API level 1
public static final int state_empty

State identifier indicating the group is empty (has no children).

May be a boolean value, such as "true" or "false".

Constant Value: 16842921 (0x010100a9)

state_enabled

Added in API level 1
public static final int state_enabled

State value for StateListDrawable, set when a view is enabled.

May be a boolean value, such as "true" or "false".

Constant Value: 16842910 (0x0101009e)

state_expanded

Added in API level 1
public static final int state_expanded

State identifier indicating the group is expanded.

May be a boolean value, such as "true" or "false".

Constant Value: 16842920 (0x010100a8)

state_first

Added in API level 1
public static final int state_first

State value for StateListDrawable, set when a view or drawable is in the first position in an ordered set. Actual usage may vary between views. Consult the host view documentation for details.

May be a boolean value, such as "true" or "false".

Constant Value: 16842916 (0x010100a4)

state_focused

Added in API level 1
public static final int state_focused

State value for StateListDrawable, set when a view has input focus.

May be a boolean value, such as "true" or "false".

Constant Value: 16842908 (0x0101009c)

state_hovered

Added in API level 14
public static final int state_hovered

State value for StateListDrawable, set when a pointer is hovering over the view.

May be a boolean value, such as "true" or "false".

Constant Value: 16843623 (0x01010367)

state_last

Added in API level 1
public static final int state_last

State value for StateListDrawable, set when a view or drawable is in the last position in an ordered set. Actual usage may vary between views. Consult the host view documentation for details.

May be a boolean value, such as "true" or "false".

Constant Value: 16842918 (0x010100a6)

state_long_pressable

Added in API level 3
Deprecated in API level 29
public static final int state_long_pressable

This constant was deprecated in API level 29.
Copy this definition into your own application project.

State for KeyboardView key preview background.

May be a boolean value, such as "true" or "false".

Constant Value: 16843324 (0x0101023c)

state_middle

Added in API level 1
public static final int state_middle

State value for StateListDrawable, set when a view or drawable is in the middle position in an ordered set. Actual usage may vary between views. Consult the host view documentation for details.

May be a boolean value, such as "true" or "false".

Constant Value: 16842917 (0x010100a5)

state_multiline

Added in API level 11
public static final int state_multiline

State identifier indicating a TextView has a multi-line layout.

May be a boolean value, such as "true" or "false".

Constant Value: 16843597 (0x0101034d)

state_pressed

Added in API level 1
public static final int state_pressed

State value for StateListDrawable, set when the user is pressing down in a view.

May be a boolean value, such as "true" or "false".

Constant Value: 16842919 (0x010100a7)

state_selected

Added in API level 1
public static final int state_selected

State value for StateListDrawable, set when a view (or one of its parents) is currently selected.

May be a boolean value, such as "true" or "false".

Constant Value: 16842913 (0x010100a1)

state_single

Added in API level 1
public static final int state_single

State value for StateListDrawable, set when a view or drawable is considered "single" by its host. Actual usage may vary between views. Consult the host view documentation for details.

May be a boolean value, such as "true" or "false".

Constant Value: 16842915 (0x010100a3)

state_window_focused

Added in API level 1
public static final int state_window_focused

State value for StateListDrawable, set when a view's window has input focus.

May be a boolean value, such as "true" or "false".

Constant Value: 16842909 (0x0101009d)

staticWallpaperPreview

Added in API level 11
public static final int staticWallpaperPreview

A resource id of a static drawable.

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

Constant Value: 16843569 (0x01010331)

statusBarColor

Added in API level 21
Deprecated in API level 35
public static final int statusBarColor

This constant was deprecated in API level 35.
Draw proper background behind WindowInsets.Type.statusBars()} instead.

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

The color for the status bar. If the color is not opaque, consider setting View.SYSTEM_UI_FLAG_LAYOUT_STABLE and View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN. For this to take effect, the window must be drawing the system bar backgrounds with windowDrawsSystemBarBackgrounds and the status bar must not have been requested to be translucent with windowTranslucentStatus. Corresponds to Window.setStatusBarColor(int).

If the color is transparent and the window enforces the status bar contrast, the system will determine whether a scrim is necessary and draw one on behalf of the app to ensure that the status bar has enough contrast with the contents of this app, and set an appropriate effective bar background accordingly. See: enforceStatusBarContrast

If the window belongs to an app targeting VANILLA_ICE_CREAM or above, this attribute is ignored.

Constant Value: 16843857 (0x01010451)

stepSize

Added in API level 1
public static final int stepSize

The step size of the rating.

May be a floating point value, such as "1.2".

Constant Value: 16843078 (0x01010146)

stopWithTask

Added in API level 14
public static final int stopWithTask

If set to true, this service with be automatically stopped when the user remove a task rooted in an activity owned by the application. The default is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16843626 (0x0101036a)

streamType

Added in API level 1
public static final int streamType

Different audio stream types.

Must be one of the following constant values.

ConstantValueDescription
alarm4
music3
ring2
system1
voice0

Constant Value: 16843273 (0x01010209)

stretchColumns

Added in API level 1
public static final int stretchColumns

The zero-based index of the columns to stretch. The column indices must be separated by a comma: 1, 2, 5. Illegal and duplicate indices are ignored. You can stretch all columns by using the value "*" instead. Note that a column can be marked stretchable and shrinkable at the same time.

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

Constant Value: 16843081 (0x01010149)

stretchMode

Added in API level 1
public static final int stretchMode

Defines how columns should stretch to fill the available empty space, if any.

Must be one of the following constant values.

ConstantValueDescription
columnWidth2Each column is stretched equally.
none0Stretching is disabled.
spacingWidth1The spacing between each column is stretched.
spacingWidthUniform3The spacing between each column is uniformly stretched..

Constant Value: 16843030 (0x01010116)

strokeAlpha

Added in API level 21
public static final int strokeAlpha

The opacity of a path stroke, as a value between 0 (completely transparent) and 1 (completely opaque).

May be a floating point value, such as "1.2".

Constant Value: 16843979 (0x010104cb)

strokeColor

Added in API level 21
public static final int strokeColor

The color to stroke the path if not defined implies no stroke.

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

Constant Value: 16843782 (0x01010406)

strokeLineCap

Added in API level 21
public static final int strokeLineCap

sets the linecap for a stroked path.

Must be one of the following constant values.

ConstantValueDescription
butt0
round1
square2

Constant Value: 16843787 (0x0101040b)

strokeLineJoin

Added in API level 21
public static final int strokeLineJoin

sets the lineJoin for a stroked path.

Must be one of the following constant values.

ConstantValueDescription
bevel2
miter0
round1

Constant Value: 16843788 (0x0101040c)

strokeMiterLimit

Added in API level 21
public static final int strokeMiterLimit

sets the Miter limit for a stroked path.

May be a floating point value, such as "1.2".

Constant Value: 16843789 (0x0101040d)

strokeWidth

Added in API level 21
public static final int strokeWidth

The width a path stroke.

May be a floating point value, such as "1.2".

Constant Value: 16843783 (0x01010407)

stylusHandwritingSettingsActivity

Added in API level 34
public static final int stylusHandwritingSettingsActivity

Class name of an activity that allows the user to modify the stylus handwriting settings for this service

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

Constant Value: 16844420 (0x01010684)

Added in API level 24
public static final int subMenuArrow

Drawable for the arrow icon indicating a particular item is a submenu.

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

Constant Value: 16844019 (0x010104f3)

submitBackground

Added in API level 21
public static final int submitBackground

Background for the section containing the action (for example, voice search).

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

Constant Value: 16843912 (0x01010488)

subtitle

Added in API level 11
public static final int subtitle

Specifies subtitle text used for navigationMode="normal".

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

Constant Value: 16843473 (0x010102d1)

subtitleTextAppearance

Added in API level 21
public static final int subtitleTextAppearance

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

Constant Value: 16843823 (0x0101042f)

subtitleTextColor

Added in API level 23
public static final int subtitleTextColor

A color to apply to the subtitle string.

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

Constant Value: 16844004 (0x010104e4)

subtitleTextStyle

Added in API level 11
public static final int subtitleTextStyle

Specifies a style to use for subtitle text.

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

Constant Value: 16843513 (0x010102f9)

subtypeExtraValue

Added in API level 14
public static final int subtypeExtraValue

The extra value of the subtype. This string can be any string and will be passed to the SpellChecker.

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

Constant Value: 16843674 (0x0101039a)

subtypeId

Added in API level 17
public static final int subtypeId

The unique id for the subtype. The input method framework keeps track of enabled subtypes by ID. When the IME package gets upgraded, enabled IDs will stay enabled even if other attributes are different. If the ID is unspecified (by calling the other constructor or 0. Arrays.hashCode(new Object[] {locale, mode, extraValue, isAuxiliary, overridesImplicitlyEnabledSubtype}) will be used instead.

May be an integer value, such as "100".

Constant Value: 16843713 (0x010103c1)

subtypeLocale

Added in API level 14
public static final int subtypeLocale

The locale of the subtype. This string should be a locale (for example, en_US and fr_FR). This is also used by the framework to know the supported locales of the spell checker. SpellCheckerSubtype.getLocale() returns the value specified in this attribute.

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

Constant Value: 16843673 (0x01010399)

suggestActionMsg

Added in API level 1
public static final 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. If all of your suggestions can handle the action key, you can simply define the action message using this attribute. This will be added to the ACTION_SEARCH intent that is passed to your searchable activity. To examine the string, use getStringExtra(SearchManager.ACTION_MSG). Optional attribute.

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

Constant Value: 16843228 (0x010101dc)

suggestActionMsgColumn

Added in API level 1
public static final 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. First, you must define a column (and name it here) where your suggestions will include the action string. Then, in your content provider, you must provide this column, and when desired, provide data in this column. The search manager will look at your suggestion cursor, using the string provided here in order to select a column, and will use that to select a string from the cursor. That string will be added to the 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.

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

Constant Value: 16843229 (0x010101dd)

suggestionRowLayout

Added in API level 21
public static final int suggestionRowLayout

Layout for query suggestion rows.

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

Constant Value: 16843910 (0x01010486)

summary

Added in API level 1
public static final int summary

The summary for the item.

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

Constant Value: 16843241 (0x010101e9)

summaryColumn

Added in API level 5
public static final int summaryColumn

Column in data table that summarizes this data.

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

Constant Value: 16843426 (0x010102a2)

summaryOff

Added in API level 1
public static final int summaryOff

The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is unchecked. If separate on/off summaries are not needed, the summary attribute can be used instead.

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

Constant Value: 16843248 (0x010101f0)

summaryOn

Added in API level 1
public static final int summaryOn

The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is checked. If separate on/off summaries are not needed, the summary attribute can be used instead.

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

Constant Value: 16843247 (0x010101ef)

supportedTypes

Added in API level 33
public static final int supportedTypes

The interactive app types that the TV interactive app service supports. Reference to a string array resource that describes the supported types, e.g. HbbTv, Ginga.

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

Constant Value: 16844369 (0x01010651)

supportsAssist

Added in API level 23
public static final int supportsAssist

Flag indicating whether this voice interaction service is capable of handling the assist action.

May be a boolean value, such as "true" or "false".

Constant Value: 16844016 (0x010104f0)

supportsBatteryGameMode

Added in API level 33
public static final int supportsBatteryGameMode

Set true to opt in BATTERY mode.

May be a boolean value, such as "true" or "false".

Constant Value: 16844374 (0x01010656)

supportsConnectionlessStylusHandwriting

Added in API level 35
public static final int supportsConnectionlessStylusHandwriting

Specifies whether the IME supports connectionless stylus handwriting sessions. A connectionless session differs from a regular session in that the IME does not use an input connection to communicate with a text editor. Instead, the IME directly returns recognised handwritten text via an InputMethodService handwriting lifecycle API.

If the IME supports connectionless sessions, apps or framework may start a connectionless session when a stylus motion event sequence begins. InputMethodService.onStartConnectionlessStylusHandwriting(int, CursorAnchorInfo) is called. If the IME is ready for stylus input, it should return {code true} to start the basic mode session. As in the regular session, the IME will receive stylus motion events to the stylus handwriting window and should render ink to a view in this window. When the user has stopped handwriting, the IME should end the session and deliver the result by calling InputMethodService.finishConnectionlessStylusHandwriting(CharSequence). The default value is {code false}. If {code true}, supportsStylusHandwriting should also be {code true}.

May be a boolean value, such as "true" or "false".

Constant Value: 16844447 (0x0101069f)

supportsInlineSuggestions

Added in API level 30
public static final int supportsInlineSuggestions

Specifies whether the AutofillService supports inline suggestions

May be a boolean value, such as "true" or "false".

Constant Value: 16844301 (0x0101060d)

supportsInlineSuggestionsWithTouchExploration

Added in API level 33
public static final int supportsInlineSuggestionsWithTouchExploration

Specifies whether the IME supports showing inline suggestions when touch exploration is enabled. This does nothing if supportsInlineSuggestions is false. The default value is false and most IMEs should not set this to true since the older menu-style Autofill works better with touch exploration. This attribute should be set to true in special situations, such as if this is an accessibility-focused IME which blocks user interaction with the app window while the IME is displayed.

May be a boolean value, such as "true" or "false".

Constant Value: 16844397 (0x0101066d)

supportsLaunchVoiceAssistFromKeyguard

Added in API level 23
public static final int supportsLaunchVoiceAssistFromKeyguard

Flag indicating whether this voice interaction service is capable of being launched from the keyguard.

May be a boolean value, such as "true" or "false".

Constant Value: 16844017 (0x010104f1)

supportsLocalInteraction

Added in API level 24
public static final int supportsLocalInteraction

Flag indicating whether this voice interaction service can handle local voice interaction requests from an Activity. This flag is new in Build.VERSION_CODES.N and not used in previous versions.

May be a boolean value, such as "true" or "false".

Constant Value: 16844047 (0x0101050f)

supportsMultipleDisplays

Added in API level 29
public static final int supportsMultipleDisplays

Indicates that this wallpaper service can support multiple engines to render on each surface independently. An example use case is a multi-display set-up where the wallpaper service can render surfaces to each of the connected displays. Corresponds to WallpaperInfo.supportsMultipleDisplays()

May be a boolean value, such as "true" or "false".

Constant Value: 16844182 (0x01010596)

supportsPerformanceGameMode

Added in API level 33
public static final int supportsPerformanceGameMode

Set true to opt in PERFORMANCE mode.

May be a boolean value, such as "true" or "false".

Constant Value: 16844375 (0x01010657)

supportsPictureInPicture

Added in API level 24
public static final int supportsPictureInPicture

Indicates that the activity specifically supports the picture-in-picture form of multi-window. If true, this activity will support entering picture-in-picture, but will only support split-screen and other forms of multi-window if resizeableActivity is also set to true. Note that your activity may still be resized even if this attribute is true and resizeableActivity is false.

The default value is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16844023 (0x010104f7)

supportsRtl

Added in API level 17
public static final int supportsRtl

Declare that your application will be able to deal with RTL (right to left) layouts. The default value is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16843695 (0x010103af)

supportsStylusHandwriting

Added in API level 33
public static final int supportsStylusHandwriting

Specifies whether the IME supports Handwriting using stylus. Defaults to false. When IME implements support for stylus handwriting, on every ACTION_DOWN with stylus on an editor, InputMethodService.onStartStylusHandwriting() is called. If IME is ready for stylus input, it must return true for Handwriting sessions to start. IME should attach it's View that renders Ink on screen to stylus handwriting inking window InputMethodService.getStylusHandwritingWindow(). IME will then receive Stylus MotionEvent(s) on DecorView i.e. the Inking view View.onTouchEvent(MotionEvent) attached by IME to Ink window. Handwriting mode can be finished by calling InputMethodService.finishStylusHandwriting() or will be finished by framework on next InputMethodService.onFinishInput().

May be a boolean value, such as "true" or "false".

Constant Value: 16844371 (0x01010653)

supportsSwitchingToNextInputMethod

Added in API level 19
public static final int supportsSwitchingToNextInputMethod

Set to true if this input method supports ways to switch to a next input method (for example, a globe key.). When this is true and InputMethodManager#shouldOfferSwitchingToNextInputMethod() returns true, the IME has to offer ways to invoke InputMethodManager#switchToNextInputMethod() accordingly.

Note that the system determines the most appropriate next input method and subtype in order to provide the consistent user experience in switching between IMEs and subtypes.

May be a boolean value, such as "true" or "false".

Constant Value: 16843755 (0x010103eb)

supportsUploading

Added in API level 5
public static final int supportsUploading

May be a boolean value, such as "true" or "false".

Constant Value: 16843419 (0x0101029b)

suppressesSpellChecker

Added in API level 31
public static final int suppressesSpellChecker

Specifies whether the IME suppresses system spell checker. The default value is false. If an IME sets this attribute to true, the system spell checker will be disabled while the IME has an active input session.

May be a boolean value, such as "true" or "false".

Constant Value: 16844355 (0x01010643)

switchMinWidth

Added in API level 14
public static final int switchMinWidth

Minimum width for the switch component.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843632 (0x01010370)

switchPadding

Added in API level 14
public static final int switchPadding

Minimum space between the switch and caption text.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843633 (0x01010371)

switchPreferenceStyle

Added in API level 14
public static final int switchPreferenceStyle

Default style for switch preferences.

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

Constant Value: 16843629 (0x0101036d)

switchStyle

Added in API level 21
public static final int switchStyle

Default style for the Switch widget.

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

Constant Value: 16843839 (0x0101043f)

switchTextAppearance

Added in API level 14
public static final int switchTextAppearance

TextAppearance style for text displayed on the switch thumb.

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

Constant Value: 16843630 (0x0101036e)

switchTextOff

Added in API level 14
public static final int switchTextOff

The text used on the switch itself when in the "off" state. This should be a very SHORT string, as it appears in a small space.

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

Constant Value: 16843628 (0x0101036c)

switchTextOn

Added in API level 14
public static final int switchTextOn

The text used on the switch itself when in the "on" state. This should be a very SHORT string, as it appears in a small space.

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

Constant Value: 16843627 (0x0101036b)

syncable

Added in API level 1
public static final int syncable

Flag indicating whether this content provider would like to participate in data synchronization.

May be a boolean value, such as "true" or "false".

Constant Value: 16842777 (0x01010019)

systemUserOnly

Added in API level 35
public static final int systemUserOnly

If set to true, only a single instance of this component will run and be available for the SYSTEM user. Non SYSTEM users will not be allowed to access the component if this flag is enabled. This flag can be used with services, receivers, providers and activities.

May be a boolean value, such as "true" or "false".

Constant Value: 16844429 (0x0101068d)

tabStripEnabled

Added in API level 8
public static final int tabStripEnabled

Determines whether the strip under the tab indicators is drawn or not.

May be a boolean value, such as "true" or "false".

Constant Value: 16843453 (0x010102bd)

tabStripLeft

Added in API level 8
public static final int tabStripLeft

Drawable used to draw the left part of the strip underneath the tabs.

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

Constant Value: 16843451 (0x010102bb)

tabStripRight

Added in API level 8
public static final int tabStripRight

Drawable used to draw the right part of the strip underneath the tabs.

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

Constant Value: 16843452 (0x010102bc)

tabWidgetStyle

Added in API level 1
public static final int tabWidgetStyle

Default TabWidget style.

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

Constant Value: 16842883 (0x01010083)

tag

Added in API level 1
public static final int tag

Supply a tag for this view containing a String, to be retrieved later with 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.

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

Constant Value: 16842961 (0x010100d1)

targetActivity

Added in API level 1
public static final int targetActivity

Fully qualified class name of an activity that allows the user to view their entire wallet

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

Constant Value: 16843266 (0x01010202)

targetCellHeight

Added in API level 31
public static final int targetCellHeight

Default height of the AppWidget in units of launcher grid cells.

May be an integer value, such as "100".

Constant Value: 16844341 (0x01010635)

targetCellWidth

Added in API level 31
public static final int targetCellWidth

Default width of the AppWidget in units of launcher grid cells.

May be an integer value, such as "100".

Constant Value: 16844340 (0x01010634)

targetClass

Added in API level 1
public static final int targetClass

The class part of the ComponentName to assign to the Intent, as per Intent.setComponent().

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

Constant Value: 16842799 (0x0101002f)

targetDescriptions

Added in API level 14
Deprecated in API level 23
public static final int targetDescriptions

This constant was deprecated in API level 23.
Removed. Reference to an array resource that be used as description for the targets around the circle.

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

Constant Value: 16843680 (0x010103a0)

targetId

Added in API level 19
public static final int targetId

The id of a target on which this transition will animate changes.

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

Constant Value: 16843740 (0x010103dc)

targetName

Added in API level 21
public static final int targetName

The transitionName of the target on which this transition will animation changes.

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

Constant Value: 16843853 (0x0101044d)

targetPackage

Added in API level 1
public static final int targetPackage

The name of the application package that an Instrumentation object will run against.

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

Constant Value: 16842785 (0x01010021)

targetProcesses

Added in API level 26
public static final int targetProcesses

The name of an application's processes that an Instrumentation object will run against. If not specified, only runs in the main process of the targetPackage. Can either be a comma-separated list of process names or '*' for any process that launches to run targetPackage code.

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

Constant Value: 16844097 (0x01010541)

targetSandboxVersion

Added in API level 26
Deprecated in API level 29
public static final int targetSandboxVersion

This constant was deprecated in API level 29.
The security properties have been moved to Build.VERSION 27 and 28.

May be an integer value, such as "100".

Specifies the target sandbox this app wants to use. Higher sandbox versions will have increasing levels of security.

The default value of this attribute is 1.

Constant Value: 16844108 (0x0101054c)

targetSdkVersion

Added in API level 4
public static final int targetSdkVersion

This is the SDK version number that the application is targeting. It is able to run on older versions (down to minSdkVersion), but was explicitly tested to work with the version specified here. Specifying this version allows the platform to disable compatibility code that are not required or enable newer features that are not available to older applications. This may also be a string (such as "Donut") if this is built against a development branch, in which case minSdkVersion is also forced to be that string.

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

Constant Value: 16843376 (0x01010270)

taskAffinity

Added in API level 1
public static final int taskAffinity

Specify a task name that activities have an "affinity" to. Use with the application tag (to supply a default affinity for all activities in the application), or with the activity tag (to supply a specific affinity for that component).

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.

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

Constant Value: 16842770 (0x01010012)

taskCloseEnterAnimation

Added in API level 1
public static final int taskCloseEnterAnimation

When closing the last activity of a task, this is the animation that is run on the activity of the next task (which is entering the screen).

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

Constant Value: 16842942 (0x010100be)

taskCloseExitAnimation

Added in API level 1
public static final int taskCloseExitAnimation

When opening an activity in a new task, this is the animation that is run on the activity of the old task (which is exiting the screen).

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

Constant Value: 16842943 (0x010100bf)

taskOpenEnterAnimation

Added in API level 1
public static final int taskOpenEnterAnimation

When opening an activity in a new task, this is the animation that is run on the activity of the new task (which is entering the screen).

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

Constant Value: 16842940 (0x010100bc)

taskOpenExitAnimation

Added in API level 1
public static final int taskOpenExitAnimation

When opening an activity in a new task, this is the animation that is run on the activity of the old task (which is exiting the screen).

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

Constant Value: 16842941 (0x010100bd)

taskToBackEnterAnimation

Added in API level 1
public static final int taskToBackEnterAnimation

When sending the current task to the background, this is the animation that is run on the top activity of the task behind it (which is entering the screen).

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

Constant Value: 16842946 (0x010100c2)

taskToBackExitAnimation

Added in API level 1
public static final int taskToBackExitAnimation

When sending the current task to the background, this is the animation that is run on the top activity of the current task (which is exiting the screen).

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

Constant Value: 16842947 (0x010100c3)

taskToFrontEnterAnimation

Added in API level 1
public static final int taskToFrontEnterAnimation

When bringing an existing task to the foreground, this is the animation that is run on the top activity of the task being brought to the foreground (which is entering the screen).

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

Constant Value: 16842944 (0x010100c0)

taskToFrontExitAnimation

Added in API level 1
public static final int taskToFrontExitAnimation

When bringing an existing task to the foreground, this is the animation that is run on the current foreground activity (which is exiting the screen).

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

Constant Value: 16842945 (0x010100c1)

tension

Added in API level 4
public static final int tension

This is the amount of tension.

May be a floating point value, such as "1.2".

Constant Value: 16843370 (0x0101026a)

testOnly

Added in API level 4
public static final int testOnly

Option to indicate this application is only for testing purposes. For example, it may expose functionality or data outside of itself that would cause a security hole, but is useful for testing. This kind of application can not be installed without the INSTALL_ALLOW_TEST flag, which means only through adb install.

May be a boolean value, such as "true" or "false".

Constant Value: 16843378 (0x01010272)

text

Added in API level 1
public static final int text

Text to display.

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

Constant Value: 16843087 (0x0101014f)

textAlignment

Added in API level 17
public static final int textAlignment

Defines the alignment of the text.

May be an integer value, such as "100".

Must be one of the following constant values.

ConstantValueDescription
center4Center the paragraph, for example: ALIGN_CENTER.
gravity1Default for the root view. The gravity determines the alignment, ALIGN_NORMAL, ALIGN_CENTER, or ALIGN_OPPOSITE, which are relative to each paragraph\u2019s text direction.
inherit0Default.
textEnd3Align to the end of the paragraph, for example: ALIGN_OPPOSITE.
textStart2Align to the start of the paragraph, for example: ALIGN_NORMAL.
viewEnd6Align to the end of the view, which is ALIGN_RIGHT if the view\u2019s resolved layoutDirection is LTR, and ALIGN_LEFT otherwise.
viewStart5Align to the start of the view, which is ALIGN_LEFT if the view\u2019s resolved layoutDirection is LTR, and ALIGN_RIGHT otherwise.

Constant Value: 16843697 (0x010103b1)

textAllCaps

Added in API level 14
public static final int textAllCaps

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

May be a boolean value, such as "true" or "false".

Constant Value: 16843660 (0x0101038c)

textAppearance

Added in API level 1
public static final int textAppearance

Default appearance of text: color, typeface, size, and style.

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

Constant Value: 16842804 (0x01010034)

textAppearanceButton

Added in API level 1
public static final int textAppearanceButton

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

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

Constant Value: 16843271 (0x01010207)

textAppearanceInverse

Added in API level 1
public static final int textAppearanceInverse

Default appearance of text against an inverted background: color, typeface, size, and style.

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

Constant Value: 16842805 (0x01010035)

textAppearanceLarge

Added in API level 1
public static final int textAppearanceLarge

Text color, typeface, size, and style for "large" text. Defaults to primary text color.

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

Constant Value: 16842816 (0x01010040)

textAppearanceLargeInverse

Added in API level 1
public static final int textAppearanceLargeInverse

Text color, typeface, size, and style for "large" inverse text. Defaults to primary inverse text color.

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

Constant Value: 16842819 (0x01010043)

textAppearanceLargePopupMenu

Added in API level 11
public static final int textAppearanceLargePopupMenu

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

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

Constant Value: 16843521 (0x01010301)

textAppearanceListItem

Added in API level 14
public static final int textAppearanceListItem

The preferred TextAppearance for the primary text of list items.

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

Constant Value: 16843678 (0x0101039e)

textAppearanceListItemSecondary

Added in API level 21
public static final int textAppearanceListItemSecondary

The preferred TextAppearance for the secondary text of list items.

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

Constant Value: 16843826 (0x01010432)

textAppearanceListItemSmall

Added in API level 14
public static final int textAppearanceListItemSmall

The preferred TextAppearance for the primary text of small list items.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843679 (0x0101039f)

textAppearanceMedium

Added in API level 1
public static final int textAppearanceMedium

Text color, typeface, size, and style for "medium" text. Defaults to primary text color.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16842817 (0x01010041)

textAppearanceMediumInverse

Added in API level 1
public static final int textAppearanceMediumInverse

Text color, typeface, size, and style for "medium" inverse text. Defaults to primary inverse text color.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16842820 (0x01010044)

textAppearancePopupMenuHeader

Added in API level 24
public static final int textAppearancePopupMenuHeader

Text color, typeface, size, and style for header text inside of a popup menu.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16844034 (0x01010502)

textAppearanceSearchResultSubtitle

Added in API level 5
public static final int textAppearanceSearchResultSubtitle

Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843424 (0x010102a0)

textAppearanceSearchResultTitle

Added in API level 5
public static final int textAppearanceSearchResultTitle

Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843425 (0x010102a1)

textAppearanceSmall

Added in API level 1
public static final int textAppearanceSmall

Text color, typeface, size, and style for "small" text. Defaults to secondary text color.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16842818 (0x01010042)

textAppearanceSmallInverse

Added in API level 1
public static final int textAppearanceSmallInverse

Text color, typeface, size, and style for "small" inverse text. Defaults to secondary inverse text color.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16842821 (0x01010045)

textAppearanceSmallPopupMenu

Added in API level 11
public static final int textAppearanceSmallPopupMenu

Text color, typeface, size, and style for small text inside of a popup menu.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843522 (0x01010302)

textCheckMark

Added in API level 1
public static final int textCheckMark

Drawable to use for check marks.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16842822 (0x01010046)

textCheckMarkInverse

Added in API level 1
public static final int textCheckMarkInverse

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16842823 (0x01010047)

textColor

Added in API level 1
public static final int textColor

Color of text (usually same as colorForeground).

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16842904 (0x01010098)

textColorAlertDialogListItem

Added in API level 11
public static final int textColorAlertDialogListItem

Color of list item text in alert dialogs.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16843526 (0x01010306)

textColorHighlight

Added in API level 1
public static final int textColorHighlight

Color of highlighted text.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16842905 (0x01010099)

textColorHighlightInverse

Added in API level 11
public static final int textColorHighlightInverse

Color of highlighted text, when used in a light theme.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16843599 (0x0101034f)

textColorHint

Added in API level 1
public static final int textColorHint

Color of hint text (displayed when the field is empty).

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16842906 (0x0101009a)

textColorHintInverse

Added in API level 1
public static final int textColorHintInverse

Inverse hint text color.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16842815 (0x0101003f)

Added in API level 1
public static final int textColorLink

Color of link text (URLs).

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16842907 (0x0101009b)

textColorLinkInverse

Added in API level 11
public static final int textColorLinkInverse

Color of link text (URLs), when used in a light theme.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16843600 (0x01010350)

textColorPrimary

Added in API level 1
public static final int textColorPrimary

The most prominent text color.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16842806 (0x01010036)

textColorPrimaryDisableOnly

Added in API level 1
public static final int textColorPrimaryDisableOnly

Bright text color. Only differentiates based on the disabled state.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16842807 (0x01010037)

textColorPrimaryInverse

Added in API level 1
public static final int textColorPrimaryInverse

Primary inverse text color, useful for inverted backgrounds.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16842809 (0x01010039)

textColorPrimaryInverseDisableOnly

Added in API level 4
public static final int textColorPrimaryInverseDisableOnly

Bright inverse text color. Only differentiates based on the disabled state.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16843403 (0x0101028b)

textColorPrimaryInverseNoDisable

Added in API level 1
public static final int textColorPrimaryInverseNoDisable

Bright inverse text color. This does not differentiate the disabled state.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16842813 (0x0101003d)

textColorPrimaryNoDisable

Added in API level 1
public static final int textColorPrimaryNoDisable

Bright text color. This does not differentiate the disabled state. As an example, buttons use this since they display the disabled state via the background and not the foreground text color.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16842811 (0x0101003b)

textColorSecondary

Added in API level 1
public static final int textColorSecondary

Secondary text color.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16842808 (0x01010038)

textColorSecondaryInverse

Added in API level 1
public static final int textColorSecondaryInverse

Secondary inverse text color, useful for inverted backgrounds.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16842810 (0x0101003a)

textColorSecondaryInverseNoDisable

Added in API level 1
public static final int textColorSecondaryInverseNoDisable

Dim inverse text color. This does not differentiate the disabled state.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16842814 (0x0101003e)

textColorSecondaryNoDisable

Added in API level 1
public static final int textColorSecondaryNoDisable

Dim text color. This does not differentiate the disabled state.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16842812 (0x0101003c)

textColorTertiary

Added in API level 1
public static final int textColorTertiary

Tertiary text color.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16843282 (0x01010212)

textColorTertiaryInverse

Added in API level 1
public static final int textColorTertiaryInverse

Tertiary inverse text color, useful for inverted backgrounds.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16843283 (0x01010213)

textCursorDrawable

Added in API level 12
public static final int textCursorDrawable

Reference to a drawable that will be drawn under the insertion cursor.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843618 (0x01010362)

textDirection

Added in API level 17
public static final int textDirection

Defines the direction of the text.

May be an integer value, such as "100".

Must be one of the following constant values.

ConstantValueDescription
anyRtl2The paragraph direction is RTL if it contains any strong RTL character, otherwise it is LTR if it contains any strong LTR characters. If there are neither, the paragraph direction is the view\u2019s resolved layout direction.
firstStrong1Default for the root view. The first strong directional character determines the paragraph direction. If there is no strong directional character, the paragraph direction is the view\u2019s resolved layout direction.
firstStrongLtr6The first strong directional character determines the paragraph direction. If there is no strong directional character, the paragraph direction is LTR.
firstStrongRtl7The first strong directional character determines the paragraph direction. If there is no strong directional character, the paragraph direction is RTL.
inherit0Default.
locale5The paragraph direction is coming from the system Locale.
ltr3The paragraph direction is left to right.
rtl4The paragraph direction is right to left.

Constant Value: 16843696 (0x010103b0)

textEditNoPasteWindowLayout

Added in API level 11
public static final int textEditNoPasteWindowLayout

Variation of textEditPasteWindowLayout displayed when the clipboard is empty.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843541 (0x01010315)

textEditPasteWindowLayout

Added in API level 11
public static final int textEditPasteWindowLayout

The layout of the view that is displayed on top of the cursor to paste inside a TextEdit field.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843540 (0x01010314)

textEditSideNoPasteWindowLayout

Added in API level 11
public static final int textEditSideNoPasteWindowLayout

Variation of textEditSidePasteWindowLayout displayed when the clipboard is empty.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843615 (0x0101035f)

textEditSidePasteWindowLayout

Added in API level 11
public static final int textEditSidePasteWindowLayout

Used instead of textEditPasteWindowLayout when the window is moved on the side of the insertion cursor because it would be clipped if it were positioned on top.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843614 (0x0101035e)

textEditSuggestionItemLayout

Added in API level 14
public static final int textEditSuggestionItemLayout

Layout of the TextView item that will populate the suggestion popup window.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843636 (0x01010374)

textFilterEnabled

Added in API level 1
public static final int textFilterEnabled

When set to true, the list will filter results as the user types. The List's adapter must support the Filterable interface for this to work.

May be a boolean value, such as "true" or "false".

Constant Value: 16843007 (0x010100ff)

textFontWeight

Added in API level 28
public static final int textFontWeight

Weight for the font used in the TextView.

May be an integer value, such as "100".

Constant Value: 16844165 (0x01010585)

textIsSelectable

Added in API level 11
public static final int textIsSelectable

Indicates that the content of a non-editable TextView can be selected. Default value is false. EditText content is always selectable.

May be a boolean value, such as "true" or "false".

Constant Value: 16843542 (0x01010316)

textLocale

Added in API level 29
public static final int textLocale

Specifies the LocaleList for the text in this TextView. If not given, the system default will be used. May be a string value, which is a comma-separated language tag list, such as "ja-JP,zh-CN". When not specified or an empty string is given, it will fallback to the default one.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Constant Value: 16844178 (0x01010592)

textOff

Added in API level 1
public static final int textOff

The text for the button when it is not checked.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Constant Value: 16843045 (0x01010125)

textOn

Added in API level 1
public static final int textOn

The text for the button when it is checked.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Constant Value: 16843044 (0x01010124)

textScaleX

Added in API level 1
public static final int textScaleX

Sets the horizontal scaling factor for the text.

May be a floating point value, such as "1.2".

Constant Value: 16843089 (0x01010151)

textSelectHandle

Added in API level 9
public static final int textSelectHandle

Reference to a drawable that will be used to display a text selection anchor for positioning the cursor within text.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843463 (0x010102c7)

textSelectHandleLeft

Added in API level 9
public static final int textSelectHandleLeft

Reference to a drawable that will be used to display a text selection anchor on the left side of a selection region.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843461 (0x010102c5)

textSelectHandleRight

Added in API level 9
public static final int textSelectHandleRight

Reference to a drawable that will be used to display a text selection anchor on the right side of a selection region.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843462 (0x010102c6)

textSelectHandleWindowStyle

Added in API level 9
public static final int textSelectHandleWindowStyle

Reference to a style that will be used for the window containing a text selection anchor.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843464 (0x010102c8)

textSize

Added in API level 1
public static final int textSize

Size of text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). Supported values include the following:

  • px Pixels
  • sp Scaled pixels (scaled to relative pixel size on screen). See DisplayMetrics for more information.
  • pt Points
  • dip Device independent pixels. See DisplayMetrics for more information.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842901 (0x01010095)

textStyle

Added in API level 1
public static final int textStyle

Default text typeface style.

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
bold1
italic2
normal0

Constant Value: 16842903 (0x01010097)

textSuggestionsWindowStyle

Added in API level 14
public static final int textSuggestionsWindowStyle

Reference to a style that will be used for the window containing a list of possible text suggestions in an EditText.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843635 (0x01010373)

textViewStyle

Added in API level 1
public static final int textViewStyle

Default TextView style.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16842884 (0x01010084)

theme

Added in API level 1
public static final int theme

The overall theme to use for an activity. Use with either the application tag (to supply a default theme for all activities) or the activity tag (to supply a specific theme for that activity).

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.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16842752 (0x01010000)

thickness

Added in API level 3
public static final int thickness

Thickness of the ring. When defined, thicknessRatio is ignored.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843360 (0x01010260)

thicknessRatio

Added in API level 1
public static final int thicknessRatio

Thickness of the ring expressed as a ratio of the ring's width. For instance, if thicknessRatio=3, then the thickness equals the ring's width divided by 3. This value is ignored if innerRadius is defined. Default value is 3.

May be a floating point value, such as "1.2".

Constant Value: 16843164 (0x0101019c)

thumb

Added in API level 1
public static final int thumb

Draws the thumb on a seekbar.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843074 (0x01010142)

thumbOffset

Added in API level 1
public static final int thumbOffset

An offset for the thumb that allows it to extend out of the range of the track.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843075 (0x01010143)

thumbPosition

Added in API level 23
public static final int thumbPosition

Position of thumb in relation to the track.

Must be one of the following constant values.

ConstantValueDescription
inside1The thumb is entirely inside the track. At its extremes, the thumb will be contained entirely within the track.
midpoint0The thumb's midpoint is anchored to the track. At its extremes, the thumb will extend half-way outside the track.

Constant Value: 16844005 (0x010104e5)

thumbTextPadding

Added in API level 14
public static final int thumbTextPadding

Amount of padding on either side of text within the switch thumb.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843634 (0x01010372)

thumbTint

Added in API level 21
public static final int thumbTint

Tint to apply to the thumb drawable.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16843889 (0x01010471)

thumbTintMode

Added in API level 21
public static final int thumbTintMode

Blending mode used to apply the thumb tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable\u2019s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable\u2019s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

Constant Value: 16843890 (0x01010472)

thumbnail

Added in API level 5
public static final int thumbnail

Reference to the wallpaper's thumbnail bitmap.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843429 (0x010102a5)

tickMark

Added in API level 24
public static final int tickMark

Drawable displayed at each progress position on a seekbar.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16844042 (0x0101050a)

tickMarkTint

Added in API level 24
public static final int tickMarkTint

Tint to apply to the tick mark drawable.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16844043 (0x0101050b)

tickMarkTintMode

Added in API level 24
public static final int tickMarkTintMode

Blending mode used to apply the tick mark tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable\u2019s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable\u2019s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

Constant Value: 16844044 (0x0101050c)

tileMode

Added in API level 1
public static final int tileMode

Defines the tile mode. When the tile mode is enabled, the bitmap is repeated. Gravity is ignored when the tile mode is enabled. Default value is "disabled".

Must be one of the following constant values.

ConstantValueDescription
clamp0Replicates the edge color.
disabledffffffffDo not tile the bitmap. This is the default value.
mirror2Repeats the shader's image horizontally and vertically, alternating mirror images so that adjacent images always seam.
repeat1Repeats the bitmap in both direction.

Constant Value: 16843265 (0x01010201)

tileModeX

Added in API level 21
public static final int tileModeX

Defines the horizontal tile mode. When the tile mode is enabled, the bitmap is repeated. Gravity is ignored when the tile mode is enabled. Default value is "disabled".

Must be one of the following constant values.

ConstantValueDescription
clamp0Replicates the edge color.
disabledffffffffDo not tile the bitmap. This is the default value.
mirror2Repeats the shader's image horizontally, alternating mirror images so that adjacent images always seam.
repeat1Repeats the bitmap horizontally.

Constant Value: 16843895 (0x01010477)

tileModeY

Added in API level 21
public static final int tileModeY

Defines the vertical tile mode. When the tile mode is enabled, the bitmap is repeated. Gravity is ignored when the tile mode is enabled. Default value is "disabled".

Must be one of the following constant values.

ConstantValueDescription
clamp0Replicates the edge color.
disabledffffffffDo not tile the bitmap. This is the default value.
mirror2Repeats the shader's image vertically, alternating mirror images so that adjacent images always seam.
repeat1Repeats the bitmap vertically.

Constant Value: 16843896 (0x01010478)

tileService

Added in API level 33
public static final int tileService

Fully qualified class name of TileService is associated with this accessibility shortcut target for one to one mapping. It is used by system settings to remind users this accessibility service has a TileService.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Constant Value: 16844391 (0x01010667)

timePickerDialogTheme

Added in API level 21
public static final int timePickerDialogTheme

The TimePicker dialog theme.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843934 (0x0101049e)

timePickerMode

Added in API level 21
public static final int timePickerMode

Defines the look of the widget. Prior to the L release, the only choice was spinner. As of L, with the Material theme selected, the default layout is clock, but this attribute can be used to force spinner to be used instead.

Must be one of the following constant values.

ConstantValueDescription
clock2Time picker with clock face to select the time.
spinner1Time picker with spinner controls to select the time.

Constant Value: 16843956 (0x010104b4)

timePickerStyle

Added in API level 21
public static final int timePickerStyle

The TimePicker style.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843933 (0x0101049d)

timeZone

Added in API level 17
public static final int timeZone

Specifies the time zone to use. When this attribute is specified, the TextClock will ignore the time zone of the system. To use the user's time zone, do not specify this attribute. The default value is the user's time zone. Please refer to TimeZone for more information about time zone ids.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Constant Value: 16843724 (0x010103cc)

tint

Added in API level 1
public static final int tint

The tinting color for the image. By default, the tint will blend using SRC_ATOP mode. Please note that for compatibility reasons, this is NOT consistent with the default SRC_IN tint mode used by ImageView.setImageTintList(ColorStateList) and by similar tint attributes on other views.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16843041 (0x01010121)

tintMode

Added in API level 21
public static final int tintMode

When a tint color is set, specifies its Porter-Duff blending mode. The default value is src_in, which treats the drawable as an alpha mask.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable\u2019s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable\u2019s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

Constant Value: 16843771 (0x010103fb)

title

Added in API level 1
public static final int title

The title associated with the item.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Constant Value: 16843233 (0x010101e1)

titleCondensed

Added in API level 1
public static final int titleCondensed

The condensed title associated with the item. This is used in situations where the normal title may be too long to be displayed.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Constant Value: 16843234 (0x010101e2)

titleMargin

Added in API level 24
public static final int titleMargin

Specifies extra space on the left, start, right and end sides of the toolbar's title. Margin values should be positive.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844024 (0x010104f8)

titleMarginBottom

Added in API level 24
public static final int titleMarginBottom

Specifies extra space on the bottom side of the toolbar's title. If both this attribute and titleMargin are specified, then this attribute takes precedence. Margin values should be positive.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844028 (0x010104fc)

titleMarginEnd

Added in API level 24
public static final int titleMarginEnd

Specifies extra space on the end side of the toolbar's title. If both this attribute and titleMargin are specified, then this attribute takes precedence. Margin values should be positive.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844026 (0x010104fa)

titleMarginStart

Added in API level 24
public static final int titleMarginStart

Specifies extra space on the start side of the toolbar's title. If both this attribute and titleMargin are specified, then this attribute takes precedence. Margin values should be positive.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844025 (0x010104f9)

titleMarginTop

Added in API level 24
public static final int titleMarginTop

Specifies extra space on the top side of the toolbar's title. If both this attribute and titleMargin are specified, then this attribute takes precedence. Margin values should be positive.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844027 (0x010104fb)

titleTextAppearance

Added in API level 21
public static final int titleTextAppearance

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843822 (0x0101042e)

titleTextColor

Added in API level 23
public static final int titleTextColor

A color to apply to the title string.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16844003 (0x010104e3)

titleTextStyle

Added in API level 11
public static final int titleTextStyle

Specifies a style to use for title text.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843512 (0x010102f8)

toAlpha

Added in API level 1
public static final int toAlpha

May be a floating point value, such as "1.2".

Constant Value: 16843211 (0x010101cb)

toDegrees

Added in API level 1
public static final int toDegrees

May be a floating point value, such as "1.2".

Constant Value: 16843188 (0x010101b4)

toExtendBottom

Added in API level 33
public static final int toExtendBottom

Defines the amount a window should be extended outward from the bottom by the end of the animation by transitioning from the fromExtendBottom amount in an absolute dimension (interpreted as pixels if no dimension unit is provided) or as a percentage of the animation target's height.

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16844390 (0x01010666)

toExtendLeft

Added in API level 33
public static final int toExtendLeft

Defines the amount a window should be extended outward from the left by the end of the animation by transitioning from the fromExtendLeft amount in an absolute dimension (interpreted as pixels if no dimension unit is provided) or as a percentage of the animation target's width.

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16844387 (0x01010663)

toExtendRight

Added in API level 33
public static final int toExtendRight

Defines the amount a window should be extended outward from the right by the end of the animation by transitioning from the fromExtendRight amount in an absolute dimension (interpreted as pixels if no dimension unit is provided) or as a percentage of the animation target's width.

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16844389 (0x01010665)

toExtendTop

Added in API level 33
public static final int toExtendTop

Defines the amount a window should be extended outward from the top by the end of the animation by transitioning from the fromExtendTop amount in an absolute dimension (interpreted as pixels if no dimension unit is provided) or as a percentage of the animation target's height.

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16844388 (0x01010664)

toId

Added in API level 21
public static final int toId

Keyframe identifier for the ending state.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843849 (0x01010449)

toScene

Added in API level 19
public static final int toScene

The destination scene in this scene change.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843742 (0x010103de)

toXDelta

Added in API level 1
public static final int toXDelta

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16843207 (0x010101c7)

toXScale

Added in API level 1
public static final int toXScale

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16843203 (0x010101c3)

toYDelta

Added in API level 1
public static final int toYDelta

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16843209 (0x010101c9)

toYScale

Added in API level 1
public static final int toYScale

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16843205 (0x010101c5)

toolbarStyle

Added in API level 21
public static final int toolbarStyle

Default Toolbar style.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843946 (0x010104aa)

tooltipText

Added in API level 26
public static final int tooltipText

The tooltip text associated with the item.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Constant Value: 16844084 (0x01010534)

top

Added in API level 1
public static final int top

Amount of top padding inside the gradient shape.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843182 (0x010101ae)

topBright

Added in API level 1
public static final int topBright

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16842955 (0x010100cb)

topDark

Added in API level 1
public static final int topDark

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16842951 (0x010100c7)

topLeftRadius

Added in API level 1
public static final int topLeftRadius

Radius of the top left corner.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843177 (0x010101a9)

topOffset

Added in API level 3
public static final int topOffset

Extra offset for the handle at the top of the SlidingDrawer.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843352 (0x01010258)

topRightRadius

Added in API level 1
public static final int topRightRadius

Radius of the top right corner.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843178 (0x010101aa)

touchscreenBlocksFocus

Added in API level 21
public static final int touchscreenBlocksFocus

Set to true if this ViewGroup blocks focus in the presence of a touchscreen.

May be a boolean value, such as "true" or "false".

Constant Value: 16843919 (0x0101048f)

track

Added in API level 14
public static final int track

Drawable to use as the "track" that the switch thumb slides within.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843631 (0x0101036f)

trackTint

Added in API level 23
public static final int trackTint

Tint to apply to the track.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16843993 (0x010104d9)

trackTintMode

Added in API level 23
public static final int trackTintMode

Blending mode used to apply the track tint.

Must be one of the following constant values.

ConstantValueDescription
add10Combines the tint and drawable color and alpha channels, clamping the result to valid color values. Saturate(S + D)
multiplyeMultiplies the color and alpha channels of the drawable with those of the tint. [Sa * Da, Sc * Dc]
screenf[Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
src_atop9The tint is drawn above the drawable, but with the drawable\u2019s alpha channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc]
src_in5The tint is masked by the alpha channel of the drawable. The drawable\u2019s color channels are thrown out. [Sa * Da, Sc * Da]
src_over3The tint is drawn on top of the drawable. [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc]

Constant Value: 16843994 (0x010104da)

transcriptMode

Added in API level 1
public static final int transcriptMode

Sets the transcript mode for the list. In transcript mode, the list scrolls to the bottom to make new items visible when they are added.

Must be one of the following constant values.

ConstantValueDescription
alwaysScroll2The list will automatically scroll to the bottom, no matter what items are currently visible.
disabled0Disables transcript mode. This is the default value.
normal1The 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.

Constant Value: 16843008 (0x01010100)

transformPivotX

Added in API level 11
public static final int transformPivotX

x location of the pivot point around which the view will rotate and scale. This xml attribute sets the pivotX property of the View.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843552 (0x01010320)

transformPivotY

Added in API level 11
public static final int transformPivotY

y location of the pivot point around which the view will rotate and scale. This xml attribute sets the pivotY property of the View.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843553 (0x01010321)

transition

Added in API level 19
public static final int transition

The id of a transition to be used in a particular scene change.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843743 (0x010103df)

transitionGroup

Added in API level 21
public static final int transitionGroup

Sets whether or not this ViewGroup should be treated as a single entity when doing an Activity transition. Typically, the elements inside a ViewGroup are each transitioned from the scene individually. The default for a ViewGroup is false unless it has a background. See ActivityOptions.makeSceneTransitionAnimation(android.app.Activity, android.view.View, String) for more information. Corresponds to ViewGroup.setTransitionGroup(boolean).

May be a boolean value, such as "true" or "false".

Constant Value: 16843777 (0x01010401)

transitionName

Added in API level 21
public static final int transitionName

Names a View such that it can be identified for Transitions. Names should be unique in the View hierarchy.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Constant Value: 16843776 (0x01010400)

transitionOrdering

Added in API level 19
public static final int transitionOrdering

Must be one of the following constant values.

ConstantValueDescription
sequential1child transitions should be played sequentially, in the same order as the xml.
together0child transitions should be played together.

Constant Value: 16843744 (0x010103e0)

transitionVisibilityMode

Added in API level 21
public static final int transitionVisibilityMode

Changes whether the transition supports appearing and/or disappearing Views. Corresponds to Visibility.setMode(int).

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
mode_in1Only appearing Views will be supported.
mode_out2Only disappearing Views will be supported.

Constant Value: 16843900 (0x0101047c)

translateX

Added in API level 21
public static final int translateX

The amount to translate the group on X coordinate.

May be a floating point value, such as "1.2".

Constant Value: 16843866 (0x0101045a)

translateY

Added in API level 21
public static final int translateY

The amount to translate the group on Y coordinate.

May be a floating point value, such as "1.2".

Constant Value: 16843867 (0x0101045b)

translationX

Added in API level 11
public static final int translationX

translation in x of the view. This value is added post-layout to the left property of the view, which is set by its layout.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843554 (0x01010322)

translationY

Added in API level 11
public static final int translationY

translation in y of the view. This value is added post-layout to the top property of the view, which is set by its layout.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843555 (0x01010323)

translationZ

Added in API level 21
public static final int translationZ

translation in z of the view. This value is added to its elevation.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843770 (0x010103fa)

trimPathEnd

Added in API level 21
public static final int trimPathEnd

The fraction of the path to trim from the end from 0 to 1 .

May be a floating point value, such as "1.2".

Constant Value: 16843785 (0x01010409)

trimPathOffset

Added in API level 21
public static final int trimPathOffset

Shift trim region (allows visible region to include the start and end) from 0 to 1.

May be a floating point value, such as "1.2".

Constant Value: 16843786 (0x0101040a)

trimPathStart

Added in API level 21
public static final int trimPathStart

The fraction of the path to trim from the start from 0 to 1.

May be a floating point value, such as "1.2".

Constant Value: 16843784 (0x01010408)

ttcIndex

Added in API level 28
public static final int ttcIndex

The index of the font in the ttc (TrueType Collection) font file. If the font file referenced is not in the ttc format, this attribute needs not be specified. Typeface.Builder.setTtcIndex(int). The default value is 0. More details about the TrueType Collection font format can be found here: https://en.wikipedia.org/wiki/TrueType#TrueType_Collection.

May be an integer value, such as "100".

Constant Value: 16844143 (0x0101056f)

tunerCount

Added in API level 24
public static final int tunerCount

The number of tuners that the TV input service is associated with. This value can be changed at runtime by calling TvInputManager.updateTvInputInfo(android.media.tv.TvInputInfo).

May be an integer value, such as "100".

Constant Value: 16844061 (0x0101051d)

turnScreenOn

Added in API level 27
public static final int turnScreenOn

Specifies whether the screen should be turned on when the Activity is resumed. Normally an activity will be transitioned to the stopped state if it is started while the screen if off, but with this flag set the activity will cause the screen to turn on if the activity will be visible and resumed due to the screen coming on. The screen will not be turned on if the activity won't be visible after the screen is turned on. This flag is normally used in conjunction with the showWhenLocked flag to make sure the activity is visible after the screen is turned on when the lockscreen is up. In addition, if this flag is set and the activity calls KeyguardManager.requestDismissKeyguard(Activity, KeyguardDismissCallback) the screen will turn on.

This should be used instead of WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON flag set for Windows. When using the Window flag during activity startup, there may not be time to add it before the system stops your activity because the screen has not yet turned on. This leads to a double life-cycle as it is then restarted.

May be a boolean value, such as "true" or "false".

Constant Value: 16844138 (0x0101056a)

type

Added in API level 1
public static final int type

Type of gradient. The default type is linear.

Must be one of the following constant values.

ConstantValueDescription
linear0Linear gradient extending across the center point.
radial1Radial gradient extending from the center point outward.
sweep2Sweep (or angular) gradient sweeping counter-clockwise around the center point.

Constant Value: 16843169 (0x010101a1)

typeface

Added in API level 1
public static final int typeface

Default text typeface.

Must be one of the following constant values.

ConstantValueDescription
monospace3
normal0
sans1
serif2

Constant Value: 16842902 (0x01010096)

uiOptions

Added in API level 14
public static final int uiOptions

Extra options for an activity's UI. Applies to either the <activity> or <application> tag. If specified on the <application> tag these will be considered defaults for all activities in the application.

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
none0No extra UI options. This is the default.
splitActionBarWhenNarrow1Split the options menu into a separate bar at the bottom of the screen when severely constrained for horizontal space. (e.g. portrait mode on a phone.) Instead of a small number of action buttons appearing in the action bar at the top of the screen, the action bar will split into the top navigation section and the bottom menu section. Menu items will not be split across the two bars; they will always appear together.

Constant Value: 16843672 (0x01010398)

uncertainGestureColor

Added in API level 4
public static final int uncertainGestureColor

Color used to draw the user's strokes until we are sure it's a gesture.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16843382 (0x01010276)

unfocusedMonthDateColor

Added in API level 11
Deprecated in API level 23
public static final int unfocusedMonthDateColor

This constant was deprecated in API level 23.
The color for the dates of an unfocused month.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16843588 (0x01010344)

unselectedAlpha

Added in API level 1
public static final int unselectedAlpha

Sets the alpha on the items that are not selected.

May be a floating point value, such as "1.2".

Constant Value: 16843278 (0x0101020e)

updatePeriodMillis

Added in API level 3
public static final int updatePeriodMillis

Update period in milliseconds, or 0 if the AppWidget will update itself.

May be an integer value, such as "100".

Constant Value: 16843344 (0x01010250)

use32bitAbi

Added in API level 24
public static final int use32bitAbi

Specify whether the 32 bit version of the ABI should be used in a multiArch application. If both abioverride flag (i.e. using abi option of abd install) and use32bitAbi are used, then use32bit is ignored.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

May be an integer value, such as "100".

May be a boolean value, such as "true" or "false".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16844053 (0x01010515)

useAppZygote

Added in API level 29
public static final int useAppZygote

If true, and this is an isolatedProcess service, the service will be spawned from an Application Zygote, instead of the regular Zygote.

The Application Zygote will first pre-initialize the application's class loader. Then, if the application has defined the zygotePreloadName attribute, the Application Zygote will call into that class to allow it to perform application-specific preloads (such as loading a shared library). Therefore, spawning from the Application Zygote will typically reduce the service launch time and reduce its memory usage. The downside of using this flag is that you will have an additional process (the app zygote itself) that is taking up memory. Whether actual memory usage is improved therefore strongly depends on the number of isolated services that an application starts, and how much memory those services save by preloading and sharing memory with the app zygote. Therefore, it is recommended to measure memory usage under typical workloads to determine whether it makes sense to use this flag.

There is a limit to the number of isolated services that can be spawned from the Application Zygote; the absolute limit is 100, but due to potential delays in service process cleanup, a much safer limit to use in practice is 50.

May be a boolean value, such as "true" or "false".

Constant Value: 16844183 (0x01010597)

useBoundsForWidth

Added in API level 35
public static final int useBoundsForWidth

May be a boolean value, such as "true" or "false".

Constant Value: 16844440 (0x01010698)

useDefaultMargins

Added in API level 14
public static final int useDefaultMargins

When set to true, tells GridLayout to use default margins when none are specified in a view's layout parameters. The default value is false. See GridLayout.setUseDefaultMargins(boolean).

May be a boolean value, such as "true" or "false".

Constant Value: 16843641 (0x01010379)

useEmbeddedDex

Added in API level 29
public static final int useEmbeddedDex

Flag to specify if this app (or process) wants to run the dex within its APK but not extracted or locally compiled variants. This keeps the dex code protected by the APK signature. Such apps (or processes) will always run in JIT mode (same when they are first installed). If enabled at the app level, the system will never generate ahead-of-time compiled code for the app. Depending on the app's workload, there may be some run time performance change, noteably the cold start time.

This attribute can be applied to either process or application tags. If enabled at the app level, any process level attribute is effectively ignored.

May be a boolean value, such as "true" or "false".

Constant Value: 16844190 (0x0101059e)

useIntrinsicSizeAsMinimum

Added in API level 11
public static final int useIntrinsicSizeAsMinimum

Use the drawable's intrinsic width and height as minimum size values. Useful if the target drawable is a 9-patch or otherwise should not be scaled down beyond a minimum size.

May be a boolean value, such as "true" or "false".

Constant Value: 16843536 (0x01010310)

useLevel

Added in API level 1
public static final int useLevel

Whether the drawable level value (see Drawable.getLevel()) is used to scale the gradient. Scaling behavior varies based on gradient type. For "linear", adjusts the ending position along the gradient's axis of orientation. For "radial", adjusts the outer radius. For "sweep", adjusts the ending angle. The default value is false.

May be a boolean value, such as "true" or "false".

Constant Value: 16843167 (0x0101019f)

useLocalePreferredLineHeightForMinimum

Added in API level 35
public static final int useLocalePreferredLineHeightForMinimum

May be a boolean value, such as "true" or "false".

Constant Value: 16844445 (0x0101069d)

userVisible

Added in API level 5
public static final int userVisible

May be a boolean value, such as "true" or "false".

Constant Value: 16843409 (0x01010291)

usesCleartextTraffic

Added in API level 23
public static final int usesCleartextTraffic

Declare that this application may use cleartext traffic, such as HTTP rather than HTTPS; WebSockets rather than WebSockets Secure; XMPP, IMAP, SMTP without STARTTLS or TLS. Defaults to true. If set to false false, the application declares that it does not intend to use cleartext network traffic, in which case platform components (e.g. HTTP stacks, DownloadManager, MediaPlayer) will refuse applications's requests to use cleartext traffic. Third-party libraries are encouraged to honor this flag as well.

May be a boolean value, such as "true" or "false".

Constant Value: 16844012 (0x010104ec)

usesPermissionFlags

Added in API level 31
public static final int usesPermissionFlags

Optional: set of flags that should apply to this permission request. Note that these flags start at 0x4 to match PackageInfo.requestedPermissionsFlags.

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
neverForLocation10000Strong assertion by a developer that they will never use this permission to derive the physical location of the device, even when the app has been granted the ACCESS_FINE_LOCATION and/or ACCESS_COARSE_LOCATION permissions.

Constant Value: 16844356 (0x01010644)

value

Added in API level 1
public static final int value

Concrete value to assign to this piece of named meta-data. The data can later be retrieved from the meta data Bundle through 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, such as "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".

Constant Value: 16842788 (0x01010024)

valueFrom

Added in API level 11
public static final int valueFrom

Value the animation starts from.

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 color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843486 (0x010102de)

valueTo

Added in API level 11
public static final int valueTo

Value the animation animates to.

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 color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

May be a floating point value, such as "1.2".

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843487 (0x010102df)

valueType

Added in API level 11
public static final int valueType

The type of valueFrom and valueTo.

Must be one of the following constant values.

ConstantValueDescription
colorType3values are colors, which are integers starting with "#".
floatType0The given values are floats. This is the default value if valueType is unspecified. Note that if any value attribute has a color value (beginning with "#"), then this attribute is ignored and the color values are interpreted as integers.
intType1values are integers.
pathType2values are paths defined as strings. This type is used for path morphing in AnimatedVectorDrawable.

Constant Value: 16843488 (0x010102e0)

variablePadding

Added in API level 1
public static final int variablePadding

If true, allows the drawable's padding to change based on the current state that is selected. If false, the padding will stay the same (based on the maximum padding of all the states). Enabling this feature requires that the owner of the drawable deal with performing layout when the state changes, which is often not supported.

May be a boolean value, such as "true" or "false".

Constant Value: 16843157 (0x01010195)

vendor

Added in API level 19
public static final int vendor

The vendor name if this print service is vendor specific.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Constant Value: 16843751 (0x010103e7)

version

Added in API level 24
public static final int version

The version of the feature that is being used.

May be an integer value, such as "100".

Constant Value: 16844057 (0x01010519)

versionCode

Added in API level 1
public static final int versionCode

Internal version code. This is the number used to determine whether one version is more recent than another: it has no other meaning than that higher numbers are more recent. You could use this number to encode a "x.y" in the lower and upper 16 bits, make it a build number, simply increase it by one each time a new version is released, or define it however else you want, as long as each successive version has a higher number. This is not a version number generally shown to the user, that is usually supplied with versionName. When an app is delivered as multiple split APKs, each APK must have the exact same versionCode.

May be an integer value, such as "100".

Constant Value: 16843291 (0x0101021b)

versionCodeMajor

Added in API level 28
public static final int versionCodeMajor

Internal major version code. This is essentially additional high bits for the base version code; it has no other meaning than that higher numbers are more recent. This is not a version number generally shown to the user, that is usually supplied with versionName.

May be an integer value, such as "100".

Constant Value: 16844150 (0x01010576)

versionMajor

Added in API level 28
public static final int versionMajor

Optional minimum major version of the package that satisfies the dependency.

May be an integer value, such as "100".

Constant Value: 16844151 (0x01010577)

versionName

Added in API level 1
public static final int versionName

The text shown to the user to indicate the version they have. This is used for no other purpose than display to the user; the actual significant version number is given by versionCode.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Constant Value: 16843292 (0x0101021c)

verticalCorrection

Added in API level 3
Deprecated in API level 29
public static final int verticalCorrection

This constant was deprecated in API level 29.
Copy this definition into your own application project.

Amount to offset the touch Y coordinate by, for bias correction.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843322 (0x0101023a)

verticalDivider

Added in API level 1
public static final int verticalDivider

Default vertical divider between menu items.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843054 (0x0101012e)

verticalGap

Added in API level 3
Deprecated in API level 29
public static final int verticalGap

This constant was deprecated in API level 29.
Copy this definition into your own application project.

Default vertical gap between rows of keys.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16843328 (0x01010240)

verticalScrollbarPosition

Added in API level 11
public static final int verticalScrollbarPosition

Determines which side the vertical scroll bar should be placed on.

Must be one of the following constant values.

ConstantValueDescription
defaultPosition0Place the scroll bar wherever the system default determines.
left1Place the scroll bar on the left.
right2Place the scroll bar on the right.

Constant Value: 16843572 (0x01010334)

verticalSpacing

Added in API level 1
public static final int verticalSpacing

Defines the default vertical spacing between rows.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843029 (0x01010115)

viewportHeight

Added in API level 21
public static final int viewportHeight

The height of the canvas the drawing is on.

May be a floating point value, such as "1.2".

Constant Value: 16843779 (0x01010403)

viewportWidth

Added in API level 21
public static final int viewportWidth

The width of the canvas the drawing is on.

May be a floating point value, such as "1.2".

Constant Value: 16843778 (0x01010402)

visibility

Added in API level 1
public static final int visibility

Controls the initial visibility of the view.

Must be one of the following constant values.

ConstantValueDescription
gone2Completely hidden, as if the view had not been added.
invisible1Not displayed, but taken into account during layout (space is left for it).
visible0Visible on screen; the default value.

Constant Value: 16842972 (0x010100dc)

visible

Added in API level 1
public static final int visible

Provides initial visibility state of the drawable; the default value is false. See Drawable.setVisible(boolean, boolean).

May be a boolean value, such as "true" or "false".

Constant Value: 16843156 (0x01010194)

visibleToInstantApps

Added in API level 26
public static final int visibleToInstantApps

Specify whether a component should be visible to instant apps.

May be a boolean value, such as "true" or "false".

Constant Value: 16844081 (0x01010531)

vmSafeMode

Added in API level 8
public static final int vmSafeMode

Flag indicating whether the application requests the VM to operate in the safe mode.

May be a boolean value, such as "true" or "false".

Constant Value: 16843448 (0x010102b8)

voiceIcon

Added in API level 21
public static final int voiceIcon

Voice button icon.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843908 (0x01010484)

voiceLanguage

Added in API level 3
public static final int voiceLanguage

If provided, this specifies the spoken language to be expected, and that it will be different than the one set in the Locale.getDefault().

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Constant Value: 16843349 (0x01010255)

voiceLanguageModel

Added in API level 3
public static final int voiceLanguageModel

If provided, this specifies the language model that should be used by the voice recognition system. See RecognizerIntent.EXTRA_LANGUAGE_MODEL for more information. If not provided, the default value RecognizerIntent.LANGUAGE_MODEL_FREE_FORM will be used.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Constant Value: 16843347 (0x01010253)

voiceMaxResults

Added in API level 3
public static final int voiceMaxResults

If provided, enforces the maximum number of results to return, including the "best" result which will always be provided as the SEARCH intent's primary query. Must be one or greater. If not provided, the recognizer will choose how many results to return.

May be an integer value, such as "100".

Constant Value: 16843350 (0x01010256)

voicePromptText

Added in API level 3
public static final int voicePromptText

If provided, this specifies a prompt that will be displayed during voice input.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Constant Value: 16843348 (0x01010254)

voiceSearchMode

Added in API level 3
public static final int voiceSearchMode

Voice search features are controlled by mode bits in this field. Omitting this field, or setting to zero, provides default behavior. If showVoiceSearchButton is set, then launchWebSearch or launchRecognizer must also be set. Optional attribute.

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
launchRecognizer4If set, the voice search button will take the user directly to a built-in voice recording activity. This activity will prompt the user to speak, transcribe the spoken text, and forward the resulting query text to the searchable activity, just as if the user had typed it into the search UI and clicked the search button.
launchWebSearch2If set, the voice search button will take the user directly to a built-in voice web search activity. Most applications will not use this flag, as it will take the user away from the activity in which search was invoked.
showVoiceSearchButton1If set, display a voice search button. This only takes effect if voice search is available on the device.

Constant Value: 16843346 (0x01010252)

wallpaperCloseEnterAnimation

Added in API level 5
public static final int wallpaperCloseEnterAnimation

When opening a new activity that hides the wallpaper, while currently showing the wallpaper, this is the animation that is run on the new activity (which is entering the screen).

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843413 (0x01010295)

wallpaperCloseExitAnimation

Added in API level 5
public static final int wallpaperCloseExitAnimation

When opening a new activity that hides the wallpaper, while currently showing the wallpaper, this is the animation that is run on the old wallpaper activity (which is exiting the screen).

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843414 (0x01010296)

wallpaperIntraCloseEnterAnimation

Added in API level 5
public static final int wallpaperIntraCloseEnterAnimation

When closing a foreround activity that is on top of the wallpaper when the previous activity is also on top of the wallpaper, this is the animation that is run on the previous activity (which is entering the screen). The wallpaper remains static behind the animation.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843417 (0x01010299)

wallpaperIntraCloseExitAnimation

Added in API level 5
public static final int wallpaperIntraCloseExitAnimation

When closing a foreround activity that is on top of the wallpaper when the previous activity is also on top of the wallpaper, this is the animation that is run on the current activity (which is exiting the screen). The wallpaper remains static behind the animation.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843418 (0x0101029a)

wallpaperIntraOpenEnterAnimation

Added in API level 5
public static final int wallpaperIntraOpenEnterAnimation

When opening a new activity that is on top of the wallpaper when the current activity is also on top of the wallpaper, this is the animation that is run on the new activity (which is entering the screen). The wallpaper remains static behind the animation.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843415 (0x01010297)

wallpaperIntraOpenExitAnimation

Added in API level 5
public static final int wallpaperIntraOpenExitAnimation

When opening a new activity that is on top of the wallpaper when the current activity is also on top of the wallpaper, this is the animation that is run on the current activity (which is exiting the screen). The wallpaper remains static behind the animation.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843416 (0x01010298)

wallpaperOpenEnterAnimation

Added in API level 5
public static final int wallpaperOpenEnterAnimation

When opening a new activity that shows the wallpaper, while currently not showing the wallpaper, this is the animation that is run on the new wallpaper activity (which is entering the screen).

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843411 (0x01010293)

wallpaperOpenExitAnimation

Added in API level 5
public static final int wallpaperOpenExitAnimation

When opening a new activity that shows the wallpaper, while currently not showing the wallpaper, this is the animation that is run on the current activity (which is exiting the screen).

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843412 (0x01010294)

webTextViewStyle

Added in API level 8
public static final int webTextViewStyle

Default WebTextView style.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843449 (0x010102b9)

webViewStyle

Added in API level 1
public static final int webViewStyle

Default WebView style.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16842885 (0x01010085)

weekDayTextAppearance

Added in API level 11
public static final int weekDayTextAppearance

The text appearance for the week day abbreviation in the calendar header.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843592 (0x01010348)

weekNumberColor

Added in API level 11
Deprecated in API level 23
public static final int weekNumberColor

This constant was deprecated in API level 23.
The color for the week numbers.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16843589 (0x01010345)

weekSeparatorLineColor

Added in API level 11
Deprecated in API level 23
public static final int weekSeparatorLineColor

This constant was deprecated in API level 23.
The color for the separator line between weeks.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16843590 (0x01010346)

weightSum

Added in API level 1
public static final int weightSum

Defines the maximum weight sum. If unspecified, the sum is computed by adding the layout_weight of all of the children. This can be used for instance to give a single child 50% of the total available space by giving it a layout_weight of 0.5 and setting the weightSum to 1.0.

May be a floating point value, such as "1.2".

Constant Value: 16843048 (0x01010128)

widgetCategory

Added in API level 17
public static final int widgetCategory

Optional parameter which indicates where this widget can be shown, ie. home screen, keyguard, search bar or any combination thereof. Supports combined values using | operator.

May be an integer value, such as "100".

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
home_screen1
keyguard2
searchbox4

Constant Value: 16843716 (0x010103c4)

widgetFeatures

Added in API level 28
public static final int widgetFeatures

Flags indicating various features supported by the widget. These are hints to the widget host, and do not actually change the behavior of the widget.

May be an integer value, such as "100".

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
configuration_optional4The widget provides a default configuration. The host may decide not to launch the provided configuration activity.
hide_from_picker2The widget is added directly by the app, and does not need to appear in the global list of available widgets
reconfigurable1The widget can be reconfigured anytime after it is bound

Constant Value: 16844153 (0x01010579)

widgetLayout

Added in API level 1
public static final int widgetLayout

The layout for the controllable widget portion of a Preference. This is inflated into the layout for a Preference and should be used more frequently than the layout attribute. For example, a checkbox preference would specify a custom layout (consisting of just the CheckBox) here.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843243 (0x010101eb)

width

Added in API level 1
public static final int width

Makes the TextView be exactly this wide. You could get the same effect by specifying this number in the layout parameters.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843097 (0x01010159)

windowActionBar

Added in API level 11
public static final int windowActionBar

Flag indicating whether this window should have an Action Bar in place of the usual title bar.

May be a boolean value, such as "true" or "false".

Constant Value: 16843469 (0x010102cd)

windowActionBarOverlay

Added in API level 11
public static final int windowActionBarOverlay

Flag indicating whether this window's Action Bar should overlay application content. Does nothing if the window would not have an Action Bar.

May be a boolean value, such as "true" or "false".

Constant Value: 16843492 (0x010102e4)

windowActionModeOverlay

Added in API level 11
public static final int windowActionModeOverlay

Flag indicating whether action modes should overlay window content when there is not reserved space for their UI (such as an Action Bar).

May be a boolean value, such as "true" or "false".

Constant Value: 16843485 (0x010102dd)

windowActivityTransitions

Added in API level 21
public static final int windowActivityTransitions

Flag indicating whether this window allows Activity Transitions. Corresponds to Window.FEATURE_ACTIVITY_TRANSITIONS.

May be a boolean value, such as "true" or "false".

Constant Value: 16843981 (0x010104cd)

windowAllowEnterTransitionOverlap

Added in API level 21
public static final int windowAllowEnterTransitionOverlap

Flag indicating whether this Window's transition should overlap with the exiting transition of the calling Activity. Corresponds to Window.setAllowEnterTransitionOverlap(boolean). The default value is true.

May be a boolean value, such as "true" or "false".

Constant Value: 16843836 (0x0101043c)

windowAllowReturnTransitionOverlap

Added in API level 21
public static final int windowAllowReturnTransitionOverlap

Flag indicating whether this Window's transition should overlap with the exiting transition of the called Activity when the called Activity finishes. Corresponds to Window.setAllowReturnTransitionOverlap(boolean). The default value is true.

May be a boolean value, such as "true" or "false".

Constant Value: 16843835 (0x0101043b)

windowAnimationStyle

Added in API level 1
public static final 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.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16842926 (0x010100ae)

windowBackground

Added in API level 1
public static final int windowBackground

Drawable to use as the overall window background. As of Build.VERSION_CODES.HONEYCOMB, this may be a selector that uses state_accelerated to pick a non-solid color when running on devices that can draw such a bitmap with complex compositing on top at 60fps.

There are a few special considerations to use when setting this drawable:

  • This information will be used to infer the pixel format for your window's surface. If the drawable has any non-opaque pixels, your window will be translucent (32 bpp).
  • If you want to draw the entire background yourself, you should set this drawable to some solid color that closely matches that background (so the system's preview of your window will match), and then in code manually set your window's background to null so it will not be drawn.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16842836 (0x01010054)

windowBackgroundBlurRadius

Added in API level 31
public static final int windowBackgroundBlurRadius

Blur the screen behind the window with the bounds of the window. The radius defines the size of the neighbouring area, from which pixels will be averaged to form the final color for each pixel in the region. A radius of 0 means no blur. The higher the radius, the denser the blur. Corresponds to Window.setBackgroundBlurRadius(int).

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844331 (0x0101062b)

windowBackgroundFallback

Added in API level 24
public static final int windowBackgroundFallback

Drawable to draw selectively within the inset areas when the windowBackground has been set to null. This protects against seeing visual garbage in the surface when the app has not drawn any content into this area. One example is when the user is resizing a window of an activity in multi-window mode.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16844035 (0x01010503)

windowBlurBehindEnabled

Added in API level 31
public static final int windowBlurBehindEnabled

If set, everything behind the window will be blurred with radius windowBackgroundBlurRadius.

May be a boolean value, such as "true" or "false".

Constant Value: 16844316 (0x0101061c)

windowBlurBehindRadius

Added in API level 31
public static final int windowBlurBehindRadius

When windowBlurBehindEnabled is set, this is the amount of blur to apply behind the window. The range is from 0, which means no blur, to 150.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16844315 (0x0101061b)

windowClipToOutline

Added in API level 21
public static final int windowClipToOutline

Whether to clip window content to the outline of the window background.

May be a boolean value, such as "true" or "false".

Constant Value: 16843947 (0x010104ab)

windowCloseOnTouchOutside

Added in API level 11
public static final int windowCloseOnTouchOutside

Control whether a container should automatically close itself if the user touches outside of it. This only applies to activities and dialogs.

Note: this attribute will only be respected for applications that are targeting Build.VERSION_CODES.HONEYCOMB or later.

May be a boolean value, such as "true" or "false".

Constant Value: 16843611 (0x0101035b)

windowContentOverlay

Added in API level 1
public static final int windowContentOverlay

This Drawable is overlaid over the foreground of the Window's content area, usually to place a shadow below the title.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16842841 (0x01010059)

windowContentTransitionManager

Added in API level 21
public static final int windowContentTransitionManager

Reference to a TransitionManager XML resource defining the desired transitions between different window content.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843769 (0x010103f9)

windowContentTransitions

Added in API level 21
public static final int windowContentTransitions

Flag indicating whether this window requests that content changes be performed as scene changes with transitions. Corresponds to Window.FEATURE_CONTENT_TRANSITIONS.

May be a boolean value, such as "true" or "false".

Constant Value: 16843768 (0x010103f8)

windowDisablePreview

Added in API level 3
public static final int windowDisablePreview

Flag allowing you to disable the splash screen for a window. The default value is false; if set to true, the system can never use the window's theme to show a splash screen before your actual instance is shown to the user.

May be a boolean value, such as "true" or "false".

Constant Value: 16843298 (0x01010222)

windowDrawsSystemBarBackgrounds

Added in API level 21
public static final int windowDrawsSystemBarBackgrounds

Flag indicating whether this Window is responsible for drawing the background for the system bars. If true and the window is not floating, the system bars are drawn with a transparent background and the corresponding areas in this window are filled with the colors specified in statusBarColor and navigationBarColor. Corresponds to WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS.

May be a boolean value, such as "true" or "false".

Constant Value: 16843856 (0x01010450)

windowElevation

Added in API level 21
public static final int windowElevation

Elevation to use for the window.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16843920 (0x01010490)

windowEnableSplitTouch

Added in API level 11
public static final int windowEnableSplitTouch

Flag indicating that this window should allow touches to be split across other windows that also support split touch. The default value is true for applications with a targetSdkVersion of Honeycomb or newer; false otherwise. When this flag is false, the first pointer that goes down determines the window to which all subsequent touches go until all pointers go up. When this flag is true, each pointer (not necessarily the first) that goes down determines the window to which all subsequent touches of that pointer will go until that pointers go up thereby enabling touches with multiple pointers to be split across multiple windows.

May be a boolean value, such as "true" or "false".

Constant Value: 16843543 (0x01010317)

windowEnterAnimation

Added in API level 1
public static final int windowEnterAnimation

The animation used when a window is being added.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16842932 (0x010100b4)

windowEnterTransition

Added in API level 21
public static final int windowEnterTransition

Reference to a Transition XML resource defining the desired Transition used to move Views into the initial Window's content Scene. Corresponds to Window.setEnterTransition(android.transition.Transition).

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843831 (0x01010437)

windowExitAnimation

Added in API level 1
public static final int windowExitAnimation

The animation used when a window is being removed.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16842933 (0x010100b5)

windowExitTransition

Added in API level 21
public static final int windowExitTransition

Reference to a Transition XML resource defining the desired Transition used to move Views out of the Window's content Scene when launching a new Activity. Corresponds to Window.setExitTransition(android.transition.Transition).

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843832 (0x01010438)

windowFrame

Added in API level 1
public static final int windowFrame

Drawable to use as a frame around the window.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16842837 (0x01010055)

windowFullscreen

Added in API level 1
public static final int windowFullscreen

Flag indicating whether this window should fill the entire screen. Corresponds to WindowManager.LayoutParams.FLAG_FULLSCREEN.

May be a boolean value, such as "true" or "false".

Constant Value: 16843277 (0x0101020d)

windowHideAnimation

Added in API level 1
public static final int windowHideAnimation

The animation used when a window is going from VISIBLE to INVISIBLE.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16842935 (0x010100b7)

windowIsFloating

Added in API level 1
public static final int windowIsFloating

Flag indicating whether this is a floating window.

May be a boolean value, such as "true" or "false".

Constant Value: 16842839 (0x01010057)

windowIsFrameRatePowerSavingsBalanced

Added in API level 35
public static final int windowIsFrameRatePowerSavingsBalanced

Offer Window the ability to opt out the UI Toolkit discrete variable refresh rate. This feature allows device to adjust refresh rate as needed and can be useful for power saving. Set to false to reduce the frame rate optimizations on devices with variable refresh rate screens. The default is true.

May be a boolean value, such as "true" or "false".

Constant Value: 16844451 (0x010106a3)

windowIsTranslucent

Added in API level 1
public static final int windowIsTranslucent

Flag indicating whether this is a translucent window.

May be a boolean value, such as "true" or "false".

Constant Value: 16842840 (0x01010058)

windowLayoutAffinity

Added in API level 31
public static final int windowLayoutAffinity

Window layout affinity of this activity. Activities with the same window layout affinity will share the same layout record. That is, if a user is opening an activity in a new task on a display that can host freeform windows, and the user had opened a task before and that task had a root activity who had the same window layout affinity, the new task's window will be created in the same window mode and around the location which the previously opened task was in.

For example, if a user maximizes a task with root activity A and opens another activity B that has the same window layout affinity as activity A has, activity B will be created in fullscreen window mode. Similarly, if they move/resize a task with root activity C and open another activity D that has the same window layout affinity as activity C has, activity D will be in freeform window mode and as close to the position of activity C as conditions permit. It doesn't require the user to keep the task with activity A or activity C open. It won't, however, put any task into split-screen or PIP window mode on launch.

If the user is opening an activity with its window layout affinity for the first time, the window mode and position is OEM defined.

By default activity doesn't share any affinity with other activities.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Constant Value: 16844313 (0x01010619)

windowLayoutInDisplayCutoutMode

Added in API level 27
public static final int windowLayoutInDisplayCutoutMode

Controls how the window is laid out if there is a DisplayCutout.

Defaults to default. But if the window fills the screen, and it belongs to an app targeting VANILLA_ICE_CREAM or above, the behavior will be the same as specifying always regardless.

See also WindowManager.LayoutParams.layoutInDisplayCutoutMode, WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_DEFAULT, WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES, WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER, and DisplayCutout

Must be one of the following constant values.

ConstantValueDescription
always3

The window is always allowed to extend into the DisplayCutout areas on the all edges of the screen.

The window must make sure that no important content overlaps with the DisplayCutout.

Corresponds to LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS.

default0

The window is allowed to extend into the DisplayCutout area, only if the DisplayCutout is fully contained within a system bar. Otherwise, the window is laid out such that it does not overlap with the DisplayCutout area.

Corresponds to LAYOUT_IN_DISPLAY_CUTOUT_MODE_DEFAULT.

never2

The window is never allowed to overlap with the DisplayCutout area.

This should be used with windows that transiently set SYSTEM_UI_FLAG_FULLSCREEN to avoid a relayout of the window when the flag is set or cleared.

Corresponds to LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER.

shortEdges1

The window is always allowed to extend into the DisplayCutout areas on the short edges of the screen even if fullscreen or in landscape. The window will never extend into a DisplayCutout area on the long edges of the screen.

The window must make sure that no important content overlaps with the DisplayCutout.

Corresponds to LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES.

Constant Value: 16844166 (0x01010586)

windowLightNavigationBar

Added in API level 27
public static final int windowLightNavigationBar

If set, the navigation bar will be drawn such that it is compatible with a light navigation bar background.

For this to take effect, the window must be drawing the system bar backgrounds with windowDrawsSystemBarBackgrounds and the navigation bar must not have been requested to be translucent with windowTranslucentNavigation. Corresponds to setting View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR on the decor view and WindowInsetsController.APPEARANCE_LIGHT_NAVIGATION_BARS on the WindowInsetsController.

May be a boolean value, such as "true" or "false".

Constant Value: 16844140 (0x0101056c)

windowLightStatusBar

Added in API level 23
public static final int windowLightStatusBar

If set, the status bar will be drawn such that it is compatible with a light status bar background.

For this to take effect, the window must be drawing the system bar backgrounds with windowDrawsSystemBarBackgrounds and the status bar must not have been requested to be translucent with windowTranslucentStatus. Corresponds to setting View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR on the decor view and WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS on the WindowInsetsController.

May be a boolean value, such as "true" or "false".

Constant Value: 16844000 (0x010104e0)

windowMinWidthMajor

Added in API level 11
public static final int windowMinWidthMajor

The minimum width the window is allowed to be, along the major axis of the screen. That is, when in landscape. Can be either an absolute dimension or a fraction of the screen size in that dimension.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16843606 (0x01010356)

windowMinWidthMinor

Added in API level 11
public static final int windowMinWidthMinor

The minimum width the window is allowed to be, along the minor axis of the screen. That is, when in portrait. Can be either an absolute dimension or a fraction of the screen size in that dimension.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.

Constant Value: 16843607 (0x01010357)

windowNoDisplay

Added in API level 3
public static final int windowNoDisplay

Flag indicating that this window should not be displayed at all. The default value is false; if set to true, and this window is the main window of an Activity, then it will never actually be added to the window manager. This means that your activity must immediately quit without waiting for user interaction, because there will be no such interaction coming.

May be a boolean value, such as "true" or "false".

Constant Value: 16843294 (0x0101021e)

windowNoMoveAnimation

Added in API level 34
public static final int windowNoMoveAnimation

Flag indicating whether this window should skip movement animations. See also WindowManager.LayoutParams.setCanPlayMoveAnimation(boolean)

May be a boolean value, such as "true" or "false".

Constant Value: 16844421 (0x01010685)

windowNoTitle

Added in API level 1
public static final int windowNoTitle

Flag indicating whether there should be no title on this window.

May be a boolean value, such as "true" or "false".

Constant Value: 16842838 (0x01010056)

windowOptOutEdgeToEdgeEnforcement

Added in API level 35
public static final int windowOptOutEdgeToEdgeEnforcement

Flag indicating whether this window would opt-out the edge-to-edge enforcement.

If this is false, the edge-to-edge enforcement will be applied to the window if it belongs to an app targeting VANILLA_ICE_CREAM or above. The affected behaviors are:

If this is true, the edge-to-edge enforcement won't be applied. However, this attribute will be deprecated and disabled in a future SDK level.

This is false by default.

May be a boolean value, such as "true" or "false".

Constant Value: 16844442 (0x0101069a)

windowOverscan

Added in API level 18
Deprecated in API level 30
public static final int windowOverscan

This constant was deprecated in API level 30.
Overscan areas aren't set by any Android product anymore as of Android 11.

May be a boolean value, such as "true" or "false".

Flag indicating whether this window should extend into overscan region. Corresponds to WindowManager.LayoutParams.FLAG_LAYOUT_IN_OVERSCAN.

Constant Value: 16843727 (0x010103cf)

windowReenterTransition

Added in API level 21
public static final int windowReenterTransition

Reference to a Transition XML resource defining the desired Transition used to move Views in to the scene when returning from a previously-started Activity. Corresponds to Window.setReenterTransition(android.transition.Transition).

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843951 (0x010104af)

windowReturnTransition

Added in API level 21
public static final int windowReturnTransition

Reference to a Transition XML resource defining the desired Transition used to move Views out of the scene when the Window is preparing to close. Corresponds to Window.setReturnTransition(android.transition.Transition).

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843950 (0x010104ae)

windowSharedElementEnterTransition

Added in API level 21
public static final int windowSharedElementEnterTransition

Reference to a Transition XML resource defining the desired Transition used to move shared elements transferred into the Window's initial content Scene. Corresponds to Window.setSharedElementEnterTransition(android.transition.Transition).

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843833 (0x01010439)

windowSharedElementExitTransition

Added in API level 21
public static final int windowSharedElementExitTransition

Reference to a Transition XML resource defining the desired Transition used when starting a new Activity to move shared elements prior to transferring to the called Activity. Corresponds to Window.setSharedElementExitTransition(android.transition.Transition).

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843834 (0x0101043a)

windowSharedElementReenterTransition

Added in API level 21
public static final int windowSharedElementReenterTransition

Reference to a Transition XML resource defining the desired Transition used for shared elements transferred back to a calling Activity. Corresponds to Window.setSharedElementReenterTransition(android.transition.Transition).

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843953 (0x010104b1)

windowSharedElementReturnTransition

Added in API level 21
public static final int windowSharedElementReturnTransition

Reference to a Transition XML resource defining the desired Transition used to move shared elements transferred back to a calling Activity. Corresponds to Window.setSharedElementReturnTransition(android.transition.Transition).

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843952 (0x010104b0)

windowSharedElementsUseOverlay

Added in API level 21
public static final int windowSharedElementsUseOverlay

Indicates whether or not shared elements should use an overlay during transitions. The default value is true.

May be a boolean value, such as "true" or "false".

Constant Value: 16843963 (0x010104bb)

windowShowAnimation

Added in API level 1
public static final int windowShowAnimation

The animation used when a window is going from INVISIBLE to VISIBLE.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16842934 (0x010100b6)

windowShowWallpaper

Added in API level 5
public static final int windowShowWallpaper

Flag indicating that this window's background should be the user's current wallpaper. Corresponds to WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER.

May be a boolean value, such as "true" or "false".

Constant Value: 16843410 (0x01010292)

windowSoftInputMode

Added in API level 3
public static final int windowSoftInputMode

Defines the default soft input state that this window would like when it is displayed. Corresponds to WindowManager.LayoutParams.softInputMode.

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
adjustNothing30Don't resize or pan the window to make room for the soft input area; the window is never adjusted for it.
adjustPan20Don't resize the window to make room for the soft input area; instead pan the contents of the window as focus moves inside of it so that the user can see what they are typing. This is generally less desireable than panning because the user may need to close the input area to get at and interact with parts of the window.
adjustResize10Always resize the window: the content area of the window is reduced to make room for the soft input area.
adjustUnspecified0The window resize/pan adjustment has not been specified, the system will automatically select between resize and pan modes, depending on whether the content of the window has any layout views that can scroll their contents. If there is such a view, then the window will be resized, with the assumption being that the resizeable area can be reduced to make room for the input UI.
stateAlwaysHidden3Always make the soft input area hidden when this window has input focus.
stateAlwaysVisible5Always make the soft input area visible when this window has input focus.
stateHidden2Make the soft input area hidden when normally appropriate (when the user is navigating forward to your window).
stateUnchanged1Leave the soft input window as-is, in whatever state it last was.
stateUnspecified0Not specified, use what the system thinks is best. This is the default.
stateVisible4Make the soft input area visible when normally appropriate (when the user is navigating forward to your window).

Constant Value: 16843307 (0x0101022b)

windowSplashScreenAnimatedIcon

Added in API level 31
public static final int windowSplashScreenAnimatedIcon

Replace an icon in the center of the starting window, if the object is animated and drawable(e.g. AnimationDrawable, AnimatedVectorDrawable), then it will also play the animation while showing the starting window.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16844333 (0x0101062d)

windowSplashScreenAnimationDuration

Added in API level 31
Deprecated in API level 33
public static final int windowSplashScreenAnimationDuration

This constant was deprecated in API level 33.
Not used by framework starting from API level 33. The system estimates the duration of the vector animation automatically.

May be an integer value, such as "100".

The duration, in milliseconds, of the window splash screen icon animation duration when playing the splash screen starting window. The maximum animation duration should be limited below 1000ms.

Constant Value: 16844334 (0x0101062e)

windowSplashScreenBackground

Added in API level 31
public static final int windowSplashScreenBackground

The background color for the splash screen, if not specify then system will calculate from windowBackground.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16844332 (0x0101062c)

windowSplashScreenBehavior

Added in API level 33
public static final int windowSplashScreenBehavior

Specify whether this application always wants the icon to be displayed on the splash screen.

Must be one of the following constant values.

ConstantValueDescription
default0The icon is shown when the launching activity sets the splashScreenStyle to SPLASH_SCREEN_STYLE_ICON. If the launching activity does not specify any style, follow the system behavior.
icon_preferred1The icon is shown unless the launching app specified SPLASH_SCREEN_STYLE_EMPTY

Constant Value: 16844392 (0x01010668)

windowSplashScreenBrandingImage

Added in API level 31
public static final int windowSplashScreenBrandingImage

Place a drawable image in the bottom of the starting window. The image can be used to represent the branding of the application.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16844335 (0x0101062f)

windowSplashScreenIconBackgroundColor

Added in API level 31
public static final int windowSplashScreenIconBackgroundColor

Set a background behind the splash screen icon. This is useful if there is not enough contrast between the window background and the icon. Note the shape would also be masking like an icon.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16844336 (0x01010630)

windowSplashscreenContent

Added in API level 26
Deprecated in API level 31
public static final int windowSplashscreenContent

This constant was deprecated in API level 31.
Use windowSplashscreenAnimatedIcon instead Use windowSplashscreenAnimatedIcon instead.

Reference to a drawable to be used as the splash screen content of the window. This drawable will be placed on top of the windowBackground with its bounds inset by the system bars. If the drawable should not be inset by the system bars, use a fullscreen theme.

Note that even if no splashscreen content is set on the theme, the system may still show a splash screen using the other attributes on the theme, like the windowBackground.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16844132 (0x01010564)

windowSwipeToDismiss

Added in API level 20
Deprecated in API level 30
public static final int windowSwipeToDismiss

This constant was deprecated in API level 30.
Swipe-to-dismiss isn't functional anymore.

May be a boolean value, such as "true" or "false".

Flag to indicate that a window can be swiped away to be dismissed. Corresponds to Window.FEATURE_SWIPE_TO_DISMISS. It will also dynamically change translucency of the window, if the windowIsTranslucent is not set. If windowIsTranslucent is set (to either true or false) it will obey that setting.

Constant Value: 16843763 (0x010103f3)

windowTitleBackgroundStyle

Added in API level 1
public static final int windowTitleBackgroundStyle

The style resource to use for a window's title area.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16842844 (0x0101005c)

windowTitleSize

Added in API level 1
public static final int windowTitleSize

The style resource to use for a window's title bar height.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842842 (0x0101005a)

windowTitleStyle

Added in API level 1
public static final int windowTitleStyle

The style resource to use for a window's title text.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16842843 (0x0101005b)

windowTransitionBackgroundFadeDuration

Added in API level 21
public static final int windowTransitionBackgroundFadeDuration

The duration, in milliseconds, of the window background fade duration when transitioning into or away from an Activity when called with an Activity Transition. Corresponds to Window.setTransitionBackgroundFadeDuration(long).

May be an integer value, such as "100".

Constant Value: 16843873 (0x01010461)

windowTranslucentNavigation

Added in API level 19
public static final int windowTranslucentNavigation

Flag indicating whether this window requests a translucent navigation bar. Corresponds to WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION.

May be a boolean value, such as "true" or "false".

Constant Value: 16843760 (0x010103f0)

windowTranslucentStatus

Added in API level 19
public static final int windowTranslucentStatus

Flag indicating whether this window requests a translucent status bar. Corresponds to WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS.

May be a boolean value, such as "true" or "false".

Constant Value: 16843759 (0x010103ef)

writePermission

Added in API level 1
public static final int writePermission

A specific permission name for write access to a ContentProvider. See the Security and Permissions document for more information on permissions.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Constant Value: 16842760 (0x01010008)

x

Added in API level 1
public static final int x

A coordinate in the X dimension.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842924 (0x010100ac)

xlargeScreens

Added in API level 9
public static final int xlargeScreens

Indicates whether the application supports extra large screen form-factors.

May be a boolean value, such as "true" or "false".

Constant Value: 16843455 (0x010102bf)

y

Added in API level 1
public static final int y

A coordinate in the Y dimension.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Constant Value: 16842925 (0x010100ad)

yearListItemTextAppearance

Added in API level 21
Deprecated in API level 23
public static final int yearListItemTextAppearance

This constant was deprecated in API level 23.
Use yearListTextColor.

The list year's text appearance in the list.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16843929 (0x01010499)

yearListSelectorColor

Added in API level 21
Deprecated in API level 23
public static final int yearListSelectorColor

This constant was deprecated in API level 23.
No longer displayed.

The list year's selected circle color in the list.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16843930 (0x0101049a)

yesNoPreferenceStyle

Added in API level 1
public static final int yesNoPreferenceStyle

Default style for YesNoPreference.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Constant Value: 16842896 (0x01010090)

zAdjustment

Added in API level 1
public static final int zAdjustment

Allows for an adjustment of the Z ordering of the content being animated for the duration of the animation. The default value is normal.

Must be one of the following constant values.

ConstantValueDescription
bottomffffffffThe content being animated is forced under all other content for the duration of the animation.
normal0The content being animated be kept in its current Z order.
top1The content being animated is forced on top of all other content for the duration of the animation.

Constant Value: 16843201 (0x010101c1)

zygotePreloadName

Added in API level 29
public static final int zygotePreloadName

Name of the class that gets invoked for preloading application code, when starting an isolatedProcess service that has useAppZygote set to true. This is a fully qualified class name (for example, com.mycompany.myapp.MyZygotePreload); as a short-hand if the first character of the class is a period then it is appended to your package name. The class must implement the ZygotePreload interface.

May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character;

Constant Value: 16844189 (0x0101059d)

Public constructors

attr

public attr ()