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

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.

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.

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

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

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

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

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.

This constant was deprecated
in API level 3.
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).

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.

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

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

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

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

Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.

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

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

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

Option to let applications specify that user data can/cannot be
cleared. This flag is turned on by default.
This attribute is usable only by applications
included in the system image. Third-party apps cannot use it.

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.

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.

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.

alwaysRetainTaskState

Specify whether an acitivty's task state should always be maintained
by the system, or if it is allowed to reset the task to its initial
state in certain situations.

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.

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.

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.

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.

Constant

Value

Description

audio

1

Apps which primarily work with audio or music, such as music players.

game

0

Apps which are primarily games.

image

3

Apps which primarily work with images or photos, such as camera or gallery apps.

maps

6

Apps which are primarily maps apps, such as navigation apps.

news

5

Apps which are primarily news apps, such as newspapers, magazines, or sports apps.

productivity

7

Apps which are primarily productivity apps, such as cloud storage or workplace apps.

social

4

Apps which are primarily social apps, such as messaging, communication, email, or social network apps.

video

2

Apps which primarily work with video or movies, such as streaming video apps.

Constant Value:
16844101
(0x01010545)

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;

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;

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)

autoSizeMaxTextSize

May be a dimension value, which is a floating point number appended with a
unit such as "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

May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).

autoSizePresetSizes

Resource array of dimensions to be used in conjunction with
autoSizeTextType set to uniform. Overrides
autoSizeStepGranularity if set.

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

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

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

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

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

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;

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

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)

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

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

bottom

May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).

bottomLeftRadius

May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).

bottomOffset

May be a dimension value, which is a floating point number appended with a
unit such as "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

May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).

buttonCornerRadius

May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).

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

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.

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;

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

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.

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:
16843732
(0x010103d4)

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:
16843023
(0x0101010f)

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:
16843024
(0x01010110)

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:
16843731
(0x010103d3)

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
setMultiChoiceModeListener(AbsListView.MultiChoiceModeListener) to control the
selection mode. This uses the ActionMode API.

Must be one of the following constant values.

Constant

Value

Description

multipleChoice

2

The list allows multiple choices.

multipleChoiceModal

3

The list allows multiple choices in a custom selection mode.

none

0

Normal list that does not indicate choices.

singleChoice

1

The list allows up to one choice.

Constant Value:
16843051
(0x0101012b)

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 PackageParserException 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

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.

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.

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

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.

columnWidth

May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).

compatibleWidthLimitDp

Starting with 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.

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.

Constant

Value

Description

colorMode

4000

The color mode of the screen has changed (color gamut or dynamic range).

density

1000

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

fontScale

40000000

The font scaling factor has changed, that is the user has
selected a new global font size.

keyboard

10

The keyboard type has changed, for example the user has plugged
in an external keyboard.

keyboardHidden

20

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

layoutDirection

2000

The layout direction has changed. For example going from LTR to RTL.

locale

4

The locale has changed, that is the user has selected a new
language that text should be displayed in.

mcc

1

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

mnc

2

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

navigation

40

The navigation type has changed. Should never normally happen.

orientation

80

The screen orientation has changed, that is the user has
rotated the device.

screenLayout

100

The screen layout has changed. This might be caused by a
different display being activated.

screenSize

400

The current available screen size has changed. If applications don't
target at least 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.

smallestScreenSize

800

The physical screen size has changed. If applications don't
target at least 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.

touchscreen

8

The touchscreen has changed. Should never normally happen.

uiMode

200

The global user interface mode has changed. For example,
going in or out of car mode, night mode changing, etc.

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

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

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

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

Minimum inset for content views within a bar. Navigation buttons and
menu views are excepted. Only valid for some themes and configurations.

May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).

contentInsetStartWithNavigation

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

cycles

dashGap

May be a dimension value, which is a floating point number appended with a
unit such as "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

May be a dimension value, which is a floating point number appended with a
unit such as "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

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;

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.

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.

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

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.

dialogCornerRadius

May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).

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

dialogPreferredPadding

May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).

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;

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.

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

dividerPadding

May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).

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 taskss list.

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

drawablePadding

May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).

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.

Constant

Value

Description

auto

0

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

high

2

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

low

1

Low quality. When set to low quality, the drawing cache uses a lower color
depth, thus losing precision in rendering gradients, but uses less memory.
Deprecated: The view drawing cache was largely made obsolete with the introduction
of hardware-accelerated rendering in API 11.

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.

Constant

Value

Description

fill_parent

ffffffff

The dropdown should fit the height of the screen.
This constant is deprecated starting from API Level 8 and
is replaced by match_parent.

match_parent

ffffffff

The dropdown should fit the height of the screen.
Introduced in API Level 8.

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

dropDownVerticalOffset

May be a dimension value, which is a floating point number appended with a
unit such as "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)

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.

Constant

Value

Description

fill_parent

ffffffff

The dropdown should fill the width of the screen.
This constant is deprecated starting from API Level 8 and
is replaced by match_parent.

match_parent

ffffffff

The dropdown should fit the width of the screen.
Introduced in API Level 8.

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

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

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 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
transtion 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

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

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

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

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:
16842834
(0x01010052)

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

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

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

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

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

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.

fadingEdge

This attribute is ignored in API level 14
(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.

Constant

Value

Description

horizontal

1000

Fades horizontal edges only.

none

0

No edge is faded.

vertical

2000

Fades vertical edges only.

Constant Value:
16842975
(0x010100df)

fadingEdgeLength

May be a dimension value, which is a floating point number appended with a
unit such as "14.5sp".
Available units are: px (pixels), dp (density-independent pixels),
sp (scaled pixels based on preferred font size), in (inches), and
mm (millimeters).

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.

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.

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

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

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.

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

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

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

Constant

Value

Description

auto

10

Constant Value:
16842970
(0x010100da)

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.

fontProviderCerts

The sets of hashes for the certificates the provider should be signed with. This is
used to verify the identity of the provider, and is only required if the provider is not
part of the system image. This value may point to one list or a list of lists, where each
individual list represents one collection of signature hashes. Refer to your font provider's
documentation for these values.

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

fontStyle

The style of the given font file. This will be used when the font is being loaded into
the font stack and will override any style information in the font's header tables. If
unspecified, the value in the font's header tables will be used.

Must be one of the following constant values.

Constant

Value

Description

italic

1

normal

0

Constant Value:
16844095
(0x0101053f)

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

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.

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.

Constant

Value

Description

bottom

50

Push object to the bottom of its container, not changing its size.

center

11

Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.

center_horizontal

1

Place object in the horizontal center of its container, not changing its size.

center_vertical

10

Place object in the vertical center of its container, not changing its size.

clip_horizontal

8

Additional option that can be set to have the left and/or right edges of
the child clipped to its container's bounds.
The clip will be based on the horizontal gravity: a left gravity will clip the right
edge, a right gravity will clip the left edge, and neither will clip both edges.

clip_vertical

80

Additional option that can be set to have the top and/or bottom edges of
the child clipped to its container's bounds.
The clip will be based on the vertical gravity: a top gravity will clip the bottom
edge, a bottom gravity will clip the top edge, and neither will clip both edges.

fill

77

Grow the horizontal and vertical size of the object if needed so it completely fills its container.

fill_horizontal

7

Grow the horizontal size of the object if needed so it completely fills its container.

fill_vertical

70

Grow the vertical size of the object if needed so it completely fills its container.

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

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

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;

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.

fromXDelta

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

May be a dimension value, which is a floating point number appended with a
unit such as "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

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

May be a dimension value, which is a floating point number appended with a
unit such as "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

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

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.

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.

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

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.