java.lang.Object | |
↳ | android.R.styleable |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int[] | AbsListView | Attributes that can be used with a AbsListView. | |||||||||
int | AbsListView_cacheColorHint | Indicates that this list will always be drawn on top of solid, single-color opaque background. |
|||||||||
int | AbsListView_drawSelectorOnTop | When set to true, the selector will be drawn over the selected item. |
|||||||||
int | AbsListView_fastScrollEnabled | Enables the fast scroll thumb that can be dragged to quickly scroll through the list. |
|||||||||
int | AbsListView_listSelector | Drawable used to indicate the currently selected item in the list. |
|||||||||
int | AbsListView_scrollingCache | When set to true, the list uses a drawing cache during scrolling. |
|||||||||
int | AbsListView_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 | AbsListView_stackFromBottom | Used by ListView and GridView to stack their content from the bottom. |
|||||||||
int | AbsListView_textFilterEnabled | When set to true, the list will filter results as the user types. |
|||||||||
int | AbsListView_transcriptMode | Sets the transcript mode for the list. |
|||||||||
int[] | AbsSpinner | Attributes that can be used with a AbsSpinner. | |||||||||
int | AbsSpinner_entries | Reference to an array resource that will populate the Spinner. |
|||||||||
int[] | AbsoluteLayout_Layout | Attributes that can be used with a AbsoluteLayout_Layout. | |||||||||
int | AbsoluteLayout_Layout_layout_x | This symbol is the offset where the |
|||||||||
int | AbsoluteLayout_Layout_layout_y | This symbol is the offset where the |
|||||||||
int[] | AccelerateInterpolator | Attributes that can be used with a AccelerateInterpolator. | |||||||||
int | AccelerateInterpolator_factor | This is the amount of deceleration to add when easing in. |
|||||||||
int[] | AccountAuthenticator | Use account-authenticator as the root tag of the XML resource that
describes an account authenticator. |
|||||||||
int | AccountAuthenticator_accountPreferences | A preferences.xml file for authenticator-specific settings. |
|||||||||
int | AccountAuthenticator_accountType | The account type this authenticator handles. |
|||||||||
int | AccountAuthenticator_icon | The icon of the authenticator. |
|||||||||
int | AccountAuthenticator_label | The user-visible name of the authenticator. |
|||||||||
int | AccountAuthenticator_smallIcon | Smaller icon of the authenticator. |
|||||||||
int[] | AlertDialog | The set of attributes that describe a AlertDialog's theme. | |||||||||
int | AlertDialog_bottomBright | This symbol is the offset where the |
|||||||||
int | AlertDialog_bottomDark | This symbol is the offset where the |
|||||||||
int | AlertDialog_bottomMedium | This symbol is the offset where the |
|||||||||
int | AlertDialog_centerBright | This symbol is the offset where the |
|||||||||
int | AlertDialog_centerDark | This symbol is the offset where the |
|||||||||
int | AlertDialog_centerMedium | This symbol is the offset where the |
|||||||||
int | AlertDialog_fullBright | This symbol is the offset where the |
|||||||||
int | AlertDialog_fullDark | This symbol is the offset where the |
|||||||||
int | AlertDialog_topBright | This symbol is the offset where the |
|||||||||
int | AlertDialog_topDark | This symbol is the offset where the |
|||||||||
int[] | AlphaAnimation | Attributes that can be used with a AlphaAnimation. | |||||||||
int | AlphaAnimation_fromAlpha | This symbol is the offset where the |
|||||||||
int | AlphaAnimation_toAlpha | This symbol is the offset where the |
|||||||||
int[] | AnalogClock | Attributes that can be used with a AnalogClock. | |||||||||
int | AnalogClock_dial | This symbol is the offset where the |
|||||||||
int | AnalogClock_hand_hour | This symbol is the offset where the |
|||||||||
int | AnalogClock_hand_minute | This symbol is the offset where the |
|||||||||
int[] | AndroidManifest | The manifest tag is the root of an
AndroidManifest.xml file,
describing the contents of an Android package (.apk) file. |
|||||||||
int[] | AndroidManifestAction | Attributes that can be supplied in an AndroidManifest.xml
action tag, a child of the
intent-filter tag. |
|||||||||
int | AndroidManifestAction_name | The name of an action that is handled, using the Java-style naming convention. |
|||||||||
int[] | AndroidManifestActivity | The activity tag declares an
Activity class that is available
as part of the package's application components, implementing
a part of the application's user interface. |
|||||||||
int[] | AndroidManifestActivityAlias | The activity-alias tag declares a new
name for an existing activity
tag. |
|||||||||
int | AndroidManifestActivityAlias_enabled | Specify whether the activity-alias is enabled or not (that is, can be instantiated by the system). |
|||||||||
int | AndroidManifestActivityAlias_exported | Flag indicating whether the given application component is available to other applications. |
|||||||||
int | AndroidManifestActivityAlias_icon | A Drawable resource providing a graphical representation of its associated item. |
|||||||||
int | AndroidManifestActivityAlias_label | A user-legible name for the given item. |
|||||||||
int | AndroidManifestActivityAlias_name | Required name of the class implementing the activity, deriving from
|
|||||||||
int | AndroidManifestActivityAlias_permission | Specify a permission that a client is required to have in order to use the associated object. |
|||||||||
int | AndroidManifestActivityAlias_targetActivity | The name of the activity this alias should launch. |
|||||||||
int | AndroidManifestActivity_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 | AndroidManifestActivity_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. |
|||||||||
int | AndroidManifestActivity_clearTaskOnLaunch | Specify whether an activity's task should be cleared when it is re-launched from the home screen. |
|||||||||
int | AndroidManifestActivity_configChanges | Specify one or more configuration changes that the activity will handle itself. |
|||||||||
int | AndroidManifestActivity_enabled | Specify whether the activity is enabled or not (that is, can be instantiated by the system). |
|||||||||
int | AndroidManifestActivity_excludeFromRecents | Indicates that an Activity should be excluded from the list of recently launched activities. |
|||||||||
int | AndroidManifestActivity_exported | Flag indicating whether the given application component is available to other applications. |
|||||||||
int | AndroidManifestActivity_finishOnCloseSystemDialogs | Specify whether an activity should be finished when a "close system windows" request has been made. |
|||||||||
int | AndroidManifestActivity_finishOnTaskLaunch | Specify whether an activity should be finished when its task is brought to the foreground by relaunching from the home screen. |
|||||||||
int | AndroidManifestActivity_icon | A Drawable resource providing a graphical representation of its associated item. |
|||||||||
int | AndroidManifestActivity_label | A user-legible name for the given item. |
|||||||||
int | AndroidManifestActivity_launchMode | Specify how an activity should be launched. |
|||||||||
int | AndroidManifestActivity_multiprocess | Specify whether a component is allowed to have multiple instances of itself running in different processes. |
|||||||||
int | AndroidManifestActivity_name | Required name of the class implementing the activity, deriving from
|
|||||||||
int | AndroidManifestActivity_noHistory | Specify whether an activity should be kept in its history stack. |
|||||||||
int | AndroidManifestActivity_permission | Specify a permission that a client is required to have in order to use the associated object. |
|||||||||
int | AndroidManifestActivity_process | Specify a specific process that the associated code is to run in. |
|||||||||
int | AndroidManifestActivity_screenOrientation | Specify the orientation an activity should be run in. |
|||||||||
int | AndroidManifestActivity_stateNotNeeded | Indicates that an Activity does not need to have its freeze state
(as returned by |
|||||||||
int | AndroidManifestActivity_taskAffinity | Specify a task name that activities have an "affinity" to. |
|||||||||
int | AndroidManifestActivity_theme | The overall theme to use for an activity. |
|||||||||
int | AndroidManifestActivity_windowSoftInputMode | Specify the default soft-input mode for the main window of this activity. |
|||||||||
int[] | AndroidManifestApplication | The application tag describes application-level components
contained in the package, as well as general application
attributes. |
|||||||||
int | AndroidManifestApplication_allowBackup | This is not the attribute you are looking for. |
|||||||||
int | AndroidManifestApplication_allowClearUserData | Option to let applications specify that user data can/cannot be cleared. |
|||||||||
int | AndroidManifestApplication_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 | AndroidManifestApplication_backupAgent | The name of the class implementing |
|||||||||
int | AndroidManifestApplication_debuggable | Flag indicating whether the application can be debugged, even when running on a device that is running in user mode. |
|||||||||
int | AndroidManifestApplication_description | Descriptive text for the associated data. |
|||||||||
int | AndroidManifestApplication_enabled | Specify whether the components in this application are enabled or not (that is, can be instantiated by the system). |
|||||||||
int | AndroidManifestApplication_hasCode | Indicate whether this application contains code. |
|||||||||
int | AndroidManifestApplication_icon | A Drawable resource providing a graphical representation of its associated item. |
|||||||||
int | AndroidManifestApplication_killAfterRestore | Whether the application in question should be terminated after its settings have been restored. |
|||||||||
int | AndroidManifestApplication_label | A user-legible name for the given item. |
|||||||||
int | AndroidManifestApplication_manageSpaceActivity | Name of activity to be launched for managing the application's space on the device. |
|||||||||
int | AndroidManifestApplication_name | An optional name of a class implementing the overall
|
|||||||||
int | AndroidManifestApplication_permission | Specify a permission that a client is required to have in order to use the associated object. |
|||||||||
int | AndroidManifestApplication_persistent | Flag to control special persistent mode of an application. |
|||||||||
int | AndroidManifestApplication_process | Specify a specific process that the associated code is to run in. |
|||||||||
int | AndroidManifestApplication_restoreNeedsApplication | Whether the application needs to have its own Application subclass active during restore. |
|||||||||
int | AndroidManifestApplication_taskAffinity | Specify a task name that activities have an "affinity" to. |
|||||||||
int | AndroidManifestApplication_testOnly | Option to indicate this application is only for testing purposes. |
|||||||||
int | AndroidManifestApplication_theme | The overall theme to use for an activity. |
|||||||||
int[] | AndroidManifestCategory | Attributes that can be supplied in an AndroidManifest.xml
category tag, a child of the
intent-filter tag. |
|||||||||
int | AndroidManifestCategory_name | The name of category that is handled, using the Java-style naming convention. |
|||||||||
int[] | AndroidManifestData | Attributes that can be supplied in an AndroidManifest.xml
data tag, a child of the
intent-filter tag, describing
the types of data that match. |
|||||||||
int | AndroidManifestData_host | Specify a URI authority host that is handled, as per
|
|||||||||
int | AndroidManifestData_mimeType | Specify a MIME type that is handled, as per
|
|||||||||
int | AndroidManifestData_path | Specify a URI path that must exactly match, as per
|
|||||||||
int | AndroidManifestData_pathPattern | Specify a URI path that matches a simple pattern, as per
|
|||||||||
int | AndroidManifestData_pathPrefix | Specify a URI path that must be a prefix to match, as per
|
|||||||||
int | AndroidManifestData_port | Specify a URI authority port that is handled, as per
|
|||||||||
int | AndroidManifestData_scheme | Specify a URI scheme that is handled, as per
|
|||||||||
int[] | AndroidManifestGrantUriPermission | Attributes that can be supplied in an AndroidManifest.xml
grant-uri-permission tag, a child of the
provider tag, describing a specific
URI path that can be granted as a permission. |
|||||||||
int | AndroidManifestGrantUriPermission_path | Specify a URI path that must exactly match, as per
|
|||||||||
int | AndroidManifestGrantUriPermission_pathPattern | Specify a URI path that matches a simple pattern, as per
|
|||||||||
int | AndroidManifestGrantUriPermission_pathPrefix | Specify a URI path that must be a prefix to match, as per
|
|||||||||
int[] | AndroidManifestInstrumentation | Attributes that can be supplied in an AndroidManifest.xml
instrumentation tag, a child of the root
manifest tag. |
|||||||||
int | AndroidManifestInstrumentation_functionalTest | Flag indicating that an Instrumentation class should be run as a functional test. |
|||||||||
int | AndroidManifestInstrumentation_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 | AndroidManifestInstrumentation_icon | A Drawable resource providing a graphical representation of its associated item. |
|||||||||
int | AndroidManifestInstrumentation_label | A user-legible name for the given item. |
|||||||||
int | AndroidManifestInstrumentation_name | Required name of the class implementing the instrumentation, deriving from
|
|||||||||
int | AndroidManifestInstrumentation_targetPackage | The name of the application package that an Instrumentation object will run against. |
|||||||||
int[] | AndroidManifestIntentFilter | The intent-filter tag is used to construct an
IntentFilter object that will be used
to determine which component can handle a particular
Intent that has been given to the system. |
|||||||||
int | AndroidManifestIntentFilter_icon | A Drawable resource providing a graphical representation of its associated item. |
|||||||||
int | AndroidManifestIntentFilter_label | A user-legible name for the given item. |
|||||||||
int | AndroidManifestIntentFilter_priority | Specify the relative importance or ability in handling a particular Intent. |
|||||||||
int[] | AndroidManifestMetaData | The meta-data tag is used to attach additional
arbitrary data to an application component. |
|||||||||
int | AndroidManifestMetaData_name | A unique name for the given item. |
|||||||||
int | AndroidManifestMetaData_resource | Resource identifier to assign to this piece of named meta-data. |
|||||||||
int | AndroidManifestMetaData_value | Concrete value to assign to this piece of named meta-data. |
|||||||||
int[] | AndroidManifestPathPermission | Attributes that can be supplied in an AndroidManifest.xml
path-permission tag, a child of the
provider tag, describing a permission
that allows access to a specific path in the provider. |
|||||||||
int | AndroidManifestPathPermission_path | Specify a URI path that must exactly match, as per
|
|||||||||
int | AndroidManifestPathPermission_pathPattern | Specify a URI path that matches a simple pattern, as per
|
|||||||||
int | AndroidManifestPathPermission_pathPrefix | Specify a URI path that must be a prefix to match, as per
|
|||||||||
int | AndroidManifestPathPermission_permission | Specify a permission that a client is required to have in order to use the associated object. |
|||||||||
int | AndroidManifestPathPermission_readPermission | A specific |
|||||||||
int | AndroidManifestPathPermission_writePermission | A specific |
|||||||||
int[] | AndroidManifestPermission | The permission tag declares a security permission that can be
used to control access from other packages to specific components or
features in your package (or other packages). |
|||||||||
int[] | AndroidManifestPermissionGroup | The permission-group tag declares a logical grouping of
related permissions. |
|||||||||
int | AndroidManifestPermissionGroup_description | Descriptive text for the associated data. |
|||||||||
int | AndroidManifestPermissionGroup_icon | A Drawable resource providing a graphical representation of its associated item. |
|||||||||
int | AndroidManifestPermissionGroup_label | A user-legible name for the given item. |
|||||||||
int | AndroidManifestPermissionGroup_name | Required public name of the permission group, permissions will use to specify the group they are in. |
|||||||||
int[] | AndroidManifestPermissionTree | The permission-tree tag declares the base of a tree of
permission values: it declares that this package has ownership of
the given permission name, as well as all names underneath it
(separated by '.'). |
|||||||||
int | AndroidManifestPermissionTree_icon | A Drawable resource providing a graphical representation of its associated item. |
|||||||||
int | AndroidManifestPermissionTree_label | A user-legible name for the given item. |
|||||||||
int | AndroidManifestPermissionTree_name | Required public name of the permission tree, which is the base name of all permissions under it. |
|||||||||
int | AndroidManifestPermission_description | Descriptive text for the associated data. |
|||||||||
int | AndroidManifestPermission_icon | A Drawable resource providing a graphical representation of its associated item. |
|||||||||
int | AndroidManifestPermission_label | A user-legible name for the given item. |
|||||||||
int | AndroidManifestPermission_name | Required public name of the permission, which other components and packages will use when referring to this permission. |
|||||||||
int | AndroidManifestPermission_permissionGroup | Specified the name of a group that this permission is associated with. |
|||||||||
int | AndroidManifestPermission_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[] | AndroidManifestProtectedBroadcast | Private tag to declare system protected broadcast actions. | |||||||||
int | AndroidManifestProtectedBroadcast_name | A unique name for the given item. |
|||||||||
int[] | AndroidManifestProvider | The provider tag declares a
ContentProvider class that is available
as part of the package's application components, supplying structured
access to data managed by the application. |
|||||||||
int | AndroidManifestProvider_authorities | Specify the authorities under which this content provider can be found. |
|||||||||
int | AndroidManifestProvider_enabled | Specify whether this provider is enabled or not (that is, can be instantiated by the system). |
|||||||||
int | AndroidManifestProvider_exported | Flag indicating whether the given application component is available to other applications. |
|||||||||
int | AndroidManifestProvider_grantUriPermissions | If true, the |
|||||||||
int | AndroidManifestProvider_icon | A Drawable resource providing a graphical representation of its associated item. |
|||||||||
int | AndroidManifestProvider_initOrder | Specify the order in which content providers hosted by a process are instantiated when that process is created. |
|||||||||
int | AndroidManifestProvider_label | A user-legible name for the given item. |
|||||||||
int | AndroidManifestProvider_multiprocess | Specify whether a component is allowed to have multiple instances of itself running in different processes. |
|||||||||
int | AndroidManifestProvider_name | Required name of the class implementing the provider, deriving from
|
|||||||||
int | AndroidManifestProvider_permission | Specify a permission that a client is required to have in order to use the associated object. |
|||||||||
int | AndroidManifestProvider_process | Specify a specific process that the associated code is to run in. |
|||||||||
int | AndroidManifestProvider_readPermission | A specific |
|||||||||
int | AndroidManifestProvider_syncable | Flag indicating whether this content provider would like to participate in data synchronization. |
|||||||||
int | AndroidManifestProvider_writePermission | A specific |
|||||||||
int[] | AndroidManifestReceiver | The receiver tag declares an
BroadcastReceiver class that is available
as part of the package's application components, allowing the
application to receive actions or data broadcast by other
applications even if it is not currently running. |
|||||||||
int | AndroidManifestReceiver_enabled | Specify whether the receiver is enabled or not (that is, can be instantiated by the system). |
|||||||||
int | AndroidManifestReceiver_exported | Flag indicating whether the given application component is available to other applications. |
|||||||||
int | AndroidManifestReceiver_icon | A Drawable resource providing a graphical representation of its associated item. |
|||||||||
int | AndroidManifestReceiver_label | A user-legible name for the given item. |
|||||||||
int | AndroidManifestReceiver_name | Required name of the class implementing the receiver, deriving from
|
|||||||||
int | AndroidManifestReceiver_permission | Specify a permission that a client is required to have in order to use the associated object. |
|||||||||
int | AndroidManifestReceiver_process | Specify a specific process that the associated code is to run in. |
|||||||||
int[] | AndroidManifestService | The service tag declares a
Service class that is available
as part of the package's application components, implementing
long-running background operations or a rich communication API
that can be called by other packages. |
|||||||||
int | AndroidManifestService_enabled | Specify whether the service is enabled or not (that is, can be instantiated by the system). |
|||||||||
int | AndroidManifestService_exported | Flag indicating whether the given application component is available to other applications. |
|||||||||
int | AndroidManifestService_icon | A Drawable resource providing a graphical representation of its associated item. |
|||||||||
int | AndroidManifestService_label | A user-legible name for the given item. |
|||||||||
int | AndroidManifestService_name | Required name of the class implementing the service, deriving from
|
|||||||||
int | AndroidManifestService_permission | Specify a permission that a client is required to have in order to use the associated object. |
|||||||||
int | AndroidManifestService_process | Specify a specific process that the associated code is to run in. |
|||||||||
int[] | AndroidManifestSupportsScreens | The supports-screens specifies the screen dimensions an
application supports. |
|||||||||
int | AndroidManifestSupportsScreens_anyDensity | Indicates whether the application can accommodate any screen density. |
|||||||||
int | AndroidManifestSupportsScreens_largeScreens | Indicates whether the application supports larger screen form-factors. |
|||||||||
int | AndroidManifestSupportsScreens_normalScreens | Indicates whether an application supports the normal screen form-factors. |
|||||||||
int | AndroidManifestSupportsScreens_resizeable | Indicates whether the application can resize itself to newer screen sizes. |
|||||||||
int | AndroidManifestSupportsScreens_smallScreens | Indicates whether the application supports smaller screen form-factors. |
|||||||||
int[] | AndroidManifestUsesConfiguration | The uses-configuration tag specifies
a specific hardware configuration value used by the application. |
|||||||||
int | AndroidManifestUsesConfiguration_reqFiveWayNav | Application's requirement for five way navigation Must be a boolean value, either " |
|||||||||
int | AndroidManifestUsesConfiguration_reqHardKeyboard | Application's requirement for a hard keyboard Must be a boolean value, either " |
|||||||||
int | AndroidManifestUsesConfiguration_reqKeyboardType | The input method preferred by an application. |
|||||||||
int | AndroidManifestUsesConfiguration_reqNavigation | The navigation device preferred by an application. |
|||||||||
int | AndroidManifestUsesConfiguration_reqTouchScreen | The type of touch screen used by an application. |
|||||||||
int[] | AndroidManifestUsesFeature | The uses-feature tag specifies
a specific feature used by the application. |
|||||||||
int | AndroidManifestUsesFeature_glEsVersion | The GLES driver version number needed by an application. |
|||||||||
int | AndroidManifestUsesFeature_name | The name of the feature that is being used. |
|||||||||
int | AndroidManifestUsesFeature_required | Specify whether this feature is required for the application. |
|||||||||
int[] | AndroidManifestUsesLibrary | The uses-libraries specifies a shared library that this
package requires to be linked against. |
|||||||||
int | AndroidManifestUsesLibrary_name | Required name of the library you use. |
|||||||||
int | AndroidManifestUsesLibrary_required | Specify whether this library is required for the application. |
|||||||||
int[] | AndroidManifestUsesPermission | The uses-permission tag requests a
<permission> that the containing
package must be granted in order for it to operate correctly. |
|||||||||
int | AndroidManifestUsesPermission_name | Required name of the permission you use, as published with the
corresponding name attribute of a
|
|||||||||
int[] | AndroidManifestUsesSdk | The uses-sdk tag describes the SDK features that the
containing package must be running on to operate correctly. |
|||||||||
int | AndroidManifestUsesSdk_maxSdkVersion | This is the maximum SDK version number that an application works on. |
|||||||||
int | AndroidManifestUsesSdk_minSdkVersion | This is the minimum SDK version number that the application requires. |
|||||||||
int | AndroidManifestUsesSdk_targetSdkVersion | This is the SDK version number that the application is targeting. |
|||||||||
int | AndroidManifest_sharedUserId | Specify the name of a user ID that will be shared between multiple packages. |
|||||||||
int | AndroidManifest_sharedUserLabel | Specify a label for the shared user UID of this package. |
|||||||||
int | AndroidManifest_versionCode | Internal version code. |
|||||||||
int | AndroidManifest_versionName | The text shown to the user to indicate the version they have. |
|||||||||
int[] | AnimatedRotateDrawable | Attributes that can be used with a AnimatedRotateDrawable. | |||||||||
int | AnimatedRotateDrawable_drawable | Reference to a drawable resource to use for the frame. |
|||||||||
int | AnimatedRotateDrawable_pivotX | This symbol is the offset where the |
|||||||||
int | AnimatedRotateDrawable_pivotY | This symbol is the offset where the |
|||||||||
int | AnimatedRotateDrawable_visible | Provides initial visibility state of the drawable; the default value is false. |
|||||||||
int[] | Animation | Attributes that can be used with a Animation. | |||||||||
int[] | AnimationDrawable | Attributes that can be used with a AnimationDrawable. | |||||||||
int[] | AnimationDrawableItem | Attributes that can be used with a AnimationDrawableItem. | |||||||||
int | AnimationDrawableItem_drawable | Reference to a drawable resource to use for the frame. |
|||||||||
int | AnimationDrawableItem_duration | Amount of time (in milliseconds) to display this frame. |
|||||||||
int | AnimationDrawable_oneshot | If true, the animation will only run a single time and then stop. |
|||||||||
int | AnimationDrawable_variablePadding | If true, allows the drawable's padding to change based on the current state that is selected. |
|||||||||
int | AnimationDrawable_visible | Provides initial visibility state of the drawable; the default value is false. |
|||||||||
int[] | AnimationSet | Attributes that can be used with a AnimationSet. | |||||||||
int | AnimationSet_shareInterpolator | This symbol is the offset where the |
|||||||||
int | Animation_detachWallpaper | Special option for window animations: if this window is on top of a wallpaper, don't animate the wallpaper with it. |
|||||||||
int | Animation_duration | Amount of time (in milliseconds) for the animation to run. |
|||||||||
int | Animation_fillAfter | When set to true, the animation transformation is applied after the animation is over. |
|||||||||
int | Animation_fillBefore | When set to true, the animation transformation is applied before the animation has started. |
|||||||||
int | Animation_fillEnabled | When set to true, fillAfter is taken into account. |
|||||||||
int | Animation_interpolator | Defines the interpolator used to smooth the animation movement in time. |
|||||||||
int | Animation_repeatCount | Defines how many times the animation should repeat. |
|||||||||
int | Animation_repeatMode | Defines the animation behavior when it reaches the end and the repeat count is greater than 0 or infinite. |
|||||||||
int | Animation_startOffset | Delay in milliseconds before the animation runs, once start time is reached. |
|||||||||
int | Animation_zAdjustment | Allows for an adjustment of the Z ordering of the content being animated for the duration of the animation. |
|||||||||
int[] | AnticipateInterpolator | Attributes that can be used with a AnticipateInterpolator. | |||||||||
int | AnticipateInterpolator_tension | This is the amount of tension. |
|||||||||
int[] | AnticipateOvershootInterpolator | Attributes that can be used with a AnticipateOvershootInterpolator. | |||||||||
int | AnticipateOvershootInterpolator_extraTension | This is the amount by which to multiply the tension. |
|||||||||
int | AnticipateOvershootInterpolator_tension | This is the amount of tension. |
|||||||||
int[] | AppWidgetProviderInfo | Use appwidget-provider as the root tag of the XML resource that
describes an AppWidget provider. |
|||||||||
int | AppWidgetProviderInfo_configure | A class name in the AppWidget's package to be launched to configure. |
|||||||||
int | AppWidgetProviderInfo_initialLayout | A resource id of a layout. |
|||||||||
int | AppWidgetProviderInfo_minHeight | Minimum height of the AppWidget. |
|||||||||
int | AppWidgetProviderInfo_minWidth | Minimum width of the AppWidget. |
|||||||||
int | AppWidgetProviderInfo_updatePeriodMillis | Update period in milliseconds, or 0 if the AppWidget will update itself. |
|||||||||
int[] | AutoCompleteTextView | Attributes that can be used with a AutoCompleteTextView. | |||||||||
int | AutoCompleteTextView_completionHint | Defines the hint displayed in the drop down menu. |
|||||||||
int | AutoCompleteTextView_completionHintView | Defines the hint view displayed in the drop down menu. |
|||||||||
int | AutoCompleteTextView_completionThreshold | Defines the number of characters that the user must type before completion suggestions are displayed in a drop down menu. |
|||||||||
int | AutoCompleteTextView_dropDownAnchor | View to anchor the auto-complete dropdown to. |
|||||||||
int | AutoCompleteTextView_dropDownHeight | Specifies the basic width of the dropdown. |
|||||||||
int | AutoCompleteTextView_dropDownHorizontalOffset | Amount of pixels by which the drop down should be offset horizontally. |
|||||||||
int | AutoCompleteTextView_dropDownSelector | Selector in a drop down list. |
|||||||||
int | AutoCompleteTextView_dropDownVerticalOffset | Amount of pixels by which the drop down should be offset vertically. |
|||||||||
int | AutoCompleteTextView_dropDownWidth | Specifies the basic width of the dropdown. |
|||||||||
int | AutoCompleteTextView_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[] | BitmapDrawable | Drawable used to draw bitmaps. | |||||||||
int | BitmapDrawable_antialias | Enables or disables antialiasing. |
|||||||||
int | BitmapDrawable_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 | BitmapDrawable_filter | Enables or disables bitmap filtering. |
|||||||||
int | BitmapDrawable_gravity | Defines the gravity for the bitmap. |
|||||||||
int | BitmapDrawable_src | Identifier of the bitmap file. |
|||||||||
int | BitmapDrawable_tileMode | Defines the tile mode. |
|||||||||
int[] | Button | Attributes that can be used with a Button. | |||||||||
int[] | CheckBoxPreference | Base attributes available to CheckBoxPreference. | |||||||||
int | CheckBoxPreference_disableDependentsState | The state (true for on, or false for off) that causes dependents to be disabled. |
|||||||||
int | CheckBoxPreference_summaryOff | The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is unchecked. |
|||||||||
int | CheckBoxPreference_summaryOn | The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is checked. |
|||||||||
int[] | CheckedTextView | Attributes that can be used with a CheckedTextView. | |||||||||
int | CheckedTextView_checkMark | Drawable used for the check mark graphic. |
|||||||||
int | CheckedTextView_checked | Indicates the initial checked state of this text. |
|||||||||
int[] | Chronometer | Attributes that can be used with a Chronometer. | |||||||||
int | Chronometer_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[] | ClipDrawable | Attributes that can be used with a ClipDrawable. | |||||||||
int | ClipDrawable_clipOrientation | The orientation for the clip. |
|||||||||
int | ClipDrawable_drawable | Reference to a drawable resource to draw with the specified scale. |
|||||||||
int | ClipDrawable_gravity | Specifies where to clip within the drawable. |
|||||||||
int[] | ColorDrawable | Drawable used to draw a single color. | |||||||||
int | ColorDrawable_color | The color to use. |
|||||||||
int[] | CompoundButton | Attributes that can be used with a CompoundButton. | |||||||||
int | CompoundButton_button | Drawable used for the button graphic (e.g. |
|||||||||
int | CompoundButton_checked | Indicates the initial checked state of this button. |
|||||||||
int[] | ContactsDataKind | Maps a specific contact data MIME-type to styling information. | |||||||||
int | ContactsDataKind_detailColumn | Column in data table that contains details for this data. |
|||||||||
int | ContactsDataKind_detailSocialSummary | Flag indicating that detail should be built from SocialProvider. |
|||||||||
int | ContactsDataKind_icon | Icon used to represent data of this kind. |
|||||||||
int | ContactsDataKind_mimeType | Mime-type handled by this mapping. |
|||||||||
int | ContactsDataKind_summaryColumn | Column in data table that summarizes this data. |
|||||||||
int[] | CycleInterpolator | Attributes that can be used with a CycleInterpolator. | |||||||||
int | CycleInterpolator_cycles | This symbol is the offset where the |
|||||||||
int[] | DatePicker | Attributes that can be used with a DatePicker. | |||||||||
int | DatePicker_endYear | The last year (inclusive), for example "2010". |
|||||||||
int | DatePicker_startYear | The first year (inclusive), for example "1940". |
|||||||||
int[] | DecelerateInterpolator | Attributes that can be used with a DecelerateInterpolator. | |||||||||
int | DecelerateInterpolator_factor | This is the amount of acceleration to add when easing out. |
|||||||||
int[] | DialogPreference | Base attributes available to DialogPreference. | |||||||||
int | DialogPreference_dialogIcon | The icon for the dialog. |
|||||||||
int | DialogPreference_dialogLayout | A layout to be used as the content View for the dialog. |
|||||||||
int | DialogPreference_dialogMessage | The message in the dialog. |
|||||||||
int | DialogPreference_dialogTitle | The title in the dialog. |
|||||||||
int | DialogPreference_negativeButtonText | The negative button text for the dialog. |
|||||||||
int | DialogPreference_positiveButtonText | The positive button text for the dialog. |
|||||||||
int[] | Drawable | Base attributes that are available to all Drawable objects. | |||||||||
int[] | DrawableCorners | Attributes that can be used with a DrawableCorners. | |||||||||
int | DrawableCorners_bottomLeftRadius | This symbol is the offset where the |
|||||||||
int | DrawableCorners_bottomRightRadius | This symbol is the offset where the |
|||||||||
int | DrawableCorners_radius | This symbol is the offset where the |
|||||||||
int | DrawableCorners_topLeftRadius | This symbol is the offset where the |
|||||||||
int | DrawableCorners_topRightRadius | This symbol is the offset where the |
|||||||||
int[] | DrawableStates | Drawable states. | |||||||||
int | DrawableStates_state_active | State value for |
|||||||||
int | DrawableStates_state_checkable | State identifier indicating that the object may display a check mark. |
|||||||||
int | DrawableStates_state_checked | State identifier indicating that the object is currently checked. |
|||||||||
int | DrawableStates_state_enabled | State value for |
|||||||||
int | DrawableStates_state_first | State value for |
|||||||||
int | DrawableStates_state_focused | State value for |
|||||||||
int | DrawableStates_state_last | State value for |
|||||||||
int | DrawableStates_state_middle | State value for |
|||||||||
int | DrawableStates_state_pressed | State value for |
|||||||||
int | DrawableStates_state_selected | State value for |
|||||||||
int | DrawableStates_state_single | State value for |
|||||||||
int | DrawableStates_state_window_focused | State value for |
|||||||||
int | Drawable_visible | Provides initial visibility state of the drawable; the default value is false. |
|||||||||
int[] | EditText | Attributes that can be used with a EditText. | |||||||||
int[] | ExpandableListChildIndicatorState | State array representing an expandable list child's indicator. | |||||||||
int | ExpandableListChildIndicatorState_state_last | State identifier indicating the child is the last child within its group. |
|||||||||
int[] | ExpandableListGroupIndicatorState | State array representing an expandable list group's indicator. | |||||||||
int | ExpandableListGroupIndicatorState_state_empty | State identifier indicating the group is empty (has no children). |
|||||||||
int | ExpandableListGroupIndicatorState_state_expanded | State identifier indicating the group is expanded. |
|||||||||
int[] | ExpandableListView | Attributes that can be used with a ExpandableListView. | |||||||||
int | ExpandableListView_childDivider | Drawable or color that is used as a divider for children. |
|||||||||
int | ExpandableListView_childIndicator | Indicator shown beside the child View. |
|||||||||
int | ExpandableListView_childIndicatorLeft | The left bound for a child's indicator. |
|||||||||
int | ExpandableListView_childIndicatorRight | The right bound for a child's indicator. |
|||||||||
int | ExpandableListView_groupIndicator | Indicator shown beside the group View. |
|||||||||
int | ExpandableListView_indicatorLeft | The left bound for an item's indicator. |
|||||||||
int | ExpandableListView_indicatorRight | The right bound for an item's indicator. |
|||||||||
int[] | Extra | An extra data value to place into a an extra/name value pair held
in a Bundle, as per Bundle . |
|||||||||
int | Extra_name | Required name of the extra data. |
|||||||||
int | Extra_value | Concrete value to put for this named extra data. |
|||||||||
int[] | FrameLayout | Attributes that can be used with a FrameLayout. | |||||||||
int[] | FrameLayout_Layout | Attributes that can be used with a FrameLayout_Layout. | |||||||||
int | FrameLayout_Layout_layout_gravity | Standard gravity constant that a child can supply to its parent. |
|||||||||
int | FrameLayout_foreground | Defines the drawable to draw over the content. |
|||||||||
int | FrameLayout_foregroundGravity | Defines the gravity to apply to the foreground drawable. |
|||||||||
int | FrameLayout_measureAllChildren | Determines whether to measure all children or just those in the VISIBLE or INVISIBLE state when measuring. |
|||||||||
int[] | Gallery | Attributes that can be used with a Gallery. | |||||||||
int | Gallery_animationDuration | Sets how long a transition animation should run (in milliseconds) when layout has changed. |
|||||||||
int | Gallery_gravity | Specifies how to place the content of an object, both on the x- and y-axis, within the object itself. |
|||||||||
int | Gallery_spacing | This symbol is the offset where the |
|||||||||
int | Gallery_unselectedAlpha | Sets the alpha on the items that are not selected. |
|||||||||
int[] | GestureOverlayView | GestureOverlayView specific attributes. | |||||||||
int | GestureOverlayView_eventsInterceptionEnabled | Defines whether the overlay should intercept the motion events when a gesture is recognized. |
|||||||||
int | GestureOverlayView_fadeDuration | Duration, in milliseconds, of the fade out effect after the user is done drawing a gesture. |
|||||||||
int | GestureOverlayView_fadeEnabled | Defines whether the gesture will automatically fade out after being recognized. |
|||||||||
int | GestureOverlayView_fadeOffset | Time, in milliseconds, to wait before the gesture fades out after the user is done drawing it. |
|||||||||
int | GestureOverlayView_gestureColor | Color used to draw a gesture. |
|||||||||
int | GestureOverlayView_gestureStrokeAngleThreshold | Minimum curve angle a stroke must contain before it is recognized as a gesture. |
|||||||||
int | GestureOverlayView_gestureStrokeLengthThreshold | Minimum length of a stroke before it is recognized as a gesture. |
|||||||||
int | GestureOverlayView_gestureStrokeSquarenessThreshold | Squareness threshold of a stroke before it is recognized as a gesture. |
|||||||||
int | GestureOverlayView_gestureStrokeType | Defines the type of strokes that define a gesture. |
|||||||||
int | GestureOverlayView_gestureStrokeWidth | Width of the stroke used to draw the gesture. |
|||||||||
int | GestureOverlayView_orientation | Indicates whether horizontal (when the orientation is vertical) or vertical (when orientation is horizontal) strokes automatically define a gesture. |
|||||||||
int | GestureOverlayView_uncertainGestureColor | Color used to draw the user's strokes until we are sure it's a gesture. |
|||||||||
int[] | GradientDrawable | Attributes that can be used with a GradientDrawable. | |||||||||
int[] | GradientDrawableGradient | Attributes that can be used with a GradientDrawableGradient. | |||||||||
int | GradientDrawableGradient_angle | This symbol is the offset where the |
|||||||||
int | GradientDrawableGradient_centerColor | Optional center color. |
|||||||||
int | GradientDrawableGradient_centerX | This symbol is the offset where the |
|||||||||
int | GradientDrawableGradient_centerY | This symbol is the offset where the |
|||||||||
int | GradientDrawableGradient_endColor | This symbol is the offset where the |
|||||||||
int | GradientDrawableGradient_gradientRadius | This symbol is the offset where the |
|||||||||
int | GradientDrawableGradient_startColor | This symbol is the offset where the |
|||||||||
int | GradientDrawableGradient_type | This symbol is the offset where the |
|||||||||
int | GradientDrawableGradient_useLevel | This symbol is the offset where the |
|||||||||
int[] | GradientDrawablePadding | Attributes that can be used with a GradientDrawablePadding. | |||||||||
int | GradientDrawablePadding_bottom | This symbol is the offset where the |
|||||||||
int | GradientDrawablePadding_left | This symbol is the offset where the |
|||||||||
int | GradientDrawablePadding_right | This symbol is the offset where the |
|||||||||
int | GradientDrawablePadding_top | This symbol is the offset where the |
|||||||||
int[] | GradientDrawableSize | Attributes that can be used with a GradientDrawableSize. | |||||||||
int | GradientDrawableSize_height | Makes the TextView be exactly this many pixels tall. |
|||||||||
int | GradientDrawableSize_width | Makes the TextView be exactly this many pixels wide. |
|||||||||
int[] | GradientDrawableSolid | Attributes that can be used with a GradientDrawableSolid. | |||||||||
int | GradientDrawableSolid_color | This symbol is the offset where the |
|||||||||
int[] | GradientDrawableStroke | Attributes that can be used with a GradientDrawableStroke. | |||||||||
int | GradientDrawableStroke_color | This symbol is the offset where the |
|||||||||
int | GradientDrawableStroke_dashGap | This symbol is the offset where the |
|||||||||
int | GradientDrawableStroke_dashWidth | This symbol is the offset where the |
|||||||||
int | GradientDrawableStroke_width | Makes the TextView be exactly this many pixels wide. |
|||||||||
int | GradientDrawable_innerRadius | Inner radius of the ring. |
|||||||||
int | GradientDrawable_innerRadiusRatio | Inner radius of the ring expressed as a ratio of the ring's width. |
|||||||||
int | GradientDrawable_shape | This symbol is the offset where the |
|||||||||
int | GradientDrawable_thickness | Thickness of the ring. |
|||||||||
int | GradientDrawable_thicknessRatio | Thickness of the ring expressed as a ratio of the ring's width. |
|||||||||
int | GradientDrawable_useLevel | This symbol is the offset where the |
|||||||||
int | GradientDrawable_visible | Provides initial visibility state of the drawable; the default value is false. |
|||||||||
int[] | GridLayoutAnimation | Attributes that can be used with a GridLayoutAnimation. | |||||||||
int | GridLayoutAnimation_columnDelay | Fraction of the animation duration used to delay the beginning of the animation of each column. |
|||||||||
int | GridLayoutAnimation_direction | Direction of the animation in the grid. |
|||||||||
int | GridLayoutAnimation_directionPriority | Priority of the rows and columns. |
|||||||||
int | GridLayoutAnimation_rowDelay | Fraction of the animation duration used to delay the beginning of the animation of each row. |
|||||||||
int[] | GridView | Attributes that can be used with a GridView. | |||||||||
int | GridView_columnWidth | This symbol is the offset where the |
|||||||||
int | GridView_gravity | Specifies how to place the content of an object, both on the x- and y-axis, within the object itself. |
|||||||||
int | GridView_horizontalSpacing | This symbol is the offset where the |
|||||||||
int | GridView_numColumns | This symbol is the offset where the |
|||||||||
int | GridView_stretchMode | This symbol is the offset where the |
|||||||||
int | GridView_verticalSpacing | This symbol is the offset where the |
|||||||||
int[] | HorizontalScrollView | Attributes that can be used with a HorizontalScrollView. | |||||||||
int | HorizontalScrollView_fillViewport | Defines whether the scrollview should stretch its content to fill the viewport. |
|||||||||
int[] | Icon | Attributes that can be used with a Icon. | |||||||||
int[] | IconDefault | Attributes that can be used with a IconDefault. | |||||||||
int | IconDefault_icon | A Drawable resource providing a graphical representation of its associated item. |
|||||||||
int[] | IconMenuView | Attributes that can be used with a IconMenuView. | |||||||||
int | IconMenuView_maxItemsPerRow | Defines the maximum number of items per row. |
|||||||||
int | IconMenuView_maxRows | Defines the maximum number of rows displayed. |
|||||||||
int | IconMenuView_moreIcon | 'More' icon. |
|||||||||
int | IconMenuView_rowHeight | Defines the height of each row. |
|||||||||
int | Icon_icon | A Drawable resource providing a graphical representation of its associated item. |
|||||||||
int | Icon_mimeType | Specify a MIME type that is handled, as per
|
|||||||||
int[] | ImageSwitcher | Attributes that can be used with a ImageSwitcher. | |||||||||
int[] | ImageView | Attributes that can be used with a ImageView. | |||||||||
int | ImageView_adjustViewBounds | Set this to true if you want the ImageView to adjust its bounds to preserve the aspect ratio of its drawable. |
|||||||||
int | ImageView_baselineAlignBottom | If true, the image view will be baseline aligned with based on its bottom edge. |
|||||||||
int | ImageView_cropToPadding | If true, the image will be cropped to fit within its padding. |
|||||||||
int | ImageView_maxHeight | An optional argument to supply a maximum height for this view. |
|||||||||
int | ImageView_maxWidth | An optional argument to supply a maximum width for this view. |
|||||||||
int | ImageView_scaleType | Controls how the image should be resized or moved to match the size of this ImageView. |
|||||||||
int | ImageView_src | Sets a drawable as the content of this ImageView. |
|||||||||
int | ImageView_tint | Set a tinting color for the image. |
|||||||||
int[] | InputExtras | An input-extras is a container for extra data to supply to
an input method. |
|||||||||
int[] | InputMethod | Use input-method as the root tag of the XML resource that
describes an
InputMethod service, which is
referenced from its
SERVICE_META_DATA
meta-data entry. |
|||||||||
int[] | InputMethodService | Attributes that can be used with a InputMethodService. | |||||||||
int | InputMethodService_imeExtractEnterAnimation | Animation to use when showing the fullscreen extract UI after it had previously been hidden. |
|||||||||
int | InputMethodService_imeExtractExitAnimation | Animation to use when hiding the fullscreen extract UI after it had previously been shown. |
|||||||||
int | InputMethodService_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 | InputMethod_isDefault | Set to true in all of the configurations for which this input method should be considered an option as the default. |
|||||||||
int | InputMethod_settingsActivity | Component name of an activity that allows the user to modify the settings for this input method. |
|||||||||
int[] | InsetDrawable | Attributes that can be used with a InsetDrawable. | |||||||||
int | InsetDrawable_drawable | Reference to a drawable resource to use for the frame. |
|||||||||
int | InsetDrawable_insetBottom | This symbol is the offset where the |
|||||||||
int | InsetDrawable_insetLeft | This symbol is the offset where the |
|||||||||
int | InsetDrawable_insetRight | This symbol is the offset where the |
|||||||||
int | InsetDrawable_insetTop | This symbol is the offset where the |
|||||||||
int | InsetDrawable_visible | Provides initial visibility state of the drawable; the default value is false. |
|||||||||
int[] | Intent | Declaration of an Intent object in XML. |
|||||||||
int[] | IntentCategory | A category to add to an Intent, as per
Intent.addCategory() . |
|||||||||
int | IntentCategory_name | Required name of the category. |
|||||||||
int | Intent_action | The action name to assign to the Intent, as per
|
|||||||||
int | Intent_data | The data URI to assign to the Intent, as per
|
|||||||||
int | Intent_mimeType | The MIME type name to assign to the Intent, as per
|
|||||||||
int | Intent_targetClass | The class part of the ComponentName to assign to the Intent, as per
|
|||||||||
int | Intent_targetPackage | The package part of the ComponentName to assign to the Intent, as per
|
|||||||||
int[] | Keyboard | Attributes that can be used with a Keyboard. | |||||||||
int[] | KeyboardView | Attributes that can be used with a KeyboardView. | |||||||||
int[] | KeyboardViewPreviewState | Attributes that can be used with a KeyboardViewPreviewState. | |||||||||
int | KeyboardViewPreviewState_state_long_pressable | State for |
|||||||||
int | KeyboardView_keyBackground | Image for the key. |
|||||||||
int | KeyboardView_keyPreviewHeight | Height of the key press feedback popup. |
|||||||||
int | KeyboardView_keyPreviewLayout | Layout resource for key press feedback. |
|||||||||
int | KeyboardView_keyPreviewOffset | Vertical offset of the key press feedback from the key. |
|||||||||
int | KeyboardView_keyTextColor | Color to use for the label in a key. |
|||||||||
int | KeyboardView_keyTextSize | Size of the text for character keys. |
|||||||||
int | KeyboardView_labelTextSize | Size of the text for custom keys with some text and no icon. |
|||||||||
int | KeyboardView_popupLayout | Layout resource for popup keyboards. |
|||||||||
int | KeyboardView_shadowColor | Place a shadow of the specified color behind the text. |
|||||||||
int | KeyboardView_shadowRadius | Radius of the shadow. |
|||||||||
int | KeyboardView_verticalCorrection | Amount to offset the touch Y coordinate by, for bias correction. |
|||||||||
int[] | Keyboard_Key | Attributes that can be used with a Keyboard_Key. | |||||||||
int | Keyboard_Key_codes | The unicode value or comma-separated values that this key outputs. |
|||||||||
int | Keyboard_Key_iconPreview | The icon to show in the popup preview. |
|||||||||
int | Keyboard_Key_isModifier | Whether this is a modifier key such as Alt or Shift. |
|||||||||
int | Keyboard_Key_isRepeatable | Whether long-pressing on this key will make it repeat. |
|||||||||
int | Keyboard_Key_isSticky | Whether this is a toggle key. |
|||||||||
int | Keyboard_Key_keyEdgeFlags | Key edge flags. |
|||||||||
int | Keyboard_Key_keyIcon | The icon to display on the key instead of the label. |
|||||||||
int | Keyboard_Key_keyLabel | The label to display on the key. |
|||||||||
int | Keyboard_Key_keyOutputText | The string of characters to output when this key is pressed. |
|||||||||
int | Keyboard_Key_keyboardMode | Mode of the keyboard. |
|||||||||
int | Keyboard_Key_popupCharacters | The characters to display in the popup keyboard. |
|||||||||
int | Keyboard_Key_popupKeyboard | The XML keyboard layout of any popup keyboard. |
|||||||||
int[] | Keyboard_Row | Attributes that can be used with a Keyboard_Row. | |||||||||
int | Keyboard_Row_keyboardMode | Mode of the keyboard. |
|||||||||
int | Keyboard_Row_rowEdgeFlags | Row edge flags. |
|||||||||
int | Keyboard_horizontalGap | Default horizontal gap between keys. |
|||||||||
int | Keyboard_keyHeight | Default height of a key, in pixels or percentage of display width. |
|||||||||
int | Keyboard_keyWidth | Default width of a key, in pixels or percentage of display width. |
|||||||||
int | Keyboard_verticalGap | Default vertical gap between rows of keys. |
|||||||||
int[] | LayerDrawableItem | Attributes that can be used with a LayerDrawableItem. | |||||||||
int | LayerDrawableItem_bottom | This symbol is the offset where the |
|||||||||
int | LayerDrawableItem_drawable | Reference to a drawable resource to use for the frame. |
|||||||||
int | LayerDrawableItem_id | Supply an identifier name for this view, to later retrieve it
with |
|||||||||
int | LayerDrawableItem_left | This symbol is the offset where the |
|||||||||
int | LayerDrawableItem_right | This symbol is the offset where the |
|||||||||
int | LayerDrawableItem_top | This symbol is the offset where the |
|||||||||
int[] | LayoutAnimation | Attributes that can be used with a LayoutAnimation. | |||||||||
int | LayoutAnimation_animation | Animation to use on each child. |
|||||||||
int | LayoutAnimation_animationOrder | The order in which the animations will be started. |
|||||||||
int | LayoutAnimation_delay | Fraction of the animation duration used to delay the beginning of the animation of each child. |
|||||||||
int | LayoutAnimation_interpolator | Interpolator used to interpolate the delay between the start of each animation. |
|||||||||
int[] | LevelListDrawableItem | Attributes that can be used with a LevelListDrawableItem. | |||||||||
int | LevelListDrawableItem_drawable | Reference to a drawable resource to use for the frame. |
|||||||||
int | LevelListDrawableItem_maxLevel | The maximum level allowed for this item. |
|||||||||
int | LevelListDrawableItem_minLevel | The minimum level allowed for this item. |
|||||||||
int[] | LinearLayout | Attributes that can be used with a LinearLayout. | |||||||||
int[] | LinearLayout_Layout | Attributes that can be used with a LinearLayout_Layout. | |||||||||
int | LinearLayout_Layout_layout_gravity | Standard gravity constant that a child can supply to its parent. |
|||||||||
int | LinearLayout_Layout_layout_height | Specifies the basic height of the view. |
|||||||||
int | LinearLayout_Layout_layout_weight | This symbol is the offset where the |
|||||||||
int | LinearLayout_Layout_layout_width | Specifies the basic width of the view. |
|||||||||
int | LinearLayout_baselineAligned | When set to false, prevents the layout from aligning its children's baselines. |
|||||||||
int | LinearLayout_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 | LinearLayout_gravity | Specifies how to place the content of an object, both on the x- and y-axis, within the object itself. |
|||||||||
int | LinearLayout_orientation | Should the layout be a column or a row? Use "horizontal" for a row, "vertical" for a column. |
|||||||||
int | LinearLayout_weightSum | Defines the maximum weight sum. |
|||||||||
int[] | ListPreference | Base attributes available to ListPreference. | |||||||||
int | ListPreference_entries | The human-readable array to present as a list. |
|||||||||
int | ListPreference_entryValues | The array to find the value to save for a preference when an entry from entries is selected. |
|||||||||
int[] | ListView | Attributes that can be used with a ListView. | |||||||||
int | ListView_choiceMode | Defines the choice behavior for the ListView. |
|||||||||
int | ListView_divider | Drawable or color to draw between list items. |
|||||||||
int | ListView_dividerHeight | Height of the divider. |
|||||||||
int | ListView_entries | Reference to an array resource that will populate the ListView. |
|||||||||
int | ListView_footerDividersEnabled | When set to false, the ListView will not draw the divider before each footer view. |
|||||||||
int | ListView_headerDividersEnabled | When set to false, the ListView will not draw the divider after each header view. |
|||||||||
int[] | MapView | The set of attributes for a MapView. | |||||||||
int | MapView_apiKey | Value is a string that specifies the Maps API Key to use. |
|||||||||
int[] | Menu | Base attributes that are available to all Menu objects. | |||||||||
int[] | MenuGroup | Base attributes that are available to all groups. | |||||||||
int | MenuGroup_checkableBehavior | Whether the items are capable of displaying a check mark. |
|||||||||
int | MenuGroup_enabled | Whether the items are enabled. |
|||||||||
int | MenuGroup_id | The ID of the group. |
|||||||||
int | MenuGroup_menuCategory | The category applied to all items within this group. |
|||||||||
int | MenuGroup_orderInCategory | The order within the category applied to all items within this group. |
|||||||||
int | MenuGroup_visible | Whether the items are shown/visible. |
|||||||||
int[] | MenuItem | Base attributes that are available to all Item objects. | |||||||||
int[] | MenuItemCheckedFocusedState | State array representing a menu item that is currently focused and checked. | |||||||||
int | MenuItemCheckedFocusedState_state_checkable | State identifier indicating that the object may display a check mark. |
|||||||||
int | MenuItemCheckedFocusedState_state_checked | State identifier indicating that the object is currently checked. |
|||||||||
int | MenuItemCheckedFocusedState_state_focused | State value for |
|||||||||
int[] | MenuItemCheckedState | State array representing a menu item that is currently checked. | |||||||||
int | MenuItemCheckedState_state_checkable | State identifier indicating that the object may display a check mark. |
|||||||||
int | MenuItemCheckedState_state_checked | State identifier indicating that the object is currently checked. |
|||||||||
int[] | MenuItemUncheckedFocusedState | State array representing a menu item that is focused and checkable but is not currently checked. | |||||||||
int | MenuItemUncheckedFocusedState_state_checkable | State identifier indicating that the object may display a check mark. |
|||||||||
int | MenuItemUncheckedFocusedState_state_focused | State value for |
|||||||||
int[] | MenuItemUncheckedState | State array representing a menu item that is checkable but is not currently checked. | |||||||||
int | MenuItemUncheckedState_state_checkable | State identifier indicating that the object may display a check mark. |
|||||||||
int | MenuItem_alphabeticShortcut | The alphabetic shortcut key. |
|||||||||
int | MenuItem_checkable | Whether the item is capable of displaying a check mark. |
|||||||||
int | MenuItem_checked | Whether the item is checked. |
|||||||||
int | MenuItem_enabled | Whether the item is enabled. |
|||||||||
int | MenuItem_icon | The icon associated with this item. |
|||||||||
int | MenuItem_id | The ID of the item. |
|||||||||
int | MenuItem_menuCategory | The category applied to the item. |
|||||||||
int | MenuItem_numericShortcut | The numeric shortcut key. |
|||||||||
int | MenuItem_orderInCategory | The order within the category applied to the item. |
|||||||||
int | MenuItem_title | The title associated with the item. |
|||||||||
int | MenuItem_titleCondensed | The condensed title associated with the item. |
|||||||||
int | MenuItem_visible | Whether the item is shown/visible. |
|||||||||
int[] | MenuView | Attributes that can be used with a MenuView. | |||||||||
int | MenuView_headerBackground | Default background for the menu header. |
|||||||||
int | MenuView_horizontalDivider | Default horizontal divider between rows of menu items. |
|||||||||
int | MenuView_itemBackground | Default background for each menu item. |
|||||||||
int | MenuView_itemIconDisabledAlpha | Default disabled icon alpha for each menu item that shows an icon. |
|||||||||
int | MenuView_itemTextAppearance | Default appearance of menu item text. |
|||||||||
int | MenuView_verticalDivider | Default vertical divider between menu items. |
|||||||||
int | MenuView_windowAnimationStyle | Default animations for the menu. |
|||||||||
int[] | NinePatchDrawable | Drawable used to draw 9-patches. | |||||||||
int | NinePatchDrawable_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 | NinePatchDrawable_src | Identifier of the bitmap file. |
|||||||||
int[] | OvershootInterpolator | Attributes that can be used with a OvershootInterpolator. | |||||||||
int | OvershootInterpolator_tension | This is the amount of tension. |
|||||||||
int[] | PopupWindow | Attributes that can be used with a PopupWindow. | |||||||||
int[] | PopupWindowBackgroundState | Attributes that can be used with a PopupWindowBackgroundState. | |||||||||
int | PopupWindowBackgroundState_state_above_anchor | State identifier indicating the popup will be above the anchor. |
|||||||||
int | PopupWindow_popupBackground | This symbol is the offset where the |
|||||||||
int[] | Preference | Base attributes available to Preference. | |||||||||
int[] | PreferenceGroup | Base attributes available to PreferenceGroup. | |||||||||
int | PreferenceGroup_orderingFromXml | Whether to order the Preference under this group as they appear in the XML file. |
|||||||||
int | Preference_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 | Preference_dependency | The key of another Preference that this Preference will depend on. |
|||||||||
int | Preference_enabled | Whether the Preference is enabled. |
|||||||||
int | Preference_key | The key to store the Preference value. |
|||||||||
int | Preference_layout | The layout for the Preference in a PreferenceActivity screen. |
|||||||||
int | Preference_order | The order for the Preference (lower values are to be ordered first). |
|||||||||
int | Preference_persistent | Whether the Preference stores its value to the shared preferences. |
|||||||||
int | Preference_selectable | Whether the Preference is selectable. |
|||||||||
int | Preference_shouldDisableView | Whether the view of this Preference should be disabled when this Preference is disabled. |
|||||||||
int | Preference_summary | The summary for the Preference in a PreferenceActivity screen. |
|||||||||
int | Preference_title | The title for the Preference in a PreferenceActivity screen. |
|||||||||
int | Preference_widgetLayout | The layout for the controllable widget portion of a Preference. |
|||||||||
int[] | ProgressBar | Attributes that can be used with a ProgressBar. | |||||||||
int | ProgressBar_indeterminate | Allows to enable the indeterminate mode. |
|||||||||
int | ProgressBar_indeterminateBehavior | Defines how the indeterminate mode should behave when the progress reaches max. |
|||||||||
int | ProgressBar_indeterminateDrawable | Drawable used for the indeterminate mode. |
|||||||||
int | ProgressBar_indeterminateDuration | Duration of the indeterminate animation. |
|||||||||
int | ProgressBar_indeterminateOnly | Restricts to ONLY indeterminate mode (state-keeping progress mode will not work). |
|||||||||
int | ProgressBar_interpolator | This symbol is the offset where the |
|||||||||
int | ProgressBar_max | Defines the maximum value the progress can take. |
|||||||||
int | ProgressBar_maxHeight | An optional argument to supply a maximum height for this view. |
|||||||||
int | ProgressBar_maxWidth | An optional argument to supply a maximum width for this view. |
|||||||||
int | ProgressBar_minHeight | This symbol is the offset where the |
|||||||||
int | ProgressBar_minWidth | This symbol is the offset where the |
|||||||||
int | ProgressBar_progress | Defines the default progress value, between 0 and max. |
|||||||||
int | ProgressBar_progressDrawable | Drawable used for the progress mode. |
|||||||||
int | ProgressBar_secondaryProgress | Defines the secondary progress value, between 0 and max. |
|||||||||
int[] | QuickContactBadge | Attributes that can be used with a QuickContactBadge. | |||||||||
int[] | RadioGroup | Attributes that can be used with a RadioGroup. | |||||||||
int | RadioGroup_checkedButton | The id of the child radio button that should be checked by default within this radio group. |
|||||||||
int | RadioGroup_orientation | Should the radio group be a column or a row? Use "horizontal" for a row, "vertical" for a column. |
|||||||||
int[] | RatingBar | Attributes that can be used with a RatingBar. | |||||||||
int | RatingBar_isIndicator | Whether this rating bar is an indicator (and non-changeable by the user). |
|||||||||
int | RatingBar_numStars | The number of stars (or rating items) to show. |
|||||||||
int | RatingBar_rating | The rating to set by default. |
|||||||||
int | RatingBar_stepSize | The step size of the rating. |
|||||||||
int[] | RelativeLayout | Attributes that can be used with a RelativeLayout. | |||||||||
int[] | RelativeLayout_Layout | Attributes that can be used with a RelativeLayout_Layout. | |||||||||
int | RelativeLayout_Layout_layout_above | Positions the bottom edge of this view above the given anchor view ID. |
|||||||||
int | RelativeLayout_Layout_layout_alignBaseline | Positions the baseline of this view on the baseline of the given anchor view ID. |
|||||||||
int | RelativeLayout_Layout_layout_alignBottom | Makes the bottom edge of this view match the bottom edge of the given anchor view ID. |
|||||||||
int | RelativeLayout_Layout_layout_alignLeft | Makes the left edge of this view match the left edge of the given anchor view ID. |
|||||||||
int | RelativeLayout_Layout_layout_alignParentBottom | If true, makes the bottom edge of this view match the bottom edge of the parent. |
|||||||||
int | RelativeLayout_Layout_layout_alignParentLeft | If true, makes the left edge of this view match the left edge of the parent. |
|||||||||
int | RelativeLayout_Layout_layout_alignParentRight | If true, makes the right edge of this view match the right edge of the parent. |
|||||||||
int | RelativeLayout_Layout_layout_alignParentTop | If true, makes the top edge of this view match the top edge of the parent. |
|||||||||
int | RelativeLayout_Layout_layout_alignRight | Makes the right edge of this view match the right edge of the given anchor view ID. |
|||||||||
int | RelativeLayout_Layout_layout_alignTop | Makes the top edge of this view match the top edge of the given anchor view ID. |
|||||||||
int | RelativeLayout_Layout_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 | RelativeLayout_Layout_layout_below | Positions the top edge of this view below the given anchor view ID. |
|||||||||
int | RelativeLayout_Layout_layout_centerHorizontal | If true, centers this child horizontally within its parent. |
|||||||||
int | RelativeLayout_Layout_layout_centerInParent | If true, centers this child horizontally and vertically within its parent. |
|||||||||
int | RelativeLayout_Layout_layout_centerVertical | If true, centers this child vertically within its parent. |
|||||||||
int | RelativeLayout_Layout_layout_toLeftOf | Positions the right edge of this view to the left of the given anchor view ID. |
|||||||||
int | RelativeLayout_Layout_layout_toRightOf | Positions the left edge of this view to the right of the given anchor view ID. |
|||||||||
int | RelativeLayout_gravity | Specifies how to place the content of an object, both on the x- and y-axis, within the object itself. |
|||||||||
int | RelativeLayout_ignoreGravity | Indicates what view should not be affected by gravity. |
|||||||||
int[] | RingtonePreference | Base attributes available to RingtonePreference. | |||||||||
int | RingtonePreference_ringtoneType | Which ringtone type(s) to show in the picker. |
|||||||||
int | RingtonePreference_showDefault | Whether to show an item for a default sound. |
|||||||||
int | RingtonePreference_showSilent | Whether to show an item for 'Silent'. |
|||||||||
int | RotarySelector_orientation | Use "horizontal" or "vertical". |
|||||||||
int[] | RotateAnimation | Attributes that can be used with a RotateAnimation. | |||||||||
int | RotateAnimation_fromDegrees | This symbol is the offset where the |
|||||||||
int | RotateAnimation_pivotX | This symbol is the offset where the |
|||||||||
int | RotateAnimation_pivotY | This symbol is the offset where the |
|||||||||
int | RotateAnimation_toDegrees | This symbol is the offset where the |
|||||||||
int[] | RotateDrawable | Attributes that can be used with a RotateDrawable. | |||||||||
int | RotateDrawable_drawable | Reference to a drawable resource to use for the frame. |
|||||||||
int | RotateDrawable_fromDegrees | This symbol is the offset where the |
|||||||||
int | RotateDrawable_pivotX | This symbol is the offset where the |
|||||||||
int | RotateDrawable_pivotY | This symbol is the offset where the |
|||||||||
int | RotateDrawable_toDegrees | This symbol is the offset where the |
|||||||||
int | RotateDrawable_visible | Provides initial visibility state of the drawable; the default value is false. |
|||||||||
int[] | ScaleAnimation | Attributes that can be used with a ScaleAnimation. | |||||||||
int | ScaleAnimation_fromXScale | This symbol is the offset where the |
|||||||||
int | ScaleAnimation_fromYScale | This symbol is the offset where the |
|||||||||
int | ScaleAnimation_pivotX | This symbol is the offset where the |
|||||||||
int | ScaleAnimation_pivotY | This symbol is the offset where the |
|||||||||
int | ScaleAnimation_toXScale | This symbol is the offset where the |
|||||||||
int | ScaleAnimation_toYScale | This symbol is the offset where the |
|||||||||
int[] | ScaleDrawable | Attributes that can be used with a ScaleDrawable. | |||||||||
int | ScaleDrawable_drawable | Reference to a drawable resource to draw with the specified scale. |
|||||||||
int | ScaleDrawable_scaleGravity | Specifies where the drawable is positioned after scaling. |
|||||||||
int | ScaleDrawable_scaleHeight | Scale height, expressed as a percentage of the drawable's bound. |
|||||||||
int | ScaleDrawable_scaleWidth | Scale width, expressed as a percentage of the drawable's bound. |
|||||||||
int[] | ScrollView | Attributes that can be used with a ScrollView. | |||||||||
int | ScrollView_fillViewport | Defines whether the scrollview should stretch its content to fill the viewport. |
|||||||||
int[] | Searchable | Searchable activities and applications must provide search configuration information in an XML file, typically called searchable.xml. | |||||||||
int[] | SearchableActionKey | In order to process special action keys during search, you must define them using one or more "ActionKey" elements in your Searchable metadata. | |||||||||
int | SearchableActionKey_keycode | This attribute denotes the action key you wish to respond to. |
|||||||||
int | SearchableActionKey_queryActionMsg | If you wish to handle an action key during normal search query entry, you must define an action string here. |
|||||||||
int | SearchableActionKey_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 | SearchableActionKey_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 | Searchable_autoUrlDetect | If provided and |
|||||||||
int | Searchable_hint | If supplied, this string will be displayed as a hint to the user. |
|||||||||
int | Searchable_icon | This is deprecated. |
|||||||||
int | Searchable_imeOptions | Additional features you can enable in an IME associated with an editor to improve the integration with your application. |
|||||||||
int | Searchable_includeInGlobalSearch | If provided and |
|||||||||
int | Searchable_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 | Searchable_label | This is the user-displayed name of the searchable activity. |
|||||||||
int | Searchable_queryAfterZeroResults | If provided and |
|||||||||
int | Searchable_searchButtonText | If supplied, this string will be displayed as the text of the "Search" button. |
|||||||||
int | Searchable_searchMode | Additional features are controlled by mode bits in this field. |
|||||||||
int | Searchable_searchSettingsDescription | If provided, this string will be used to describe the searchable item in the searchable items settings within system search settings. |
|||||||||
int | Searchable_searchSuggestAuthority | If provided, this is the trigger indicating that the searchable activity provides suggestions as well. |
|||||||||
int | Searchable_searchSuggestIntentAction | If provided, and not overridden by an action in the selected suggestion, this
string will be placed in the action field of the |
|||||||||
int | Searchable_searchSuggestIntentData | If provided, and not overridden by an action in the selected suggestion, this
string will be placed in the data field of the |
|||||||||
int | Searchable_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 | Searchable_searchSuggestSelection | If provided, suggestion queries will be passed into your query function as the selection parameter. |
|||||||||
int | Searchable_searchSuggestThreshold | If provided, this is the minimum number of characters needed to trigger search suggestions. |
|||||||||
int | Searchable_voiceLanguage | If provided, this specifies the spoken language to be expected, and that it will be
different than the one set in the |
|||||||||
int | Searchable_voiceLanguageModel | If provided, this specifies the language model that should be used by the voice recognition system. |
|||||||||
int | Searchable_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 | Searchable_voicePromptText | If provided, this specifies a prompt that will be displayed during voice input. |
|||||||||
int | Searchable_voiceSearchMode | Voice search features are controlled by mode bits in this field. |
|||||||||
int[] | SeekBar | Attributes that can be used with a SeekBar. | |||||||||
int | SeekBar_thumb | Draws the thumb on a seekbar. |
|||||||||
int | SeekBar_thumbOffset | An offset for the thumb that allows it to extend out of the range of the track. |
|||||||||
int[] | ShapeDrawable | Drawable used to draw shapes. | |||||||||
int[] | ShapeDrawablePadding | Defines the padding of a ShapeDrawable. | |||||||||
int | ShapeDrawablePadding_bottom | Bottom padding. |
|||||||||
int | ShapeDrawablePadding_left | Left padding. |
|||||||||
int | ShapeDrawablePadding_right | Right padding. |
|||||||||
int | ShapeDrawablePadding_top | Top padding. |
|||||||||
int | ShapeDrawable_color | Defines the color of the shape. |
|||||||||
int | ShapeDrawable_height | Defines the height of the shape. |
|||||||||
int | ShapeDrawable_width | Defines the width of the shape. |
|||||||||
int[] | SlidingDrawer | SlidingDrawer specific attributes. | |||||||||
int | SlidingDrawer_allowSingleTap | Indicates whether the drawer can be opened/closed by a single tap on the handle. |
|||||||||
int | SlidingDrawer_animateOnClick | Indicates whether the drawer should be opened/closed with an animation when the user clicks the handle. |
|||||||||
int | SlidingDrawer_bottomOffset | Extra offset for the handle at the bottom of the SlidingDrawer. |
|||||||||
int | SlidingDrawer_content | Identifier for the child that represents the drawer's content. |
|||||||||
int | SlidingDrawer_handle | Identifier for the child that represents the drawer's handle. |
|||||||||
int | SlidingDrawer_orientation | Orientation of the SlidingDrawer. |
|||||||||
int | SlidingDrawer_topOffset | Extra offset for the handle at the top of the SlidingDrawer. |
|||||||||
int[] | SlidingTab | Attributes that can be used with a SlidingTab. | |||||||||
int | SlidingTab_orientation | Use "horizontal" for a row, "vertical" for a column. |
|||||||||
int[] | Spinner | Attributes that can be used with a Spinner. | |||||||||
int | Spinner_prompt | The prompt to display when the spinner's dialog is shown. |
|||||||||
int[] | StateListDrawable | Attributes that can be used with a StateListDrawable. | |||||||||
int | StateListDrawable_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 | StateListDrawable_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 | StateListDrawable_variablePadding | If true, allows the drawable's padding to change based on the current state that is selected. |
|||||||||
int | StateListDrawable_visible | Provides initial visibility state of the drawable; the default value is false. |
|||||||||
int[] | SyncAdapter | Use account-authenticator as the root tag of the XML resource that
describes an account authenticator. |
|||||||||
int | SyncAdapter_accountType | The account type this authenticator handles. |
|||||||||
int | SyncAdapter_contentAuthority | the authority of a content provider. |
|||||||||
int | SyncAdapter_supportsUploading | This symbol is the offset where the |
|||||||||
int | SyncAdapter_userVisible | This symbol is the offset where the |
|||||||||
int[] | TabWidget | Attributes that can be used with a TabWidget. | |||||||||
int[] | TableLayout | Attributes that can be used with a TableLayout. | |||||||||
int | TableLayout_collapseColumns | The zero-based index of the columns to collapse. |
|||||||||
int | TableLayout_shrinkColumns | The zero-based index of the columns to shrink. |
|||||||||
int | TableLayout_stretchColumns | The zero-based index of the columns to stretch. |
|||||||||
int[] | TableRow | Attributes that can be used with a TableRow. | |||||||||
int[] | TableRow_Cell | Attributes that can be used with a TableRow_Cell. | |||||||||
int | TableRow_Cell_layout_column | The index of the column in which this child should be. |
|||||||||
int | TableRow_Cell_layout_span | Defines how many columns this child should span. |
|||||||||
int[] | TextAppearance | Attributes that can be used with a TextAppearance. | |||||||||
int | TextAppearance_textColor | Text color. |
|||||||||
int | TextAppearance_textColorHighlight | Color of the text selection highlight. |
|||||||||
int | TextAppearance_textColorHint | Color of the hint text. |
|||||||||
int | TextAppearance_textColorLink | Color of the links. |
|||||||||
int | TextAppearance_textSize | Size of the text. |
|||||||||
int | TextAppearance_textStyle | Style (bold, italic, bolditalic) for the text. |
|||||||||
int | TextAppearance_typeface | Typeface (normal, sans, serif, monospace) for the text. |
|||||||||
int[] | TextSwitcher | Attributes that can be used with a TextSwitcher. | |||||||||
int[] | TextView | Attributes that can be used with a TextView. | |||||||||
int | TextView_autoLink | Controls whether links such as urls and email addresses are automatically found and converted to clickable links. |
|||||||||
int | TextView_autoText | If set, specifies that this TextView has a textual input method and automatically corrects some common spelling errors. |
|||||||||
int | TextView_bufferType | Determines the minimum type that getText() will return. |
|||||||||
int | TextView_capitalize | If set, specifies that this TextView has a textual input method and should automatically capitalize what the user types. |
|||||||||
int | TextView_cursorVisible | Makes the cursor visible (the default) or invisible. |
|||||||||
int | TextView_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 | TextView_drawableBottom | The drawable to be drawn below the text. |
|||||||||
int | TextView_drawableLeft | The drawable to be drawn to the left of the text. |
|||||||||
int | TextView_drawablePadding | The padding between the drawables and the text. |
|||||||||
int | TextView_drawableRight | The drawable to be drawn to the right of the text. |
|||||||||
int | TextView_drawableTop | The drawable to be drawn above the text. |
|||||||||
int | TextView_editable | If set, specifies that this TextView has an input method. |
|||||||||
int | TextView_editorExtras | Reference to an
|
|||||||||
int | TextView_ellipsize | If set, causes words that are longer than the view is wide to be ellipsized instead of broken in the middle. |
|||||||||
int | TextView_ems | Makes the TextView be exactly this many ems wide. |
|||||||||
int | TextView_enabled | Specifies whether the TextView is enabled or not. |
|||||||||
int | TextView_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 | TextView_gravity | Specifies how to align the text by the view's x- and/or y-axis when the text is smaller than the view. |
|||||||||
int | TextView_height | Makes the TextView be exactly this many pixels tall. |
|||||||||
int | TextView_hint | Hint text to display when the text is empty. |
|||||||||
int | TextView_imeActionId | Supply a value for
|
|||||||||
int | TextView_imeActionLabel | Supply a value for
|
|||||||||
int | TextView_imeOptions | Additional features you can enable in an IME associated with an editor to improve the integration with your application. |
|||||||||
int | TextView_includeFontPadding | Leave enough room for ascenders and descenders instead of using the font ascent and descent strictly. |
|||||||||
int | TextView_inputMethod | If set, specifies that this TextView should use the specified input method (specified by fully-qualified class name). |
|||||||||
int | TextView_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 | TextView_lineSpacingExtra | Extra spacing between lines of text. |
|||||||||
int | TextView_lineSpacingMultiplier | Extra spacing between lines of text, as a multiplier. |
|||||||||
int | TextView_lines | Makes the TextView be exactly this many lines tall. |
|||||||||
int | TextView_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 | TextView_marqueeRepeatLimit | The number of times to repeat the marquee animation. |
|||||||||
int | TextView_maxEms | Makes the TextView be at most this many ems wide. |
|||||||||
int | TextView_maxHeight | Makes the TextView be at most this many pixels tall. |
|||||||||
int | TextView_maxLength | Set an input filter to constrain the text length to the specified number. |
|||||||||
int | TextView_maxLines | Makes the TextView be at most this many lines tall. |
|||||||||
int | TextView_maxWidth | Makes the TextView be at most this many pixels wide. |
|||||||||
int | TextView_minEms | Makes the TextView be at least this many ems wide. |
|||||||||
int | TextView_minHeight | Makes the TextView be at least this many pixels tall. |
|||||||||
int | TextView_minLines | Makes the TextView be at least this many lines tall. |
|||||||||
int | TextView_minWidth | Makes the TextView be at least this many pixels wide. |
|||||||||
int | TextView_numeric | If set, specifies that this TextView has a numeric input method. |
|||||||||
int | TextView_password | Whether the characters of the field are displayed as password dots instead of themselves. |
|||||||||
int | TextView_phoneNumber | If set, specifies that this TextView has a phone number input method. |
|||||||||
int | TextView_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 | TextView_scrollHorizontally | Whether the text is allowed to be wider than the view (and therefore can be scrolled horizontally). |
|||||||||
int | TextView_selectAllOnFocus | If the text is selectable, select it all when the view takes focus instead of moving the cursor to the start or end. |
|||||||||
int | TextView_shadowColor | Place a shadow of the specified color behind the text. |
|||||||||
int | TextView_shadowDx | Horizontal offset of the shadow. |
|||||||||
int | TextView_shadowDy | Vertical offset of the shadow. |
|||||||||
int | TextView_shadowRadius | Radius of the shadow. |
|||||||||
int | TextView_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. |
|||||||||
int | TextView_text | Text to display. |
|||||||||
int | TextView_textAppearance | Base text color, typeface, size, and style. |
|||||||||
int | TextView_textColor | Text color. |
|||||||||
int | TextView_textColorHighlight | Color of the text selection highlight. |
|||||||||
int | TextView_textColorHint | Color of the hint text. |
|||||||||
int | TextView_textColorLink | Text color for links. |
|||||||||
int | TextView_textScaleX | Sets the horizontal scaling factor for the text. |
|||||||||
int | TextView_textSize | Size of the text. |
|||||||||
int | TextView_textStyle | Style (bold, italic, bolditalic) for the text. |
|||||||||
int | TextView_typeface | Typeface (normal, sans, serif, monospace) for the text. |
|||||||||
int | TextView_width | Makes the TextView be exactly this many pixels wide. |
|||||||||
int[] | Theme | These are the standard attributes that make up a complete theme. | |||||||||
int | Theme_absListViewStyle | Default AbsListView style. |
|||||||||
int | Theme_alertDialogStyle | This symbol is the offset where the |
|||||||||
int | Theme_autoCompleteTextViewStyle | Default AutoCompleteTextView style. |
|||||||||
int | Theme_backgroundDimAmount | Default background dim amount when a menu, dialog, or something similar pops up. |
|||||||||
int | Theme_backgroundDimEnabled | Control whether dimming behind the window is enabled. |
|||||||||
int | Theme_buttonStyle | Normal Button style. |
|||||||||
int | Theme_buttonStyleInset | Button style to inset into an EditText. |
|||||||||
int | Theme_buttonStyleSmall | Small Button style. |
|||||||||
int | Theme_buttonStyleToggle | ToggleButton style. |
|||||||||
int | Theme_candidatesTextStyleSpans | A styled string, specifying the style to be used for showing inline candidate text when composing with an input method. |
|||||||||
int | Theme_checkBoxPreferenceStyle | Default style for CheckBoxPreference. |
|||||||||
int | Theme_checkboxStyle | Default Checkbox style. |
|||||||||
int | Theme_colorBackground | Color that matches (as closely as possible) the window background. |
|||||||||
int | Theme_colorBackgroundCacheHint | This is a hint for a solid color that can be used for caching rendered views. |
|||||||||
int | Theme_colorForeground | Default color of foreground imagery. |
|||||||||
int | Theme_colorForegroundInverse | Default color of foreground imagery on an inverted background. |
|||||||||
int | Theme_dialogPreferenceStyle | Default style for DialogPreference. |
|||||||||
int | Theme_disabledAlpha | Default disabled alpha for widgets that set enabled/disabled alpha programmatically. |
|||||||||
int | Theme_dropDownHintAppearance | Default style for drop down hints. |
|||||||||
int | Theme_dropDownItemStyle | Default style for drop down items. |
|||||||||
int | Theme_dropDownListViewStyle | Default ListView style for drop downs. |
|||||||||
int | Theme_editTextPreferenceStyle | Default style for EditTextPreference. |
|||||||||
int | Theme_editTextStyle | Default EditText style. |
|||||||||
int | Theme_expandableListPreferredChildIndicatorLeft | The preferred left bound for an expandable list child's indicator. |
|||||||||
int | Theme_expandableListPreferredChildIndicatorRight | The preferred right bound for an expandable list child's indicator. |
|||||||||
int | Theme_expandableListPreferredChildPaddingLeft | The preferred left padding for an expandable list item that is a child. |
|||||||||
int | Theme_expandableListPreferredItemIndicatorLeft | The preferred left bound for an expandable list item's indicator. |
|||||||||
int | Theme_expandableListPreferredItemIndicatorRight | The preferred right bound for an expandable list item's indicator. |
|||||||||
int | Theme_expandableListPreferredItemPaddingLeft | The preferred left padding for an expandable list item (for child-specific layouts, use expandableListPreferredChildPaddingLeft). |
|||||||||
int | Theme_expandableListViewStyle | Default ExpandableListView style. |
|||||||||
int | Theme_galleryItemBackground | The preferred background for gallery items. |
|||||||||
int | Theme_galleryStyle | Default Gallery style. |
|||||||||
int | Theme_gridViewStyle | Default GridView style. |
|||||||||
int | Theme_imageButtonStyle | The style resource to use for an ImageButton. |
|||||||||
int | Theme_imageWellStyle | The style resource to use for an ImageButton that is an image well. |
|||||||||
int | Theme_listChoiceIndicatorMultiple | Drawable to use for multiple choice indicators. |
|||||||||
int | Theme_listChoiceIndicatorSingle | Drawable to use for single choice indicators. |
|||||||||
int | Theme_listDivider | This symbol is the offset where the |
|||||||||
int | Theme_listPreferredItemHeight | The preferred list item height. |
|||||||||
int | Theme_listSeparatorTextViewStyle | TextView style for list separators. |
|||||||||
int | Theme_listViewStyle | Default ListView style. |
|||||||||
int | Theme_listViewWhiteStyle | ListView with white background. |
|||||||||
int | Theme_mapViewStyle | Default MapView style. |
|||||||||
int | Theme_panelBackground | The background of a panel when it is inset from the left and right edges of the screen. |
|||||||||
int | Theme_panelColorBackground | Color that matches (as closely as possible) the panel background. |
|||||||||
int | Theme_panelColorForeground | Default color of foreground panel imagery. |
|||||||||
int | Theme_panelFullBackground | The background of a panel when it extends to the left and right edges of the screen. |
|||||||||
int | Theme_panelTextAppearance | Default appearance of panel text. |
|||||||||
int | Theme_popupWindowStyle | Default PopupWindow style. |
|||||||||
int | Theme_preferenceCategoryStyle | Default style for PreferenceCategory. |
|||||||||
int | Theme_preferenceInformationStyle | Default style for informational Preference. |
|||||||||
int | Theme_preferenceLayoutChild | The preference layout that has the child/tabbed effect. |
|||||||||
int | Theme_preferenceScreenStyle | Default style for PreferenceScreen. |
|||||||||
int | Theme_preferenceStyle | Default style for Preference. |
|||||||||
int | Theme_progressBarStyle | Default ProgressBar style. |
|||||||||
int | Theme_progressBarStyleHorizontal | Horizontal ProgressBar style. |
|||||||||
int | Theme_progressBarStyleInverse | Inverse ProgressBar style. |
|||||||||
int | Theme_progressBarStyleLarge | Large ProgressBar style. |
|||||||||
int | Theme_progressBarStyleLargeInverse | Large inverse ProgressBar style. |
|||||||||
int | Theme_progressBarStyleSmall | Small ProgressBar style. |
|||||||||
int | Theme_progressBarStyleSmallInverse | Small inverse ProgressBar style. |
|||||||||
int | Theme_progressBarStyleSmallTitle | Small ProgressBar in title style. |
|||||||||
int | Theme_quickContactBadgeStyleSmallWindowLarge | Default quickcontact badge style with large quickcontact window. |
|||||||||
int | Theme_quickContactBadgeStyleSmallWindowMedium | Default quickcontact badge style with medium quickcontact window. |
|||||||||
int | Theme_quickContactBadgeStyleSmallWindowSmall | Default quickcontact badge style with small quickcontact window. |
|||||||||
int | Theme_quickContactBadgeStyleWindowLarge | Default quickcontact badge style with large quickcontact window. |
|||||||||
int | Theme_quickContactBadgeStyleWindowMedium | Default quickcontact badge style with medium quickcontact window. |
|||||||||
int | Theme_quickContactBadgeStyleWindowSmall | Default quickcontact badge style with small quickcontact window. |
|||||||||
int | Theme_radioButtonStyle | Default RadioButton style. |
|||||||||
int | Theme_ratingBarStyle | Default RatingBar style. |
|||||||||
int | Theme_ratingBarStyleIndicator | Indicator RatingBar style. |
|||||||||
int | Theme_ratingBarStyleSmall | Small indicator RatingBar style. |
|||||||||
int | Theme_ringtonePreferenceStyle | Default style for RingtonePreference. |
|||||||||
int | Theme_scrollViewStyle | Default ScrollView style. |
|||||||||
int | Theme_seekBarStyle | Default SeekBar style. |
|||||||||
int | Theme_spinnerDropDownItemStyle | Default style for spinner drop down items. |
|||||||||
int | Theme_spinnerItemStyle | Default spinner item style. |
|||||||||
int | Theme_spinnerStyle | Default Spinner style. |
|||||||||
int | Theme_starStyle | Default Star style. |
|||||||||
int | Theme_tabWidgetStyle | Default TabWidget style. |
|||||||||
int | Theme_textAppearance | Default appearance of text: color, typeface, size, and style. |
|||||||||
int | Theme_textAppearanceButton | Text color, typeface, size, and style for the text inside of a button. |
|||||||||
int | Theme_textAppearanceInverse | Default appearance of text against an inverted background: color, typeface, size, and style. |
|||||||||
int | Theme_textAppearanceLarge | Text color, typeface, size, and style for "large" text. |
|||||||||
int | Theme_textAppearanceLargeInverse | Text color, typeface, size, and style for "large" inverse text. |
|||||||||
int | Theme_textAppearanceMedium | Text color, typeface, size, and style for "medium" text. |
|||||||||
int | Theme_textAppearanceMediumInverse | Text color, typeface, size, and style for "medium" inverse text. |
|||||||||
int | Theme_textAppearanceSearchResultSubtitle | Text color, typeface, size, and style for system search result subtitle. |
|||||||||
int | Theme_textAppearanceSearchResultTitle | Text color, typeface, size, and style for system search result title. |
|||||||||
int | Theme_textAppearanceSmall | Text color, typeface, size, and style for "small" text. |
|||||||||
int | Theme_textAppearanceSmallInverse | Text color, typeface, size, and style for "small" inverse text. |
|||||||||
int | Theme_textCheckMark | Drawable to use for check marks. |
|||||||||
int | Theme_textCheckMarkInverse | This symbol is the offset where the |
|||||||||
int | Theme_textColorHintInverse | Inverse hint text color. |
|||||||||
int | Theme_textColorPrimary | The most prominent text color. |
|||||||||
int | Theme_textColorPrimaryDisableOnly | Bright text color. |
|||||||||
int | Theme_textColorPrimaryInverse | Primary inverse text color, useful for inverted backgrounds. |
|||||||||
int | Theme_textColorPrimaryInverseDisableOnly | Bright inverse text color. |
|||||||||
int | Theme_textColorPrimaryInverseNoDisable | Bright inverse text color. |
|||||||||
int | Theme_textColorPrimaryNoDisable | Bright text color. |
|||||||||
int | Theme_textColorSecondary | Secondary text color. |
|||||||||
int | Theme_textColorSecondaryInverse | Secondary inverse text color, useful for inverted backgrounds. |
|||||||||
int | Theme_textColorSecondaryInverseNoDisable | Dim inverse text color. |
|||||||||
int | Theme_textColorSecondaryNoDisable | Dim text color. |
|||||||||
int | Theme_textColorTertiary | Tertiary text color. |
|||||||||
int | Theme_textColorTertiaryInverse | Tertiary inverse text color, useful for inverted backgrounds. |
|||||||||
int | Theme_textViewStyle | Default TextView style. |
|||||||||
int | Theme_webViewStyle | Default WebView style. |
|||||||||
int | Theme_windowAnimationStyle | Reference to a style resource holding
the set of window animations to use, which can be
any of the attributes defined by
|
|||||||||
int | Theme_windowBackground | Drawable to use as the overall window background. |
|||||||||
int | Theme_windowContentOverlay | This Drawable is overlaid over the foreground of the Window's content area, usually to place a shadow below the title. |
|||||||||
int | Theme_windowDisablePreview | Flag allowing you to disable the preview animation for a window. |
|||||||||
int | Theme_windowFrame | Drawable to use as a frame around the window. |
|||||||||
int | Theme_windowFullscreen | Flag indicating whether this window should fill the entire screen. |
|||||||||
int | Theme_windowIsFloating | Flag indicating whether this is a floating window. |
|||||||||
int | Theme_windowIsTranslucent | Flag indicating whether this is a translucent window. |
|||||||||
int | Theme_windowNoDisplay | Flag indicating that this window should not be displayed at all. |
|||||||||
int | Theme_windowNoTitle | Flag indicating whether there should be no title on this window. |
|||||||||
int | Theme_windowShowWallpaper | Flag indicating that this window's background should be the user's current wallpaper. |
|||||||||
int | Theme_windowSoftInputMode | Defines the default soft input state that this window would like when it is displayed. |
|||||||||
int | Theme_windowTitleBackgroundStyle | The style resource to use for a window's title area. |
|||||||||
int | Theme_windowTitleSize | The style resource to use for a window's title bar height. |
|||||||||
int | Theme_windowTitleStyle | The style resource to use for a window's title text. |
|||||||||
int | Theme_yesNoPreferenceStyle | Default style for YesNoPreference. |
|||||||||
int[] | ToggleButton | Attributes that can be used with a ToggleButton. | |||||||||
int | ToggleButton_disabledAlpha | The alpha to apply to the indicator when disabled. |
|||||||||
int | ToggleButton_textOff | The text for the button when it is not checked. |
|||||||||
int | ToggleButton_textOn | The text for the button when it is checked. |
|||||||||
int[] | TranslateAnimation | Attributes that can be used with a TranslateAnimation. | |||||||||
int | TranslateAnimation_fromXDelta | This symbol is the offset where the |
|||||||||
int | TranslateAnimation_fromYDelta | This symbol is the offset where the |
|||||||||
int | TranslateAnimation_toXDelta | This symbol is the offset where the |
|||||||||
int | TranslateAnimation_toYDelta | This symbol is the offset where the |
|||||||||
int[] | TwoLineListItem | Attributes that can be used with a TwoLineListItem. | |||||||||
int | TwoLineListItem_mode | This symbol is the offset where the |
|||||||||
int[] | VerticalSlider_Layout | Attributes that can be used with a VerticalSlider_Layout. | |||||||||
int | VerticalSlider_Layout_layout_scale | This symbol is the offset where the |
|||||||||
int[] | View | Attributes that can be used with View or
any of its subclasses. |
|||||||||
int[] | ViewAnimator | Attributes that can be used with a ViewAnimator. | |||||||||
int | ViewAnimator_inAnimation | This symbol is the offset where the |
|||||||||
int | ViewAnimator_outAnimation | This symbol is the offset where the |
|||||||||
int[] | ViewDrawableStates | Attributes that can be used with a ViewDrawableStates. | |||||||||
int | ViewDrawableStates_state_enabled | State value for |
|||||||||
int | ViewDrawableStates_state_focused | State value for |
|||||||||
int | ViewDrawableStates_state_pressed | State value for |
|||||||||
int | ViewDrawableStates_state_selected | State value for |
|||||||||
int | ViewDrawableStates_state_window_focused | State value for |
|||||||||
int[] | ViewFlipper | Attributes that can be used with a ViewFlipper. | |||||||||
int | ViewFlipper_autoStart | When true, automatically start animating Must be a boolean value, either " |
|||||||||
int | ViewFlipper_flipInterval | This symbol is the offset where the |
|||||||||
int[] | ViewGroup | Attributes that can be used with a ViewGroup or any
of its subclasses. |
|||||||||
int[] | ViewGroup_Layout | This is the basic set of layout attributes that are common to all layout managers. | |||||||||
int | ViewGroup_Layout_layout_height | Specifies the basic height of the view. |
|||||||||
int | ViewGroup_Layout_layout_width | Specifies the basic width of the view. |
|||||||||
int[] | ViewGroup_MarginLayout | This is the basic set of layout attributes for layout managers that wish to place margins around their child views. | |||||||||
int | ViewGroup_MarginLayout_layout_height | Specifies the basic height of the view. |
|||||||||
int | ViewGroup_MarginLayout_layout_margin | Specifies extra space on the left, top, right and bottom sides of this view. |
|||||||||
int | ViewGroup_MarginLayout_layout_marginBottom | Specifies extra space on the bottom side of this view. |
|||||||||
int | ViewGroup_MarginLayout_layout_marginLeft | Specifies extra space on the left side of this view. |
|||||||||
int | ViewGroup_MarginLayout_layout_marginRight | Specifies extra space on the right side of this view. |
|||||||||
int | ViewGroup_MarginLayout_layout_marginTop | Specifies extra space on the top side of this view. |
|||||||||
int | ViewGroup_MarginLayout_layout_width | Specifies the basic width of the view. |
|||||||||
int | ViewGroup_addStatesFromChildren | Sets whether this ViewGroup's drawable states also include its children's drawable states. |
|||||||||
int | ViewGroup_alwaysDrawnWithCache | Defines whether the ViewGroup should always draw its children using their drawing cache or not. |
|||||||||
int | ViewGroup_animationCache | Defines whether layout animations should create a drawing cache for their children. |
|||||||||
int | ViewGroup_clipChildren | Defines whether a child is limited to draw inside of its bounds or not. |
|||||||||
int | ViewGroup_clipToPadding | Defines whether the ViewGroup will clip its drawing surface so as to exclude the padding area. |
|||||||||
int | ViewGroup_descendantFocusability | Defines the relationship between the ViewGroup and its descendants when looking for a View to take focus. |
|||||||||
int | ViewGroup_layoutAnimation | Defines the layout animation to use the first time the ViewGroup is laid out. |
|||||||||
int | ViewGroup_persistentDrawingCache | Defines the persistence of the drawing cache. |
|||||||||
int[] | ViewStub | A ViewStub lets you lazily include other XML layouts
inside your application at runtime. |
|||||||||
int | ViewStub_inflatedId | Overrides the id of the inflated View with this value. |
|||||||||
int | ViewStub_layout | Supply an identifier for the layout resource to inflate when the ViewStub becomes visible or when forced to do so. |
|||||||||
int[] | ViewSwitcher | Attributes that can be used with a ViewSwitcher. | |||||||||
int | View_background | A drawable to use as the background. |
|||||||||
int | View_clickable | Defines whether this view reacts to click events. |
|||||||||
int | View_contentDescription | Defines text that briefly describes content of the view. |
|||||||||
int | View_drawingCacheQuality | Defines the quality of translucent drawing caches. |
|||||||||
int | View_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 | View_fadeScrollbars | Defines whether to fade out scrollbars when they are not in use. |
|||||||||
int | View_fadingEdge | Defines which edges should be fadeded on scrolling. |
|||||||||
int | View_fadingEdgeLength | Defines the length of the fading edges. |
|||||||||
int | View_fitsSystemWindows | Boolean internal attribute to adjust view layout based on system windows such as the status bar. |
|||||||||
int | View_focusable | Boolean that controls whether a view can take focus. |
|||||||||
int | View_focusableInTouchMode | Boolean that controls whether a view can take focus while in touch mode. |
|||||||||
int | View_hapticFeedbackEnabled | Boolean that controls whether a view should have haptic feedback enabled for events such as long presses. |
|||||||||
int | View_id | Supply an identifier name for this view, to later retrieve it
with |
|||||||||
int | View_isScrollContainer | Set this if the view will serve as a scrolling container, meaing that it can be resized to shrink its overall window so that there will be space for an input method. |
|||||||||
int | View_keepScreenOn | Controls whether the view's window should keep the screen on while visible. |
|||||||||
int | View_longClickable | Defines whether this view reacts to long click events. |
|||||||||
int | View_minHeight | Defines the minimum height of the view. |
|||||||||
int | View_minWidth | Defines the minimum width of the view. |
|||||||||
int | View_nextFocusDown | Defines the next view to give focus to when the next focus is
|
|||||||||
int | View_nextFocusLeft | Defines the next view to give focus to when the next focus is
|
|||||||||
int | View_nextFocusRight | Defines the next view to give focus to when the next focus is
|
|||||||||
int | View_nextFocusUp | Defines the next view to give focus to when the next focus is
|
|||||||||
int | View_onClick | Name of the method in this View's context to invoke when the view is clicked. |
|||||||||
int | View_padding | Sets the padding, in pixels, of all four edges. |
|||||||||
int | View_paddingBottom | Sets the padding, in pixels, of the bottom edge; see |
|||||||||
int | View_paddingLeft | Sets the padding, in pixels, of the left edge; see |
|||||||||
int | View_paddingRight | Sets the padding, in pixels, of the right edge; see |
|||||||||
int | View_paddingTop | Sets the padding, in pixels, of the top edge; see |
|||||||||
int | View_saveEnabled | If unset, no state will be saved for this view when it is being frozen. |
|||||||||
int | View_scrollX | The initial horizontal scroll offset, in pixels. |
|||||||||
int | View_scrollY | The initial vertical scroll offset, in pixels. |
|||||||||
int | View_scrollbarAlwaysDrawHorizontalTrack | Defines whether the horizontal scrollbar track should always be drawn. |
|||||||||
int | View_scrollbarAlwaysDrawVerticalTrack | Defines whether the vertical scrollbar track should always be drawn. |
|||||||||
int | View_scrollbarDefaultDelayBeforeFade | Defines the delay in milliseconds that a scrollbar waits before fade out. |
|||||||||
int | View_scrollbarFadeDuration | Defines the delay in milliseconds that a scrollbar takes to fade out. |
|||||||||
int | View_scrollbarSize | Sets the width of vertical scrollbars and height of horizontal scrollbars. |
|||||||||
int | View_scrollbarStyle | Controls the scrollbar style and position. |
|||||||||
int | View_scrollbarThumbHorizontal | Defines the horizontal scrollbar thumb drawable. |
|||||||||
int | View_scrollbarThumbVertical | Defines the vertical scrollbar thumb drawable. |
|||||||||
int | View_scrollbarTrackHorizontal | Defines the horizontal scrollbar track drawable. |
|||||||||
int | View_scrollbarTrackVertical | Defines the vertical scrollbar track drawable. |
|||||||||
int | View_scrollbars | Defines which scrollbars should be displayed on scrolling or not. |
|||||||||
int | View_soundEffectsEnabled | Boolean that controls whether a view should have sound effects enabled for events such as clicking and touching. |
|||||||||
int | View_tag | Supply a tag for this view containing a String, to be retrieved
later with |
|||||||||
int | View_visibility | Controls the initial visibility of the view. |
|||||||||
int[] | VolumePreference | Base attributes available to VolumePreference. | |||||||||
int | VolumePreference_streamType | Different audio stream types. |
|||||||||
int[] | Wallpaper | Use wallpaper as the root tag of the XML resource that
describes an
WallpaperService , which is
referenced from its
SERVICE_META_DATA
meta-data entry. |
|||||||||
int | Wallpaper_author | Name of the author of this component, e.g. |
|||||||||
int | Wallpaper_description | Short description of the component's purpose or behavior. |
|||||||||
int | Wallpaper_settingsActivity | Component name of an activity that allows the user to modify the current settings for this wallpaper. |
|||||||||
int | Wallpaper_thumbnail | Reference to a the wallpaper's thumbnail bitmap. |
|||||||||
int[] | Window | The set of attributes that describe a Windows's theme. | |||||||||
int[] | WindowAnimation | Window animation class attributes. | |||||||||
int | WindowAnimation_activityCloseEnterAnimation | When closing the current activity, this is the animation that is run on the next activity (which is entering the screen). |
|||||||||
int | WindowAnimation_activityCloseExitAnimation | When closing the current activity, this is the animation that is run on the current activity (which is exiting the screen). |
|||||||||
int | WindowAnimation_activityOpenEnterAnimation | When opening a new activity, this is the animation that is run on the next activity (which is entering the screen). |
|||||||||
int | WindowAnimation_activityOpenExitAnimation | When opening a new activity, this is the animation that is run on the previous activity (which is exiting the screen). |
|||||||||
int | WindowAnimation_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 | WindowAnimation_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 | WindowAnimation_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 | WindowAnimation_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 | WindowAnimation_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 | WindowAnimation_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 | WindowAnimation_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 | WindowAnimation_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 | WindowAnimation_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 | WindowAnimation_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 | WindowAnimation_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 | WindowAnimation_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 | WindowAnimation_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 | WindowAnimation_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 | WindowAnimation_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 | WindowAnimation_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 | WindowAnimation_windowEnterAnimation | The animation used when a window is being added. |
|||||||||
int | WindowAnimation_windowExitAnimation | The animation used when a window is being removed. |
|||||||||
int | WindowAnimation_windowHideAnimation | The animation used when a window is going from VISIBLE to INVISIBLE. |
|||||||||
int | WindowAnimation_windowShowAnimation | The animation used when a window is going from INVISIBLE to VISIBLE. |
|||||||||
int | Window_backgroundDimAmount | Default background dim amount when a menu, dialog, or something similar pops up. |
|||||||||
int | Window_backgroundDimEnabled | Control whether dimming behind the window is enabled. |
|||||||||
int | Window_textColor | Color of text (usually same as colorForeground). |
|||||||||
int | Window_windowAnimationStyle | Reference to a style resource holding
the set of window animations to use, which can be
any of the attributes defined by
|
|||||||||
int | Window_windowBackground | Drawable to use as the overall window background. |
|||||||||
int | Window_windowContentOverlay | This Drawable is overlaid over the foreground of the Window's content area, usually to place a shadow below the title. |
|||||||||
int | Window_windowDisablePreview | Flag allowing you to disable the preview animation for a window. |
|||||||||
int | Window_windowFrame | Drawable to use as a frame around the window. |
|||||||||
int | Window_windowFullscreen | Flag indicating whether this window should fill the entire screen. |
|||||||||
int | Window_windowIsFloating | Flag indicating whether this is a floating window. |
|||||||||
int | Window_windowIsTranslucent | Flag indicating whether this is a translucent window. |
|||||||||
int | Window_windowNoDisplay | Flag indicating that this window should not be displayed at all. |
|||||||||
int | Window_windowNoTitle | Flag indicating whether there should be no title on this window. |
|||||||||
int | Window_windowShowWallpaper | Flag indicating that this window's background should be the user's current wallpaper. |
|||||||||
int | Window_windowSoftInputMode | Defines the default soft input state that this window would like when it is displayed. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Attributes that can be used with a AbsListView.
Includes the following attributes:
Attribute | Description |
---|---|
| Indicates that this list will always be drawn on top of solid, single-color opaque background. |
| When set to true, the selector will be drawn over the selected item. |
| Enables the fast scroll thumb that can be dragged to quickly scroll through the list. |
| Drawable used to indicate the currently selected item in the list. |
| When set to true, the list uses a drawing cache during scrolling. |
| When set to true, the list will use a more refined calculation method based on the pixels height of the items visible on screen. |
| Used by ListView and GridView to stack their content from the bottom. |
| When set to true, the list will filter results as the user types. |
| Sets the transcript mode for the list. |
Indicates that this list will always be drawn on top of solid, single-color opaque background. This allows the list to optimize drawing.
Must be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol cacheColorHint
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol drawSelectorOnTop
.
Enables the fast scroll thumb that can be dragged to quickly scroll through the list.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol fastScrollEnabled
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol listSelector
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol scrollingCache
.
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 fale, 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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol smoothScrollbar
.
Used by ListView and GridView to stack their content from the bottom.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol stackFromBottom
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol textFilterEnabled
.
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.
Constant | Value | Description |
---|---|---|
disabled | 0 | Disables transcript mode. This is the default value. |
normal | 1 | The list will automatically scroll to the bottom when a data set change notification is received and only if the last item is already visible on screen. |
alwaysScroll | 2 | The list will automatically scroll to the bottom, no matter what items are currently visible. |
This corresponds to the global attribute resource symbol transcriptMode
.
Attributes that can be used with a AbsSpinner.
Includes the following attributes:
Attribute | Description |
---|---|
| Reference to an array resource that will populate the Spinner. |
Reference to an array resource that will populate the Spinner. For static content, this is simpler than populating the Spinner programmatically.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol entries
.
Attributes that can be used with a AbsoluteLayout_Layout.
Includes the following attributes:
Attribute | Description |
---|---|
| |
|
This symbol is the offset where the layout_x
attribute's value can be found in the AbsoluteLayout_Layout
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the layout_y
attribute's value can be found in the AbsoluteLayout_Layout
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Attributes that can be used with a AccelerateInterpolator.
Includes the following attributes:
Attribute | Description |
---|---|
| This is the amount of deceleration to add when easing in. |
This is the amount of deceleration to add when easing in.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol factor
.
Use account-authenticator
as the root tag of the XML resource that
describes an account authenticator.
Includes the following attributes:
Attribute | Description |
---|---|
| A preferences. |
| The account type this authenticator handles. |
| The icon of the authenticator. |
| The user-visible name of the authenticator. |
| Smaller icon of the authenticator. |
A preferences.xml file for authenticator-specific settings.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol accountPreferences
.
The account type this authenticator handles.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol accountType
.
The icon of the authenticator.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol icon
.
The user-visible name of the authenticator.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This corresponds to the global attribute resource symbol label
.
Smaller icon of the authenticator.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol smallIcon
.
The set of attributes that describe a AlertDialog's theme.
Includes the following attributes:
This symbol is the offset where the bottomBright
attribute's value can be found in the AlertDialog
array.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This symbol is the offset where the bottomDark
attribute's value can be found in the AlertDialog
array.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This symbol is the offset where the bottomMedium
attribute's value can be found in the AlertDialog
array.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This symbol is the offset where the centerBright
attribute's value can be found in the AlertDialog
array.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This symbol is the offset where the centerDark
attribute's value can be found in the AlertDialog
array.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This symbol is the offset where the centerMedium
attribute's value can be found in the AlertDialog
array.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This symbol is the offset where the fullBright
attribute's value can be found in the AlertDialog
array.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This symbol is the offset where the fullDark
attribute's value can be found in the AlertDialog
array.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This symbol is the offset where the topBright
attribute's value can be found in the AlertDialog
array.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This symbol is the offset where the topDark
attribute's value can be found in the AlertDialog
array.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
Attributes that can be used with a AlphaAnimation.
Includes the following attributes:
Attribute | Description |
---|---|
| |
|
This symbol is the offset where the fromAlpha
attribute's value can be found in the AlphaAnimation
array.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the toAlpha
attribute's value can be found in the AlphaAnimation
array.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Attributes that can be used with a AnalogClock.
Includes the following attributes:
Attribute | Description |
---|---|
| |
| |
|
This symbol is the offset where the dial
attribute's value can be found in the AnalogClock
array.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This symbol is the offset where the hand_hour
attribute's value can be found in the AnalogClock
array.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This symbol is the offset where the hand_minute
attribute's value can be found in the AnalogClock
array.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
The manifest
tag is the root of an
AndroidManifest.xml
file,
describing the contents of an Android package (.apk) file. One
attribute must always be supplied: package
gives a
unique name for the package, using a Java-style naming convention
to avoid name collisions. For example, applications published
by Google could have names of the form
com.google.app.appname
Inside of the manifest tag, may appear the following tags
in any order: permission
,
permission-group
,
permission-tree
,
uses-sdk
,
uses-permission
,
uses-configuration
,
application
,
instrumentation
,
uses-feature
.
Includes the following attributes:
Attribute | Description |
---|---|
| Specify the name of a user ID that will be shared between multiple packages. |
| Specify a label for the shared user UID of this package. |
| Internal version code. |
| The text shown to the user to indicate the version they have. |
Attributes that can be supplied in an AndroidManifest.xml
action
tag, a child of the
intent-filter
tag.
See addAction(String)
for
more information.
Includes the following attributes:
Attribute | Description |
---|---|
| The name of an action that is handled, using the Java-style naming convention. |
The name of an action that is handled, using the Java-style
naming convention. For example, to support
Intent.ACTION_VIEW
you would put android.intent.action.VIEW
here.
Custom actions should generally use a prefix matching the
package name.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol name
.
The activity
tag declares an
Activity
class that is available
as part of the package's application components, implementing
a part of the application's user interface.
Zero or more intent-filter
tags can be included inside of an activity, to specify the Intents
that it can handle. If none are specified, the activity can
only be started through direct specification of its class name.
The activity tag appears as a child tag of the
application
tag.
Includes the following attributes:
Attribute | Description |
---|---|
| Specify that an activity can be moved out of a task it is in to the task it has an affinity for when appropriate. |
| 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. |
| Specify whether an activity's task should be cleared when it is re-launched from the home screen. |
| Specify one or more configuration changes that the activity will handle itself. |
| Specify whether the activity is enabled or not (that is, can be instantiated by the system). |
| Indicates that an Activity should be excluded from the list of recently launched activities. |
| Flag indicating whether the given application component is available to other applications. |
| Specify whether an activity should be finished when a "close system windows" request has been made. |
| Specify whether an activity should be finished when its task is brought to the foreground by relaunching from the home screen. |
| A Drawable resource providing a graphical representation of its associated item. |
| A user-legible name for the given item. |
| Specify how an activity should be launched. |
| Specify whether a component is allowed to have multiple instances of itself running in different processes. |
| Required name of the class implementing the activity, deriving from
Activity . |
| Specify whether an activity should be kept in its history stack. |
| Specify a permission that a client is required to have in order to use the associated object. |
| Specify a specific process that the associated code is to run in. |
| Specify the orientation an activity should be run in. |
| Indicates that an Activity does not need to have its freeze state
(as returned by onSaveInstanceState(Bundle)
retained in order to be restarted. |
| Specify a task name that activities have an "affinity" to. |
| The overall theme to use for an activity. |
| Specify the default soft-input mode for the main window of this activity. |
AndroidManifestActivity_allowTaskReparenting
AndroidManifestActivity_alwaysRetainTaskState
AndroidManifestActivity_clearTaskOnLaunch
AndroidManifestActivity_configChanges
AndroidManifestActivity_enabled
AndroidManifestActivity_excludeFromRecents
AndroidManifestActivity_exported
AndroidManifestActivity_finishOnCloseSystemDialogs
AndroidManifestActivity_finishOnTaskLaunch
AndroidManifestActivity_icon
AndroidManifestActivity_label
AndroidManifestActivity_launchMode
AndroidManifestActivity_multiprocess
AndroidManifestActivity_name
AndroidManifestActivity_noHistory
AndroidManifestActivity_permission
AndroidManifestActivity_process
AndroidManifestActivity_screenOrientation
AndroidManifestActivity_stateNotNeeded
AndroidManifestActivity_taskAffinity
AndroidManifestActivity_theme
AndroidManifestActivity_windowSoftInputMode
The activity-alias
tag declares a new
name for an existing activity
tag.
Zero or more intent-filter
tags can be included inside of an activity-alias, to specify the Intents
that it can handle. If none are specified, the activity can
only be started through direct specification of its class name.
The activity-alias tag appears as a child tag of the
application
tag.
Includes the following attributes:
Attribute | Description |
---|---|
| Specify whether the activity-alias is enabled or not (that is, can be instantiated by the system). |
| Flag indicating whether the given application component is available to other applications. |
| A Drawable resource providing a graphical representation of its associated item. |
| A user-legible name for the given item. |
| Required name of the class implementing the activity, deriving from
Activity . |
| Specify a permission that a client is required to have in order to use the associated object. |
| The name of the activity this alias should launch. |
Specify whether the activity-alias is enabled or not (that is, can be instantiated by the system). It can also be specified for an application as a whole, in which case a value of "false" will override any component specific values (a value of "true" will not override the component specific values).
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol enabled
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol exported
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol icon
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This corresponds to the global attribute resource symbol label
.
Required name of the class implementing the activity, deriving from
Activity
. This is a fully
qualified class name (for example, com.mycompany.myapp.MyActivity); as a
short-hand if the first character of the class
is a period then it is appended to your package name.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol name
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol permission
.
The name of the activity this alias should launch. The activity must be in the same manifest as the alias, and have been defined in that manifest before the alias here. This must use a Java-style naming convention to ensure the name is unique, for example "com.mycompany.MyName".
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol targetActivity
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol allowTaskReparenting
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol alwaysRetainTaskState
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol clearTaskOnLaunch
.
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 |
---|---|---|
mcc | 0x0001 | The IMSI MCC has changed, that is a SIM has been detected and updated the Mobile Country Code. |
mnc | 0x0002 | The IMSI MNC has changed, that is a SIM has been detected and updated the Mobile Network Code. |
locale | 0x0004 | The locale has changed, that is the user has selected a new language that text should be displayed in. |
touchscreen | 0x0008 | The touchscreen has changed. Should never normally happen. |
keyboard | 0x0010 | The keyboard type has changed, for example the user has plugged in an external keyboard. |
keyboardHidden | 0x0020 | The keyboard or navigation accessibility has changed, for example the user has slid the keyboard out to expose it. Note that inspite of its name, this applied to any accessibility: keyboard or navigation. |
navigation | 0x0040 | The navigation type has changed. Should never normally happen. |
orientation | 0x0080 | The screen orientation has changed, that is the user has rotated the device. |
screenLayout | 0x0100 | The screen orientation has changed, that is the user has rotated the device. |
fontScale | 0x40000000 | The font scaling factor has changed, that is the user has selected a new global font size. |
This corresponds to the global attribute resource symbol configChanges
.
Specify whether the activity is enabled or not (that is, can be instantiated by the system). It can also be specified for an application as a whole, in which case a value of "false" will override any component specific values (a value of "true" will not override the component specific values).
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol enabled
.
Indicates that an Activity should be excluded from the list of recently launched activities.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol excludeFromRecents
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol exported
.
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 like recent apps is displayed, etc.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol finishOnCloseSystemDialogs
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol finishOnTaskLaunch
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol icon
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This corresponds to the global attribute resource symbol label
.
Specify how an activity should be launched. See the Application Fundamentals documentation 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
FLAG_ACTIVITY_SINGLE_TOP
,
FLAG_ACTIVITY_NEW_TASK
, and
FLAG_ACTIVITY_MULTIPLE_TASK
.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
standard | 0 | The default mode, which will usually create a new instance of
the activity when it is started, though this behavior may change
with the introduction of other options such as
Intent.FLAG_ACTIVITY_NEW_TASK . |
singleTop | 1 | If, when starting the activity, there is already an
instance of the same activity class in the foreground that is
interacting with the user, then
re-use that instance. This existing instance will receive a call to
Activity.onNewIntent() with
the new Intent that is being started. |
singleTask | 2 | If, when starting the activity, there is already a task running
that starts with this activity, then instead of starting a new
instance the current task is brought to the front. The existing
instance will receive a call to Activity.onNewIntent()
with the new Intent that is being started, and with the
Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT flag set. This is a superset
of the singleTop mode, where if there is already an instance
of the activity being started at the top of the stack, it will
receive the Intent as described there (without the
FLAG_ACTIVITY_BROUGHT_TO_FRONT flag set). See the
Application Fundamentals
documentation for more details on tasks. |
singleInstance | 3 | Only allow one instance of this activity to ever be
running. This activity gets a unique task with only itself running
in it; if it is ever launched again with the same Intent, then that
task will be brought forward and its
Activity.onNewIntent()
method called. If this
activity tries to start a new activity, that new activity will be
launched in a separate task. See the
Application Fundamentals
documentation for more details on tasks. |
This corresponds to the global attribute resource symbol launchMode
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol multiprocess
.
Required name of the class implementing the activity, deriving from
Activity
. This is a fully
qualified class name (for example, com.mycompany.myapp.MyActivity); as a
short-hand if the first character of the class
is a period then it is appended to your package name.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol name
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol noHistory
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol permission
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol process
.
Specify the orientation an activity should be run in. If not specified, it will run in the current preferred orientation of the screen.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
unspecified | -1 | No preference specified: let the system decide the best orientation. This will either be the orientation selected by the activity below, or the user's preferred orientation if this activity is the bottom of a task. If the user explicitly turned off sensor based orientation through settings sensor based device rotation will be ignored. If not by default sensor based orientation will be taken into account and the orientation will changed based on how the user rotates the device |
landscape | 0 | Would like to have the screen in a landscape orientation: that is, with the display wider than it is tall. |
portrait | 1 | Would like to have the screen in a portrait orientation: that is, with the display taller than it is wide. |
user | 2 | Use the user's current preferred orientation of the handset. |
behind | 3 | Keep the screen in the same orientation as whatever is behind this activity. |
sensor | 4 | Orientation is determined by a physical orientation sensor: the display will rotate based on how the user moves the device. |
nosensor | 5 | Always ignore orientation determined by orientation sensor: tthe display will not rotate when the user moves the device. |
This corresponds to the global attribute resource symbol screenOrientation
.
Indicates that an Activity does not need to have its freeze state
(as returned by 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 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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol stateNotNeeded
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol taskAffinity
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol theme
.
Specify the default soft-input mode for the main window of this activity. A value besides "unspecified" here overrides any value in the theme.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
stateUnspecified | 0 | Not specified, use what the system thinks is best. This is the default. |
stateUnchanged | 1 | Leave the soft input window as-is, in whatever state it last was. |
stateHidden | 2 | Make the soft input area hidden when normally appropriate (when the user is navigating forward to your window). |
stateAlwaysHidden | 3 | Always make the soft input area hidden when this window has input focus. |
stateVisible | 4 | Make the soft input area visible when normally appropriate (when the user is navigating forward to your window). |
stateAlwaysVisible | 5 | Always make the soft input area visible when this window has input focus. |
adjustUnspecified | 0x00 | The 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. |
adjustResize | 0x10 | Always resize the window: the content area of the window is reduced to make room for the soft input area. |
adjustPan | 0x20 | Don'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. |
This corresponds to the global attribute resource symbol windowSoftInputMode
.
The application
tag describes application-level components
contained in the package, as well as general application
attributes. Many of the attributes you can supply here (such
as theme, label, icon, permission, process, taskAffinity,
and allowTaskReparenting) serve
as default values for the corresponding attributes of components
declared inside of the application.
Inside of this element you specify what the application contains,
using the elements provider
,
service
,
receiver
,
activity
,
activity-alias
, and
uses-library
. The application tag
appears as a child of the root manifest
tag.
Includes the following attributes:
Attribute | Description |
---|---|
| This is not the attribute you are looking for. |
| Option to let applications specify that user data can/cannot be cleared. |
| Specify that an activity can be moved out of a task it is in to the task it has an affinity for when appropriate. |
| The name of the class implementing BackupAgent to manage
backup and restore of the application's settings to external storage. |
| Flag indicating whether the application can be debugged, even when running on a device that is running in user mode. |
| Descriptive text for the associated data. |
| Specify whether the components in this application are enabled or not (that is, can be instantiated by the system). |
| Indicate whether this application contains code. |
| A Drawable resource providing a graphical representation of its associated item. |
| Whether the application in question should be terminated after its settings have been restored. |
| A user-legible name for the given item. |
| Name of activity to be launched for managing the application's space on the device. |
| An optional name of a class implementing the overall
Application for this package. |
| Specify a permission that a client is required to have in order to use the associated object. |
| Flag to control special persistent mode of an application. |
| Specify a specific process that the associated code is to run in. |
| Whether the application needs to have its own Application subclass active during restore. |
| Specify a task name that activities have an "affinity" to. |
| Option to indicate this application is only for testing purposes. |
| The overall theme to use for an activity. |
AndroidManifestApplication_allowBackup
AndroidManifestApplication_allowClearUserData
AndroidManifestApplication_allowTaskReparenting
AndroidManifestApplication_backupAgent
AndroidManifestApplication_debuggable
AndroidManifestApplication_description
AndroidManifestApplication_enabled
AndroidManifestApplication_hasCode
AndroidManifestApplication_icon
AndroidManifestApplication_killAfterRestore
AndroidManifestApplication_label
AndroidManifestApplication_manageSpaceActivity
AndroidManifestApplication_name
AndroidManifestApplication_permission
AndroidManifestApplication_persistent
AndroidManifestApplication_process
AndroidManifestApplication_restoreNeedsApplication
AndroidManifestApplication_taskAffinity
AndroidManifestApplication_testOnly
AndroidManifestApplication_theme
This is not the attribute you are looking for.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol allowBackup
.
Option to let applications specify that user data can/cannot be cleared. Some applications might not want to clear user data. Such applications can explicitly set this value to false. This flag is turned on by default unless explicitly set to false by applications.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol allowClearUserData
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol allowTaskReparenting
.
The name of the class implementing BackupAgent
to manage
backup and restore of the application's settings to external storage.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol backupAgent
.
Flag indicating whether the application can be debugged, even when running on a device that is running in user mode.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol debuggable
.
Descriptive text for the associated data.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol description
.
Specify whether the components in this application are enabled or not (that is, can be instantiated by the system). If "false", it overrides any component specific values (a value of "true" will not override the component specific values).
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol enabled
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol hasCode
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol icon
.
Whether the application in question should be terminated after its settings have been restored. The default is to do so.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol killAfterRestore
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This corresponds to the global attribute resource symbol label
.
Name of activity to be launched for managing the application's space on the device.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol manageSpaceActivity
.
An optional name of a class implementing the overall
Application
for this package. When the
process for your package is started, this class is instantiated
before any of the other application components. Note that this
is not required, and in fact most applications will probably
not need it.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol name
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol permission
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol persistent
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol process
.
Whether the application needs to have its own Application subclass active during restore. The default is to run restore with a minimal Application class to avoid interference with application logic.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol restoreNeedsApplication
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol taskAffinity
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol testOnly
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol theme
.
Attributes that can be supplied in an AndroidManifest.xml
category
tag, a child of the
intent-filter
tag.
See addCategory(String)
for
more information.
Includes the following attributes:
Attribute | Description |
---|---|
| The name of category that is handled, using the Java-style naming convention. |
The name of category that is handled, using the Java-style
naming convention. For example, to support
Intent.CATEGORY_LAUNCHER
you would put android.intent.category.LAUNCHER
here.
Custom actions should generally use a prefix matching the
package name.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol name
.
Attributes that can be supplied in an AndroidManifest.xml
data
tag, a child of the
intent-filter
tag, describing
the types of data that match. This tag can be specified multiple
times to supply multiple data options, as described in the
IntentFilter
class. Note that all such
tags are adding options to the same IntentFilter so that, for example,
<data android:scheme="myscheme" android:host="me.com" />
is equivalent to <data android:scheme="myscheme" />
<data android:host="me.com" />
.
Includes the following attributes:
Attribute | Description |
---|---|
| Specify a URI authority host that is handled, as per
IntentFilter.addDataAuthority() . |
| Specify a MIME type that is handled, as per
IntentFilter.addDataType() . |
| Specify a URI path that must exactly match, as per
IntentFilter.addDataAuthority() with
PATTERN_LITERAL . |
| Specify a URI path that matches a simple pattern, as per
IntentFilter.addDataAuthority() with
PATTERN_SIMPLE_GLOB . |
| Specify a URI path that must be a prefix to match, as per
IntentFilter.addDataAuthority() with
PATTERN_PREFIX . |
| Specify a URI authority port that is handled, as per
IntentFilter.addDataAuthority() . |
| Specify a URI scheme that is handled, as per
IntentFilter.addDataScheme() . |
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol host
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol mimeType
.
Specify a URI path that must exactly match, as per
IntentFilter.addDataAuthority()
with
PATTERN_LITERAL
.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol path
.
Specify a URI path that matches a simple pattern, as per
IntentFilter.addDataAuthority()
with
PATTERN_SIMPLE_GLOB
.
Note that because '\' is used as an escape character when
reading the string from XML (before it is parsed as a pattern),
you will need to double-escape: for example a literal "*" would
be written as "\\*" and a literal "\" would be written as
"\\\\". This is basically the same as what you would need to
write if constructing the string in Java code.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol pathPattern
.
Specify a URI path that must be a prefix to match, as per
IntentFilter.addDataAuthority()
with
PATTERN_PREFIX
.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol pathPrefix
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol port
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol scheme
.
Attributes that can be supplied in an AndroidManifest.xml
grant-uri-permission
tag, a child of the
provider
tag, describing a specific
URI path that can be granted as a permission. This tag can be
specified multiple time to supply multiple paths.
Includes the following attributes:
Attribute | Description |
---|---|
| Specify a URI path that must exactly match, as per
PatternMatcher with
PATTERN_LITERAL . |
| Specify a URI path that matches a simple pattern, as per
PatternMatcher with
PATTERN_SIMPLE_GLOB . |
| Specify a URI path that must be a prefix to match, as per
PatternMatcher with
PATTERN_PREFIX . |
Specify a URI path that must exactly match, as per
PatternMatcher
with
PATTERN_LITERAL
.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol path
.
Specify a URI path that matches a simple pattern, as per
PatternMatcher
with
PATTERN_SIMPLE_GLOB
.
Note that because '\' is used as an escape character when
reading the string from XML (before it is parsed as a pattern),
you will need to double-escape: for example a literal "*" would
be written as "\\*" and a literal "\" would be written as
"\\\\". This is basically the same as what you would need to
write if constructing the string in Java code.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol pathPattern
.
Specify a URI path that must be a prefix to match, as per
PatternMatcher
with
PATTERN_PREFIX
.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol pathPrefix
.
Attributes that can be supplied in an AndroidManifest.xml
instrumentation
tag, a child of the root
manifest
tag.
Includes the following attributes:
Attribute | Description |
---|---|
| Flag indicating that an Instrumentation class should be run as a functional test. |
| 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. |
| A Drawable resource providing a graphical representation of its associated item. |
| A user-legible name for the given item. |
| Required name of the class implementing the instrumentation, deriving from
Instrumentation . |
| The name of the application package that an Instrumentation object will run against. |
Flag indicating that an Instrumentation class should be run as a functional test.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol functionalTest
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol handleProfiling
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol icon
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This corresponds to the global attribute resource symbol label
.
Required name of the class implementing the instrumentation, deriving from
Instrumentation
. This is a fully
qualified class name (for example, com.mycompany.myapp.MyActivity); as a
short-hand if the first character of the class
is a period then it is appended to your package name.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol name
.
The name of the application package that an Instrumentation object will run against.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol targetPackage
.
The intent-filter
tag is used to construct an
IntentFilter
object that will be used
to determine which component can handle a particular
Intent
that has been given to the system.
It can be used as a child of the
activity
,
receiver
and
service
tags.
Zero or more action
,
category
, and/or
data
tags should be
included inside to describe the contents of the filter.
The optional label and icon attributes here are used with an activity to supply an alternative description of that activity when it is being started through an Intent matching this filter.
Includes the following attributes:
Attribute | Description |
---|---|
| A Drawable resource providing a graphical representation of its associated item. |
| A user-legible name for the given item. |
| Specify the relative importance or ability in handling a particular Intent. |
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol icon
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This corresponds to the global attribute resource symbol label
.
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.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol priority
.
The meta-data
tag is used to attach additional
arbitrary data to an application component. The data can later
be retrieved programmatically from the
ComponentInfo.metaData
field. There is no meaning given to this
data by the system. You may supply the data through either the
value
or resource
attribute; if both
are given, then resource
will be used.
It is highly recommended that you avoid supplying related data as
multiple separate meta-data entries. Instead, if you have complex
data to associate with a component, then use the resource
attribute to assign an XML resource that the client can parse to
retrieve the complete data.
Includes the following attributes:
Attribute | Description |
---|---|
| A unique name for the given item. |
| Resource identifier to assign to this piece of named meta-data. |
| Concrete value to assign to this piece of named meta-data. |
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".
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol name
.
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
.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol resource
.
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, either "true
" or "false
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
May be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol value
.
Attributes that can be supplied in an AndroidManifest.xml
path-permission
tag, a child of the
provider
tag, describing a permission
that allows access to a specific path in the provider. This tag can be
specified multiple time to supply multiple paths.
Includes the following attributes:
Attribute | Description |
---|---|
| Specify a URI path that must exactly match, as per
PatternMatcher with
PATTERN_LITERAL . |
| Specify a URI path that matches a simple pattern, as per
PatternMatcher with
PATTERN_SIMPLE_GLOB . |
| Specify a URI path that must be a prefix to match, as per
PatternMatcher with
PATTERN_PREFIX . |
| Specify a permission that a client is required to have in order to use the associated object. |
| A specific permission name for read-only
access to a ContentProvider . |
| A specific permission name for write
access to a ContentProvider . |
Specify a URI path that must exactly match, as per
PatternMatcher
with
PATTERN_LITERAL
.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol path
.
Specify a URI path that matches a simple pattern, as per
PatternMatcher
with
PATTERN_SIMPLE_GLOB
.
Note that because '\' is used as an escape character when
reading the string from XML (before it is parsed as a pattern),
you will need to double-escape: for example a literal "*" would
be written as "\\*" and a literal "\" would be written as
"\\\\". This is basically the same as what you would need to
write if constructing the string in Java code.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol pathPattern
.
Specify a URI path that must be a prefix to match, as per
PatternMatcher
with
PATTERN_PREFIX
.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol pathPrefix
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol permission
.
A specific permission
name for read-only
access to a ContentProvider
. See the
Security and Permissions
document for more information on permissions.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol readPermission
.
A specific permission
name for write
access to a ContentProvider
. See the
Security and Permissions
document for more information on permissions.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol writePermission
.
The permission
tag declares a security permission that can be
used to control access from other packages to specific components or
features in your package (or other packages). See the
Security and Permissions
document for more information on permissions.
This appears as a child tag of the root
manifest
tag.
Includes the following attributes:
Attribute | Description |
---|---|
| Descriptive text for the associated data. |
| A Drawable resource providing a graphical representation of its associated item. |
| A user-legible name for the given item. |
| Required public name of the permission, which other components and packages will use when referring to this permission. |
| Specified the name of a group that this permission is associated with. |
| 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. |
The permission-group
tag declares a logical grouping of
related permissions.
Note that this tag does not declare a permission itself, only
a namespace in which further permissions can be placed. See
the <permission>
tag for
more information.
This appears as a child tag of the root
manifest
tag.
Includes the following attributes:
Attribute | Description |
---|---|
| Descriptive text for the associated data. |
| A Drawable resource providing a graphical representation of its associated item. |
| A user-legible name for the given item. |
| Required public name of the permission group, permissions will use to specify the group they are in. |
Descriptive text for the associated data.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol description
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol icon
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This corresponds to the global attribute resource symbol label
.
Required public name of the permission group, permissions will use to specify the group they are in. This is a string using Java-style scoping to ensure it is unique. The prefix will often be the same as our overall package name, for example "com.mycompany.android.myapp.SomePermission".
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol name
.
The permission-tree
tag declares the base of a tree of
permission values: it declares that this package has ownership of
the given permission name, as well as all names underneath it
(separated by '.'). This allows you to use the
PackageManager.addPermission()
method to dynamically add new
permissions under this tree.
Note that this tag does not declare a permission itself, only
a namespace in which further permissions can be placed. See
the <permission>
tag for
more information.
This appears as a child tag of the root
manifest
tag.
Includes the following attributes:
Attribute | Description |
---|---|
| A Drawable resource providing a graphical representation of its associated item. |
| A user-legible name for the given item. |
| Required public name of the permission tree, which is the base name of all permissions under it. |
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol icon
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This corresponds to the global attribute resource symbol label
.
Required public name of the permission tree, which is the base name of all permissions under it. This is a string using Java-style scoping to ensure it is unique. The prefix will often be the same as our overall package name, for example "com.mycompany.android.myapp.SomePermission". A permission tree name must have more than two segments in its path; that is, "com.me.foo" is okay, but not "com.me" or "com".
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol name
.
Descriptive text for the associated data.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol description
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol icon
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This corresponds to the global attribute resource symbol label
.
Required public name of the permission, which other components and packages will use when referring to this permission. This is a string using Java-style scoping to ensure it is unique. The prefix will often be the same as our overall package name, for example "com.mycompany.android.myapp.SomePermission".
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol name
.
Specified the name of a group that this permission is associated
with. The group must have been defined with the
permission-group
tag.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol permissionGroup
.
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").
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
normal | 0 | A lower-risk permission that gives an application access to isolated application-level features, with minimal risk to other applications, the system, or the user. The system automatically grants this type of permission to a requesting application at installation, without asking for the user's explicit approval (though the user always has the option to review these permissions before installing). |
dangerous | 1 | A higher-risk permission that would give a requesting application access to private user data or control over the device that can negatively impact the user. Because this type of permission introduces potential risk, the system may not automatically grant it to the requesting application. For example, any dangerous permissions requested by an application may be displayed to the user and require confirmation before proceeding, or some other approach may be taken to avoid the user automatically allowing the use of such facilities. |
signature | 2 | A permission that the system is to grant only if the requesting application is signed with the same certificate as the application that declared the permission. If the certificates match, the system automatically grants the permission without notifying the user or asking for the user's explicit approval. |
signatureOrSystem | 3 | A permission that the system is to grant only to packages in the Android system image or that are signed with the same certificates. Please avoid using this option, as the signature protection level should be sufficient for most needs and works regardless of exactly where applications are installed. This permission is used for certain special situations where multiple vendors have applications built in to a system image which need to share specific features explicitly because they are being built together. |
This corresponds to the global attribute resource symbol protectionLevel
.
Private tag to declare system protected broadcast actions.
This appears as a child tag of the root
manifest
tag.
Includes the following attributes:
Attribute | Description |
---|---|
| A unique name for the given item. |
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".
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol name
.
The provider
tag declares a
ContentProvider
class that is available
as part of the package's application components, supplying structured
access to data managed by the application.
This appears as a child tag of the
application
tag.
Includes the following attributes:
Attribute | Description |
---|---|
| Specify the authorities under which this content provider can be found. |
| Specify whether this provider is enabled or not (that is, can be instantiated by the system). |
| Flag indicating whether the given application component is available to other applications. |
| 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. |
| A Drawable resource providing a graphical representation of its associated item. |
| Specify the order in which content providers hosted by a process are instantiated when that process is created. |
| A user-legible name for the given item. |
| Specify whether a component is allowed to have multiple instances of itself running in different processes. |
| Required name of the class implementing the provider, deriving from
ContentProvider . |
| Specify a permission that a client is required to have in order to use the associated object. |
| Specify a specific process that the associated code is to run in. |
| A specific permission name for read-only
access to a ContentProvider . |
| Flag indicating whether this content provider would like to participate in data synchronization. |
| A specific permission name for write
access to a ContentProvider . |
AndroidManifestProvider_authorities
AndroidManifestProvider_enabled
AndroidManifestProvider_exported
AndroidManifestProvider_grantUriPermissions
AndroidManifestProvider_icon
AndroidManifestProvider_initOrder
AndroidManifestProvider_label
AndroidManifestProvider_multiprocess
AndroidManifestProvider_name
AndroidManifestProvider_permission
AndroidManifestProvider_process
AndroidManifestProvider_readPermission
AndroidManifestProvider_syncable
AndroidManifestProvider_writePermission
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol authorities
.
Specify whether this provider is enabled or not (that is, can be instantiated by the system). It can also be specified for an application as a whole, in which case a value of "false" will override any component specific values (a value of "true" will not override the component specific values).
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol enabled
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol exported
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol grantUriPermissions
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol icon
.
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.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol initOrder
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This corresponds to the global attribute resource symbol label
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol multiprocess
.
Required name of the class implementing the provider, deriving from
ContentProvider
. This is a fully
qualified class name (for example, com.mycompany.myapp.MyProvider); as a
short-hand if the first character of the class
is a period then it is appended to your package name.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol name
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol permission
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol process
.
A specific permission
name for read-only
access to a ContentProvider
. See the
Security and Permissions
document for more information on permissions.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol readPermission
.
Flag indicating whether this content provider would like to participate in data synchronization.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol syncable
.
A specific permission
name for write
access to a ContentProvider
. See the
Security and Permissions
document for more information on permissions.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol writePermission
.
The receiver
tag declares an
BroadcastReceiver
class that is available
as part of the package's application components, allowing the
application to receive actions or data broadcast by other
applications even if it is not currently running.
Zero or more intent-filter
tags can be included inside of a receiver, to specify the Intents
it will receive. If none are specified, the receiver will only
be run when an Intent is broadcast that is directed at its specific
class name. The receiver tag appears as a child tag of the
application
tag.
Includes the following attributes:
Attribute | Description |
---|---|
| Specify whether the receiver is enabled or not (that is, can be instantiated by the system). |
| Flag indicating whether the given application component is available to other applications. |
| A Drawable resource providing a graphical representation of its associated item. |
| A user-legible name for the given item. |
| Required name of the class implementing the receiver, deriving from
BroadcastReceiver . |
| Specify a permission that a client is required to have in order to use the associated object. |
| Specify a specific process that the associated code is to run in. |
Specify whether the receiver is enabled or not (that is, can be instantiated by the system). It can also be specified for an application as a whole, in which case a value of "false" will override any component specific values (a value of "true" will not override the component specific values).
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol enabled
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol exported
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol icon
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This corresponds to the global attribute resource symbol label
.
Required name of the class implementing the receiver, deriving from
BroadcastReceiver
. This is a fully
qualified class name (for example, com.mycompany.myapp.MyReceiver); as a
short-hand if the first character of the class
is a period then it is appended to your package name.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol name
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol permission
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol process
.
The service
tag declares a
Service
class that is available
as part of the package's application components, implementing
long-running background operations or a rich communication API
that can be called by other packages.
Zero or more intent-filter
tags can be included inside of a service, to specify the Intents
that can connect with it. If none are specified, the service can
only be accessed by direct specification of its class name.
The service tag appears as a child tag of the
application
tag.
Includes the following attributes:
Attribute | Description |
---|---|
| Specify whether the service is enabled or not (that is, can be instantiated by the system). |
| Flag indicating whether the given application component is available to other applications. |
| A Drawable resource providing a graphical representation of its associated item. |
| A user-legible name for the given item. |
| Required name of the class implementing the service, deriving from
Service . |
| Specify a permission that a client is required to have in order to use the associated object. |
| Specify a specific process that the associated code is to run in. |
Specify whether the service is enabled or not (that is, can be instantiated by the system). It can also be specified for an application as a whole, in which case a value of "false" will override any component specific values (a value of "true" will not override the component specific values).
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol enabled
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol exported
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol icon
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This corresponds to the global attribute resource symbol label
.
Required name of the class implementing the service, deriving from
Service
. This is a fully
qualified class name (for example, com.mycompany.myapp.MyService); as a
short-hand if the first character of the class
is a period then it is appended to your package name.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol name
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol permission
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol process
.
The supports-screens
specifies the screen dimensions an
application supports. By default a modern application supports all
screen sizes and must explicitly disable certain screen sizes here;
older applications are assumed to only support the traditional normal
(HVGA) screen size. Note that screen size is a separate axis from
density, and is determined as the available pixels to an application
after density scaling has been applied.
This appears as a child tag of the
manifest
tag.
Includes the following attributes:
Attribute | Description |
---|---|
| Indicates whether the application can accommodate any screen density. |
| Indicates whether the application supports larger screen form-factors. |
| Indicates whether an application supports the normal screen form-factors. |
| Indicates whether the application can resize itself to newer screen sizes. |
| Indicates whether the application supports smaller screen form-factors. |
Indicates whether the application can accommodate any screen density. Older applications are assumed to not be able to, new ones able to. You can explicitly supply your abilities here.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol anyDensity
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol largeScreens
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol normalScreens
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol resizeable
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol smallScreens
.
The uses-configuration
tag specifies
a specific hardware configuration value used by the application.
For example an application might specify that it requires
a physical keyboard or a particular navigation method like
trackball. Multiple such attribute values can be specified by the
application.
This appears as a child tag of the root
manifest
tag.
Includes the following attributes:
Attribute | Description |
---|---|
| Application's requirement for five way navigation |
| Application's requirement for a hard keyboard |
| The input method preferred by an application. |
| The navigation device preferred by an application. |
| The type of touch screen used by an application. |
Application's requirement for five way navigation
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol reqFiveWayNav
.
Application's requirement for a hard keyboard
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol reqHardKeyboard
.
The input method preferred by an application.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
undefined | 0 | |
nokeys | 1 | |
qwerty | 2 | |
twelvekey | 3 |
This corresponds to the global attribute resource symbol reqKeyboardType
.
The navigation device preferred by an application.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
undefined | 0 | |
nonav | 1 | |
dpad | 2 | |
trackball | 3 | |
wheel | 4 |
This corresponds to the global attribute resource symbol reqNavigation
.
The type of touch screen used by an application.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
undefined | 0 | |
notouch | 1 | |
stylus | 2 | |
finger | 3 |
This corresponds to the global attribute resource symbol reqTouchScreen
.
The uses-feature
tag specifies
a specific feature used by the application.
For example an application might specify that it requires
specific version of open gl. Multiple such attribute
values can be specified by the application.
This appears as a child tag of the root
manifest
tag.
Includes the following attributes:
Attribute | Description |
---|---|
| The GLES driver version number needed by an application. |
| The name of the feature that is being used. |
| Specify whether this feature is required for the application. |
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.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol glEsVersion
.
The name of the feature that is being used.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol name
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol required
.
The uses-libraries
specifies a shared library that this
package requires to be linked against. Specifying this flag tells the
system to include this library's code in your class loader.
This appears as a child tag of the
application
tag.
Includes the following attributes:
Attribute | Description |
---|---|
| Required name of the library you use. |
| Specify whether this library is required for the application. |
Required name of the library you use.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol name
.
Specify whether this library is required for the application. The default is true, meaning the application requires the library, and does not want to be installed on devices that don't support it. If you set this to false, then this will allow the application to be installed even if the library doesn't exist, and you will need to check for its presence dynamically at runtime.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol required
.
The uses-permission
tag requests a
<permission>
that the containing
package must be granted in order for it to operate correctly.
See the Security and Permissions
document for more information on permissions. Also available is a
list of permissions
included
with the base platform.
This appears as a child tag of the root
manifest
tag.
Includes the following attributes:
Attribute | Description |
---|---|
| Required name of the permission you use, as published with the
corresponding name attribute of a
<permission>
tag; often this is one of the standard
system permissions . |
Required name of the permission you use, as published with the
corresponding name attribute of a
<permission>
tag; often this is one of the standard
system permissions
.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol name
.
The uses-sdk
tag describes the SDK features that the
containing package must be running on to operate correctly.
This appears as a child tag of the root
manifest
tag.
Includes the following attributes:
Attribute | Description |
---|---|
| This is the maximum SDK version number that an application works on. |
| This is the minimum SDK version number that the application requires. |
| This is the SDK version number that the application is targeting. |
This is the maximum SDK version number that an application works on. You can use this to ensure your application is filtered out of later versions of the platform when you know you have incompatibility with them.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol maxSdkVersion
.
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
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol minSdkVersion
.
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
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol targetSdkVersion
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol sharedUserId
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol sharedUserLabel
.
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
.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol versionCode
.
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
.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol versionName
.
Attributes that can be used with a AnimatedRotateDrawable.
Includes the following attributes:
Attribute | Description |
---|---|
| Reference to a drawable resource to use for the frame. |
| |
| |
| Provides initial visibility state of the drawable; the default value is false. |
Reference to a drawable resource to use for the frame. If not given, the drawable must be defined by the first child tag.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol drawable
.
This symbol is the offset where the pivotX
attribute's value can be found in the AnimatedRotateDrawable
array.
May be a floating point value, such as "1.2
".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the pivotY
attribute's value can be found in the AnimatedRotateDrawable
array.
May be a floating point value, such as "1.2
".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Provides initial visibility state of the drawable; the default
value is false. See
setVisible(boolean, boolean)
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol visible
.
Attributes that can be used with a Animation.
Includes the following attributes:
Attribute | Description |
---|---|
| Special option for window animations: if this window is on top of a wallpaper, don't animate the wallpaper with it. |
| Amount of time (in milliseconds) for the animation to run. |
| When set to true, the animation transformation is applied after the animation is over. |
| When set to true, the animation transformation is applied before the animation has started. |
| When set to true, fillAfter is taken into account. |
| Defines the interpolator used to smooth the animation movement in time. |
| Defines how many times the animation should repeat. |
| Defines the animation behavior when it reaches the end and the repeat count is greater than 0 or infinite. |
| Delay in milliseconds before the animation runs, once start time is reached. |
| Allows for an adjustment of the Z ordering of the content being animated for the duration of the animation. |
Attributes that can be used with a AnimationDrawable.
Includes the following attributes:
Attribute | Description |
---|---|
| If true, the animation will only run a single time and then stop. |
| If true, allows the drawable's padding to change based on the current state that is selected. |
| Provides initial visibility state of the drawable; the default value is false. |
Attributes that can be used with a AnimationDrawableItem.
Includes the following attributes:
Attribute | Description |
---|---|
| Reference to a drawable resource to use for the frame. |
| Amount of time (in milliseconds) to display this frame. |
Reference to a drawable resource to use for the frame. If not given, the drawable must be defined by the first child tag.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol drawable
.
Amount of time (in milliseconds) to display this frame.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol duration
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol oneshot
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol variablePadding
.
Provides initial visibility state of the drawable; the default
value is false. See
setVisible(boolean, boolean)
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol visible
.
Attributes that can be used with a AnimationSet.
Includes the following attributes:
Attribute | Description |
---|---|
|
This symbol is the offset where the shareInterpolator
attribute's value can be found in the AnimationSet
array.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Special option for window animations: if this window is on top of a wallpaper, don't animate the wallpaper with it.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol detachWallpaper
.
Amount of time (in milliseconds) for the animation to run.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol duration
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol fillAfter
.
When set to true, the animation transformation is applied before the animation has started. The default value is true. If fillEnabled is not set to true, fillBefore is assumed to be true.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol fillBefore
.
When set to true, fillAfter is taken into account.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol fillEnabled
.
Defines the interpolator used to smooth the animation movement in time.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol interpolator
.
Defines how many times the animation should repeat. The default value is 0.
May be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
May be one of the following constant values.
Constant | Value | Description |
---|---|---|
infinite | -1 |
This corresponds to the global attribute resource symbol repeatCount
.
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.
Constant | Value | Description |
---|---|---|
restart | 1 | The animation starts again from the beginning. |
reverse | 2 | The animation plays backward. |
This corresponds to the global attribute resource symbol repeatMode
.
Delay in milliseconds before the animation runs, once start time is reached.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol startOffset
.
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.
Constant | Value | Description |
---|---|---|
normal | 0 | The content being animated be kept in its current Z order. |
top | 1 | The content being animated is forced on top of all other content for the duration of the animation. |
bottom | -1 | The content being animated is forced under all other content for the duration of the animation. |
This corresponds to the global attribute resource symbol zAdjustment
.
Attributes that can be used with a AnticipateInterpolator.
Includes the following attributes:
Attribute | Description |
---|---|
| This is the amount of tension. |
This is the amount of tension.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol tension
.
Attributes that can be used with a AnticipateOvershootInterpolator.
Includes the following attributes:
Attribute | Description |
---|---|
| This is the amount by which to multiply the tension. |
| This is the amount of tension. |
This is the amount by which to multiply the tension.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol extraTension
.
This is the amount of tension.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol tension
.
Use appwidget-provider
as the root tag of the XML resource that
describes an AppWidget provider. See android.appwidget
package for more info.
Includes the following attributes:
Attribute | Description |
---|---|
| A class name in the AppWidget's package to be launched to configure. |
| A resource id of a layout. |
| Minimum height of the AppWidget. |
| Minimum width of the AppWidget. |
| Update period in milliseconds, or 0 if the AppWidget will update itself. |
A class name in the AppWidget's package to be launched to configure. If not supplied, then no activity will be launched.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol configure
.
A resource id of a layout.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol initialLayout
.
Minimum height of the AppWidget.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol minHeight
.
Minimum width of the AppWidget.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol minWidth
.
Update period in milliseconds, or 0 if the AppWidget will update itself.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol updatePeriodMillis
.
Attributes that can be used with a AutoCompleteTextView.
Includes the following attributes:
Attribute | Description |
---|---|
| Defines the hint displayed in the drop down menu. |
| Defines the hint view displayed in the drop down menu. |
| Defines the number of characters that the user must type before completion suggestions are displayed in a drop down menu. |
| View to anchor the auto-complete dropdown to. |
| Specifies the basic width of the dropdown. |
| Amount of pixels by which the drop down should be offset horizontally. |
| Selector in a drop down list. |
| Amount of pixels by which the drop down should be offset vertically. |
| Specifies the basic width of the dropdown. |
| The type of data being placed in a text field, used to help an input method decide how to let the user enter text. |
AutoCompleteTextView_completionHint
AutoCompleteTextView_completionHintView
AutoCompleteTextView_completionThreshold
AutoCompleteTextView_dropDownAnchor
AutoCompleteTextView_dropDownHeight
AutoCompleteTextView_dropDownHorizontalOffset
AutoCompleteTextView_dropDownSelector
AutoCompleteTextView_dropDownVerticalOffset
AutoCompleteTextView_dropDownWidth
AutoCompleteTextView_inputType
Defines the hint displayed in the drop down menu.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol completionHint
.
Defines the hint view displayed in the drop down menu.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol completionHintView
.
Defines the number of characters that the user must type before completion suggestions are displayed in a drop down menu.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol completionThreshold
.
View to anchor the auto-complete dropdown to. If not specified, the text view itself is used.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol dropDownAnchor
.
Specifies the basic width of the dropdown. Its value may be a dimension (such as "12dip") for a constant width, fill_parent to fill the width 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), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
May be one of the following constant values.
Constant | Value | Description |
---|---|---|
fill_parent | -1 | The dropdown should fill the width of the screen. |
wrap_content | -2 | The dropdown should fit the width of its anchor. |
This corresponds to the global attribute resource symbol dropDownHeight
.
Amount of pixels by which the drop down should be offset horizontally.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol dropDownHorizontalOffset
.
Selector in a drop down list.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol dropDownSelector
.
Amount of pixels by which the drop down should be offset vertically.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol dropDownVerticalOffset
.
Specifies the basic width of the dropdown. Its value may be a dimension (such as "12dip") for a constant width, fill_parent to fill 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), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
May be one of the following constant values.
Constant | Value | Description |
---|---|---|
fill_parent | -1 | The dropdown should fill the width of the screen. |
wrap_content | -2 | The dropdown should fit the width of its anchor. |
This corresponds to the global attribute resource symbol dropDownWidth
.
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.
Constant | Value | Description |
---|---|---|
none | 0x00000000 | There is no content type. The text is not editable. |
text | 0x00000001 | Just plain old text. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_NORMAL . |
textCapCharacters | 0x00001001 | Can be combined with text and its variations to
request capitalization of all characters. Corresponds to
TYPE_TEXT_FLAG_CAP_CHARACTERS . |
textCapWords | 0x00002001 | Can be combined with text and its variations to
request capitalization of the first character of every word. Corresponds to
TYPE_TEXT_FLAG_CAP_WORDS . |
textCapSentences | 0x00004001 | Can be combined with text and its variations to
request capitalization of the first character of every sentence. Corresponds to
TYPE_TEXT_FLAG_CAP_SENTENCES . |
textAutoCorrect | 0x00008001 | Can be combined with text and its variations to
request auto-correction of text being input. Corresponds to
TYPE_TEXT_FLAG_AUTO_CORRECT . |
textAutoComplete | 0x00010001 | Can 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
TYPE_TEXT_FLAG_AUTO_COMPLETE . |
textMultiLine | 0x00020001 | Can 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
TYPE_TEXT_FLAG_MULTI_LINE . |
textImeMultiLine | 0x00040001 | Can 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
TYPE_TEXT_FLAG_IME_MULTI_LINE . |
textNoSuggestions | 0x00080001 | Can be combined with text and its variations to
indicate that the IME should not show any
dictionary-based word suggestions. Corresponds to
TYPE_TEXT_FLAG_NO_SUGGESTIONS . |
textUri | 0x00000011 | Text that will be used as a URI. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_URI . |
textEmailAddress | 0x00000021 | Text that will be used as an e-mail address. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_EMAIL_ADDRESS . |
textEmailSubject | 0x00000031 | Text that is being supplied as the subject of an e-mail. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_EMAIL_SUBJECT . |
textShortMessage | 0x00000041 | Text that is the content of a short message. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_SHORT_MESSAGE . |
textLongMessage | 0x00000051 | Text that is the content of a long message. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_LONG_MESSAGE . |
textPersonName | 0x00000061 | Text that is the name of a person. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_PERSON_NAME . |
textPostalAddress | 0x00000071 | Text that is being supplied as a postal mailing address. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_POSTAL_ADDRESS . |
textPassword | 0x00000081 | Text that is a password. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_PASSWORD . |
textVisiblePassword | 0x00000091 | Text that is a password that should be visible. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_VISIBLE_PASSWORD . |
textWebEditText | 0x000000a1 | Text that is being supplied as text in a web form. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_WEB_EDIT_TEXT . |
textFilter | 0x000000b1 | Text that is filtering some other data. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_FILTER . |
textPhonetic | 0x000000c1 | Text that is for phonetic pronunciation, such as a phonetic name
field in a contact entry. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_PHONETIC . |
number | 0x00000002 | A numeric only field. Corresponds to
TYPE_CLASS_NUMBER . |
numberSigned | 0x00001002 | Can be combined with number and its other options to
allow a signed number. Corresponds to
TYPE_CLASS_NUMBER |
TYPE_NUMBER_FLAG_SIGNED . |
numberDecimal | 0x00002002 | Can be combined with number and its other options to
allow a decimal (fractional) number. Corresponds to
TYPE_CLASS_NUMBER |
TYPE_NUMBER_FLAG_DECIMAL . |
phone | 0x00000003 | For entering a phone number. Corresponds to
TYPE_CLASS_PHONE . |
datetime | 0x00000004 | For entering a date and time. Corresponds to
TYPE_CLASS_DATETIME |
TYPE_DATETIME_VARIATION_NORMAL . |
date | 0x00000014 | For entering a date. Corresponds to
TYPE_CLASS_DATETIME |
TYPE_DATETIME_VARIATION_DATE . |
time | 0x00000024 | For entering a time. Corresponds to
TYPE_CLASS_DATETIME |
TYPE_DATETIME_VARIATION_TIME . |
This corresponds to the global attribute resource symbol inputType
.
Drawable used to draw bitmaps.
Includes the following attributes:
Attribute | Description |
---|---|
| Enables or disables antialiasing. |
| 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). |
| Enables or disables bitmap filtering. |
| Defines the gravity for the bitmap. |
| Identifier of the bitmap file. |
| Defines the tile mode. |
Enables or disables antialiasing.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol antialias
.
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).
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol dither
.
Enables or disables bitmap filtering. Filtering is used when the bitmap is shrunk or stretched to smooth its apperance.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol filter
.
Defines the gravity for the bitmap. The gravity indicates where to position the drawable in its container if the bitmap is smaller than the container.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
top | 0x30 | Push object to the top of its container, not changing its size. |
bottom | 0x50 | Push object to the bottom of its container, not changing its size. |
left | 0x03 | Push object to the left of its container, not changing its size. |
right | 0x05 | Push object to the right of its container, not changing its size. |
center_vertical | 0x10 | Place object in the vertical center of its container, not changing its size. |
fill_vertical | 0x70 | Grow the vertical size of the object if needed so it completely fills its container. |
center_horizontal | 0x01 | Place object in the horizontal center of its container, not changing its size. |
fill_horizontal | 0x07 | Grow the horizontal size of the object if needed so it completely fills its container. |
center | 0x11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
fill | 0x77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
clip_vertical | 0x80 | 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. |
clip_horizontal | 0x08 | 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. |
This corresponds to the global attribute resource symbol gravity
.
Identifier of the bitmap file. This attribute is mandatory.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol src
.
Defines the tile mode. When the tile mode is enabled, the bitmap is repeated. Gravity is ignored when the tile mode is enabled.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
disabled | -1 | Do not tile the bitmap. This is the default value. |
clamp | 0 | Replicates the edge color. |
repeat | 1 | Repeats the bitmap in both direction. |
mirror | 2 | Repeats the shader's image horizontally and vertically, alternating mirror images so that adjacent images always seam. |
This corresponds to the global attribute resource symbol tileMode
.
Base attributes available to CheckBoxPreference.
Includes the following attributes:
Attribute | Description |
---|---|
| The state (true for on, or false for off) that causes dependents to be disabled. |
| The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is unchecked. |
| The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is checked. |
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol disableDependentsState
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol summaryOff
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol summaryOn
.
Attributes that can be used with a CheckedTextView.
Includes the following attributes:
Attribute | Description |
---|---|
| Drawable used for the check mark graphic. |
| Indicates the initial checked state of this text. |
Drawable used for the check mark graphic.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol checkMark
.
Indicates the initial checked state of this text.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol checked
.
Attributes that can be used with a Chronometer.
Includes the following attributes:
Attribute | Description |
---|---|
| 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. |
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".
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol format
.
Attributes that can be used with a ClipDrawable.
Includes the following attributes:
Attribute | Description |
---|---|
| The orientation for the clip. |
| Reference to a drawable resource to draw with the specified scale. |
| Specifies where to clip within the drawable. |
The orientation for the clip.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
horizontal | 1 | Clip the drawable horizontally. |
vertical | 2 | Clip the drawable vertically. |
This corresponds to the global attribute resource symbol clipOrientation
.
Reference to a drawable resource to draw with the specified scale.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol drawable
.
Specifies where to clip within the drawable. The default value is left.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
top | 0x30 | Push object to the top of its container, not changing its size. |
bottom | 0x50 | Push object to the bottom of its container, not changing its size. |
left | 0x03 | Push object to the left of its container, not changing its size. |
right | 0x05 | Push object to the right of its container, not changing its size. |
center_vertical | 0x10 | Place object in the vertical center of its container, not changing its size. |
fill_vertical | 0x70 | Grow the vertical size of the object if needed so it completely fills its container. |
center_horizontal | 0x01 | Place object in the horizontal center of its container, not changing its size. |
fill_horizontal | 0x07 | Grow the horizontal size of the object if needed so it completely fills its container. |
center | 0x11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
fill | 0x77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
clip_vertical | 0x80 | 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. |
clip_horizontal | 0x08 | 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. |
This corresponds to the global attribute resource symbol gravity
.
Drawable used to draw a single color.
Includes the following attributes:
Attribute | Description |
---|---|
| The color to use. |
The color to use.
Must be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol color
.
Attributes that can be used with a CompoundButton.
Includes the following attributes:
Attribute | Description |
---|---|
| Drawable used for the button graphic (e. |
| Indicates the initial checked state of this button. |
Drawable used for the button graphic (e.g. checkbox, radio button, etc).
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol button
.
Indicates the initial checked state of this button.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol checked
.
Maps a specific contact data MIME-type to styling information.
Includes the following attributes:
Attribute | Description |
---|---|
| Column in data table that contains details for this data. |
| Flag indicating that detail should be built from SocialProvider. |
| Icon used to represent data of this kind. |
| Mime-type handled by this mapping. |
| Column in data table that summarizes this data. |
Column in data table that contains details for this data.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol detailColumn
.
Flag indicating that detail should be built from SocialProvider.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol detailSocialSummary
.
Icon used to represent data of this kind.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol icon
.
Mime-type handled by this mapping.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol mimeType
.
Column in data table that summarizes this data.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol summaryColumn
.
Attributes that can be used with a CycleInterpolator.
Includes the following attributes:
Attribute | Description |
---|---|
|
This symbol is the offset where the cycles
attribute's value can be found in the CycleInterpolator
array.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Attributes that can be used with a DatePicker.
Includes the following attributes:
Attribute | Description |
---|---|
| The last year (inclusive), for example "2010". |
| The first year (inclusive), for example "1940". |
The last year (inclusive), for example "2010".
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol endYear
.
The first year (inclusive), for example "1940".
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol startYear
.
Attributes that can be used with a DecelerateInterpolator.
Includes the following attributes:
Attribute | Description |
---|---|
| This is the amount of acceleration to add when easing out. |
This is the amount of acceleration to add when easing out.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol factor
.
Base attributes available to DialogPreference.
Includes the following attributes:
Attribute | Description |
---|---|
| The icon for the dialog. |
| A layout to be used as the content View for the dialog. |
| The message in the dialog. |
| The title in the dialog. |
| The negative button text for the dialog. |
| The positive button text for the dialog. |
The icon for the dialog.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol dialogIcon
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol dialogLayout
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol dialogMessage
.
The title in the dialog.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol dialogTitle
.
The negative button text for the dialog. Set to @null to hide the negative button.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol negativeButtonText
.
The positive button text for the dialog. Set to @null to hide the positive button.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol positiveButtonText
.
Base attributes that are available to all Drawable objects.
Includes the following attributes:
Attribute | Description |
---|---|
| Provides initial visibility state of the drawable; the default value is false. |
Attributes that can be used with a DrawableCorners.
Includes the following attributes:
Attribute | Description |
---|---|
| |
| |
| |
| |
|
This symbol is the offset where the bottomLeftRadius
attribute's value can be found in the DrawableCorners
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the bottomRightRadius
attribute's value can be found in the DrawableCorners
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the radius
attribute's value can be found in the DrawableCorners
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the topLeftRadius
attribute's value can be found in the DrawableCorners
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the topRightRadius
attribute's value can be found in the DrawableCorners
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Drawable states. The mapping of Drawable states to a particular drawables is specified in the "state" elements of a Widget's "selector" element. Possible values:
Includes the following attributes:
Attribute | Description |
---|---|
| State value for StateListDrawable . |
| State identifier indicating that the object may display a check mark. |
| State identifier indicating that the object is currently checked. |
| State value for StateListDrawable . |
| State value for StateListDrawable . |
| State value for StateListDrawable . |
| State value for StateListDrawable . |
| State value for StateListDrawable . |
| State value for StateListDrawable . |
| State value for StateListDrawable . |
| State value for StateListDrawable . |
| State value for StateListDrawable . |
DrawableStates_state_active
DrawableStates_state_checkable
DrawableStates_state_checked
DrawableStates_state_enabled
DrawableStates_state_first
DrawableStates_state_focused
DrawableStates_state_last
DrawableStates_state_middle
DrawableStates_state_pressed
DrawableStates_state_selected
DrawableStates_state_single
DrawableStates_state_window_focused
State value for StateListDrawable
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_active
.
State identifier indicating that the object may display a check mark.
See state_checked
for the identifier that indicates whether it is
actually checked.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_checkable
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_checked
.
State value for StateListDrawable
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_enabled
.
State value for StateListDrawable
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_first
.
State value for StateListDrawable
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_focused
.
State value for StateListDrawable
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_last
.
State value for StateListDrawable
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_middle
.
State value for StateListDrawable
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_pressed
.
State value for StateListDrawable
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_selected
.
State value for StateListDrawable
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_single
.
State value for StateListDrawable
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_window_focused
.
Provides initial visibility state of the drawable; the default
value is false. See
setVisible(boolean, boolean)
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol visible
.
State array representing an expandable list child's indicator.
Includes the following attributes:
Attribute | Description |
---|---|
| State identifier indicating the child is the last child within its group. |
State identifier indicating the child is the last child within its group.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_last
.
State array representing an expandable list group's indicator.
Includes the following attributes:
Attribute | Description |
---|---|
| State identifier indicating the group is empty (has no children). |
| State identifier indicating the group is expanded. |
State identifier indicating the group is empty (has no children).
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_empty
.
State identifier indicating the group is expanded.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_expanded
.
Attributes that can be used with a ExpandableListView.
Includes the following attributes:
Attribute | Description |
---|---|
| Drawable or color that is used as a divider for children. |
| Indicator shown beside the child View. |
| The left bound for a child's indicator. |
| The right bound for a child's indicator. |
| Indicator shown beside the group View. |
| The left bound for an item's indicator. |
| The right bound for an item's indicator. |
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 to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol childDivider
.
Indicator shown beside the child View. This can be a stateful Drawable.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol childIndicator
.
The left bound for a child's indicator.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol childIndicatorLeft
.
The right bound for a child's indicator.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol childIndicatorRight
.
Indicator shown beside the group View. This can be a stateful Drawable.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol groupIndicator
.
The left bound for an item's indicator. To specify a left bound specific to children, use childIndicatorLeft.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol indicatorLeft
.
The right bound for an item's indicator. To specify a right bound specific to children, use childIndicatorRight.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol indicatorRight
.
An extra data value to place into a an extra/name value pair held
in a Bundle, as per Bundle
.
Includes the following attributes:
Attribute | Description |
---|---|
| Required name of the extra data. |
| Concrete value to put for this named extra data. |
Required name of the extra data.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol name
.
Concrete value to put for this named extra data.
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
May be an integer value, such as "100
".
May be a boolean value, either "true
" or "false
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
May be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol value
.
Attributes that can be used with a FrameLayout.
Includes the following attributes:
Attribute | Description |
---|---|
| Defines the drawable to draw over the content. |
| Defines the gravity to apply to the foreground drawable. |
| Determines whether to measure all children or just those in the VISIBLE or INVISIBLE state when measuring. |
Attributes that can be used with a FrameLayout_Layout.
Includes the following attributes:
Attribute | Description |
---|---|
| Standard gravity constant that a child can supply to its parent. |
Standard gravity constant that a child can supply to its parent. Defines how to place the view, both its x- and y-axis, within its parent view group.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
top | 0x30 | Push object to the top of its container, not changing its size. |
bottom | 0x50 | Push object to the bottom of its container, not changing its size. |
left | 0x03 | Push object to the left of its container, not changing its size. |
right | 0x05 | Push object to the right of its container, not changing its size. |
center_vertical | 0x10 | Place object in the vertical center of its container, not changing its size. |
fill_vertical | 0x70 | Grow the vertical size of the object if needed so it completely fills its container. |
center_horizontal | 0x01 | Place object in the horizontal center of its container, not changing its size. |
fill_horizontal | 0x07 | Grow the horizontal size of the object if needed so it completely fills its container. |
center | 0x11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
fill | 0x77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
clip_vertical | 0x80 | 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. |
clip_horizontal | 0x08 | 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. |
This corresponds to the global attribute resource symbol layout_gravity
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol foreground
.
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 |
---|---|---|
top | 0x30 | Push object to the top of its container, not changing its size. |
bottom | 0x50 | Push object to the bottom of its container, not changing its size. |
left | 0x03 | Push object to the left of its container, not changing its size. |
right | 0x05 | Push object to the right of its container, not changing its size. |
center_vertical | 0x10 | Place object in the vertical center of its container, not changing its size. |
fill_vertical | 0x70 | Grow the vertical size of the object if needed so it completely fills its container. |
center_horizontal | 0x01 | Place object in the horizontal center of its container, not changing its size. |
fill_horizontal | 0x07 | Grow the horizontal size of the object if needed so it completely fills its container. |
center | 0x11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
fill | 0x77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
clip_vertical | 0x80 | 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. |
clip_horizontal | 0x08 | 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. |
This corresponds to the global attribute resource symbol foregroundGravity
.
Determines whether to measure all children or just those in the VISIBLE or INVISIBLE state when measuring. Defaults to false.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol measureAllChildren
.
Attributes that can be used with a Gallery.
Includes the following attributes:
Attribute | Description |
---|---|
| Sets how long a transition animation should run (in milliseconds) when layout has changed. |
| Specifies how to place the content of an object, both on the x- and y-axis, within the object itself. |
| |
| Sets the alpha on the items that are not selected. |
Sets how long a transition animation should run (in milliseconds) when layout has changed. Only relevant if animation is turned on.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol animationDuration
.
Specifies how to place the content of an object, both on the x- and y-axis, within the object itself.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
top | 0x30 | Push object to the top of its container, not changing its size. |
bottom | 0x50 | Push object to the bottom of its container, not changing its size. |
left | 0x03 | Push object to the left of its container, not changing its size. |
right | 0x05 | Push object to the right of its container, not changing its size. |
center_vertical | 0x10 | Place object in the vertical center of its container, not changing its size. |
fill_vertical | 0x70 | Grow the vertical size of the object if needed so it completely fills its container. |
center_horizontal | 0x01 | Place object in the horizontal center of its container, not changing its size. |
fill_horizontal | 0x07 | Grow the horizontal size of the object if needed so it completely fills its container. |
center | 0x11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
fill | 0x77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
clip_vertical | 0x80 | 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. |
clip_horizontal | 0x08 | 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. |
This corresponds to the global attribute resource symbol gravity
.
This symbol is the offset where the spacing
attribute's value can be found in the Gallery
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Sets the alpha on the items that are not selected.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol unselectedAlpha
.
GestureOverlayView specific attributes. These attributes are used to configure a GestureOverlayView from XML.
Includes the following attributes:
Attribute | Description |
---|---|
| Defines whether the overlay should intercept the motion events when a gesture is recognized. |
| Duration, in milliseconds, of the fade out effect after the user is done drawing a gesture. |
| Defines whether the gesture will automatically fade out after being recognized. |
| Time, in milliseconds, to wait before the gesture fades out after the user is done drawing it. |
| Color used to draw a gesture. |
| Minimum curve angle a stroke must contain before it is recognized as a gesture. |
| Minimum length of a stroke before it is recognized as a gesture. |
| Squareness threshold of a stroke before it is recognized as a gesture. |
| Defines the type of strokes that define a gesture. |
| Width of the stroke used to draw the gesture. |
| Indicates whether horizontal (when the orientation is vertical) or vertical (when orientation is horizontal) strokes automatically define a gesture. |
| Color used to draw the user's strokes until we are sure it's a gesture. |
GestureOverlayView_eventsInterceptionEnabled
GestureOverlayView_fadeDuration
GestureOverlayView_fadeEnabled
GestureOverlayView_fadeOffset
GestureOverlayView_gestureColor
GestureOverlayView_gestureStrokeAngleThreshold
GestureOverlayView_gestureStrokeLengthThreshold
GestureOverlayView_gestureStrokeSquarenessThreshold
GestureOverlayView_gestureStrokeType
GestureOverlayView_gestureStrokeWidth
GestureOverlayView_orientation
GestureOverlayView_uncertainGestureColor
Defines whether the overlay should intercept the motion events when a gesture is recognized.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol eventsInterceptionEnabled
.
Duration, in milliseconds, of the fade out effect after the user is done drawing a gesture.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol fadeDuration
.
Defines whether the gesture will automatically fade out after being recognized.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol fadeEnabled
.
Time, in milliseconds, to wait before the gesture fades out after the user is done drawing it.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol fadeOffset
.
Color used to draw a gesture.
Must be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol gestureColor
.
Minimum curve angle a stroke must contain before it is recognized as a gesture.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol gestureStrokeAngleThreshold
.
Minimum length of a stroke before it is recognized as a gesture.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol gestureStrokeLengthThreshold
.
Squareness threshold of a stroke before it is recognized as a gesture.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol gestureStrokeSquarenessThreshold
.
Defines the type of strokes that define a gesture.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
single | 0 | A gesture is made of only one stroke. |
multiple | 1 | A gesture is made of multiple strokes. |
This corresponds to the global attribute resource symbol gestureStrokeType
.
Width of the stroke used to draw the gesture.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol gestureStrokeWidth
.
Indicates whether horizontal (when the orientation is vertical) or vertical (when orientation is horizontal) strokes automatically define a gesture.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
horizontal | 0 | Defines an horizontal widget. |
vertical | 1 | Defines a vertical widget. |
This corresponds to the global attribute resource symbol orientation
.
Color used to draw the user's strokes until we are sure it's a gesture.
Must be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol uncertainGestureColor
.
Attributes that can be used with a GradientDrawable.
Includes the following attributes:
Attribute | Description |
---|---|
| Inner radius of the ring. |
| Inner radius of the ring expressed as a ratio of the ring's width. |
| |
| Thickness of the ring. |
| Thickness of the ring expressed as a ratio of the ring's width. |
| |
| Provides initial visibility state of the drawable; the default value is false. |
Attributes that can be used with a GradientDrawableGradient.
Includes the following attributes:
Attribute | Description |
---|---|
| |
| Optional center color. |
| |
| |
| |
| |
| |
| |
|
This symbol is the offset where the angle
attribute's value can be found in the GradientDrawableGradient
array.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Optional center color. For linear gradients, use centerX or centerY to place the center color.
Must be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol centerColor
.
This symbol is the offset where the centerX
attribute's value can be found in the GradientDrawableGradient
array.
May be a floating point value, such as "1.2
".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the centerY
attribute's value can be found in the GradientDrawableGradient
array.
May be a floating point value, such as "1.2
".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the endColor
attribute's value can be found in the GradientDrawableGradient
array.
Must be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the gradientRadius
attribute's value can be found in the GradientDrawableGradient
array.
May be a floating point value, such as "1.2
".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the startColor
attribute's value can be found in the GradientDrawableGradient
array.
Must be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the type
attribute's value can be found in the GradientDrawableGradient
array.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
linear | 0 | |
radial | 1 | |
sweep | 2 |
This symbol is the offset where the useLevel
attribute's value can be found in the GradientDrawableGradient
array.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Attributes that can be used with a GradientDrawablePadding.
Includes the following attributes:
Attribute | Description |
---|---|
| |
| |
| |
|
This symbol is the offset where the bottom
attribute's value can be found in the GradientDrawablePadding
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the left
attribute's value can be found in the GradientDrawablePadding
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the right
attribute's value can be found in the GradientDrawablePadding
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the top
attribute's value can be found in the GradientDrawablePadding
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Attributes that can be used with a GradientDrawableSize.
Includes the following attributes:
Attribute | Description |
---|---|
| Makes the TextView be exactly this many pixels tall. |
| Makes the TextView be exactly this many pixels wide. |
Makes the TextView be exactly this many pixels tall. You could get the same effect by specifying this number in the layout parameters.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol height
.
Makes the TextView be exactly this many pixels wide. You could get the same effect by specifying this number in the layout parameters.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol width
.
Attributes that can be used with a GradientDrawableSolid.
Includes the following attributes:
Attribute | Description |
---|---|
|
This symbol is the offset where the color
attribute's value can be found in the GradientDrawableSolid
array.
Must be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Attributes that can be used with a GradientDrawableStroke.
Includes the following attributes:
Attribute | Description |
---|---|
| |
| |
| |
| Makes the TextView be exactly this many pixels wide. |
This symbol is the offset where the color
attribute's value can be found in the GradientDrawableStroke
array.
Must be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the dashGap
attribute's value can be found in the GradientDrawableStroke
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the dashWidth
attribute's value can be found in the GradientDrawableStroke
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Makes the TextView be exactly this many pixels wide. You could get the same effect by specifying this number in the layout parameters.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol width
.
Inner radius of the ring. When defined, innerRadiusRatio is ignored.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol innerRadius
.
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.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol innerRadiusRatio
.
This symbol is the offset where the shape
attribute's value can be found in the GradientDrawable
array.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
rectangle | 0 | |
oval | 1 | |
line | 2 | |
ring | 3 |
Thickness of the ring. When defined, thicknessRatio is ignored.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol thickness
.
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.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol thicknessRatio
.
This symbol is the offset where the useLevel
attribute's value can be found in the GradientDrawable
array.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Provides initial visibility state of the drawable; the default
value is false. See
setVisible(boolean, boolean)
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol visible
.
Attributes that can be used with a GridLayoutAnimation.
Includes the following attributes:
Attribute | Description |
---|---|
| Fraction of the animation duration used to delay the beginning of the animation of each column. |
| Direction of the animation in the grid. |
| Priority of the rows and columns. |
| Fraction of the animation duration used to delay the beginning of the animation of each row. |
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.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol columnDelay
.
Direction of the animation in the grid.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
left_to_right | 0x0 | Animates columns from left to right. |
right_to_left | 0x1 | Animates columns from right to left. |
top_to_bottom | 0x0 | Animates rows from top to bottom. |
bottom_to_top | 0x2 | Animates rows from bottom to top. |
This corresponds to the global attribute resource symbol direction
.
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.
Constant | Value | Description |
---|---|---|
none | 0 | Rows and columns are animated at the same time. |
column | 1 | Columns are animated first. |
row | 2 | Rows are animated first. |
This corresponds to the global attribute resource symbol directionPriority
.
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.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol rowDelay
.
Attributes that can be used with a GridView.
Includes the following attributes:
Attribute | Description |
---|---|
| |
| Specifies how to place the content of an object, both on the x- and y-axis, within the object itself. |
| |
| |
| |
|
This symbol is the offset where the columnWidth
attribute's value can be found in the GridView
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Specifies how to place the content of an object, both on the x- and y-axis, within the object itself.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
top | 0x30 | Push object to the top of its container, not changing its size. |
bottom | 0x50 | Push object to the bottom of its container, not changing its size. |
left | 0x03 | Push object to the left of its container, not changing its size. |
right | 0x05 | Push object to the right of its container, not changing its size. |
center_vertical | 0x10 | Place object in the vertical center of its container, not changing its size. |
fill_vertical | 0x70 | Grow the vertical size of the object if needed so it completely fills its container. |
center_horizontal | 0x01 | Place object in the horizontal center of its container, not changing its size. |
fill_horizontal | 0x07 | Grow the horizontal size of the object if needed so it completely fills its container. |
center | 0x11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
fill | 0x77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
clip_vertical | 0x80 | 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. |
clip_horizontal | 0x08 | 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. |
This corresponds to the global attribute resource symbol gravity
.
This symbol is the offset where the horizontalSpacing
attribute's value can be found in the GridView
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the numColumns
attribute's value can be found in the GridView
array.
May be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
May be one of the following constant values.
Constant | Value | Description |
---|---|---|
auto_fit | -1 |
This symbol is the offset where the stretchMode
attribute's value can be found in the GridView
array.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
none | 0 | |
spacingWidth | 1 | |
columnWidth | 2 | |
spacingWidthUniform | 3 |
This symbol is the offset where the verticalSpacing
attribute's value can be found in the GridView
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Attributes that can be used with a HorizontalScrollView.
Includes the following attributes:
Attribute | Description |
---|---|
| Defines whether the scrollview should stretch its content to fill the viewport. |
Defines whether the scrollview should stretch its content to fill the viewport.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol fillViewport
.
Attributes that can be used with a Icon.
Includes the following attributes:
Attribute | Description |
---|---|
| A Drawable resource providing a graphical representation of its associated item. |
| Specify a MIME type that is handled, as per
IntentFilter.addDataType() . |
Attributes that can be used with a IconDefault.
Includes the following attributes:
Attribute | Description |
---|---|
| A Drawable resource providing a graphical representation of its associated item. |
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol icon
.
Attributes that can be used with a IconMenuView.
Includes the following attributes:
Attribute | Description |
---|---|
| Defines the maximum number of items per row. |
| Defines the maximum number of rows displayed. |
| 'More' icon. |
| Defines the height of each row. |
Defines the maximum number of items per row.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol maxItemsPerRow
.
Defines the maximum number of rows displayed.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol maxRows
.
'More' icon.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol moreIcon
.
Defines the height of each row.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol rowHeight
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol icon
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol mimeType
.
Attributes that can be used with a ImageSwitcher.
Attributes that can be used with a ImageView.
Includes the following attributes:
Attribute | Description |
---|---|
| Set this to true if you want the ImageView to adjust its bounds to preserve the aspect ratio of its drawable. |
| If true, the image view will be baseline aligned with based on its bottom edge. |
| If true, the image will be cropped to fit within its padding. |
| An optional argument to supply a maximum height for this view. |
| An optional argument to supply a maximum width for this view. |
| Controls how the image should be resized or moved to match the size of this ImageView. |
| Sets a drawable as the content of this ImageView. |
| Set a tinting color for the image. |
Set this to true if you want the ImageView to adjust its bounds to preserve the aspect ratio of its drawable.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol adjustViewBounds
.
If true, the image view will be baseline aligned with based on its bottom edge.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol baselineAlignBottom
.
If true, the image will be cropped to fit within its padding.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol cropToPadding
.
An optional argument to supply a maximum height for this view. See {see android.widget.ImageView#setMaxHeight} for details.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol maxHeight
.
An optional argument to supply a maximum width for this view. See {see android.widget.ImageView#setMaxWidth} for details.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol maxWidth
.
Controls how the image should be resized or moved to match the size of this ImageView.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
matrix | 0 | |
fitXY | 1 | |
fitStart | 2 | |
fitCenter | 3 | |
fitEnd | 4 | |
center | 5 | |
centerCrop | 6 | |
centerInside | 7 |
This corresponds to the global attribute resource symbol scaleType
.
Sets a drawable as the content of this ImageView.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol src
.
Set a tinting color for the image.
Must be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol tint
.
Use input-method
as the root tag of the XML resource that
describes an
InputMethod
service, which is
referenced from its
SERVICE_META_DATA
meta-data entry. Described here are the attributes that can be
included in that tag.
Includes the following attributes:
Attribute | Description |
---|---|
| Set to true in all of the configurations for which this input method should be considered an option as the default. |
| Component name of an activity that allows the user to modify the settings for this input method. |
Attributes that can be used with a InputMethodService.
Includes the following attributes:
Attribute | Description |
---|---|
| Animation to use when showing the fullscreen extract UI after it had previously been hidden. |
| Animation to use when hiding the fullscreen extract UI after it had previously been shown. |
| 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. |
Animation to use when showing the fullscreen extract UI after it had previously been hidden.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol imeExtractEnterAnimation
.
Animation to use when hiding the fullscreen extract UI after it had previously been shown.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol imeExtractExitAnimation
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol imeFullscreenBackground
.
Set to true in all of the configurations for which this input method should be considered an option as the default.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol isDefault
.
Component name of an activity that allows the user to modify the settings for this input method.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol settingsActivity
.
Attributes that can be used with a InsetDrawable.
Includes the following attributes:
Attribute | Description |
---|---|
| Reference to a drawable resource to use for the frame. |
| |
| |
| |
| |
| Provides initial visibility state of the drawable; the default value is false. |
Reference to a drawable resource to use for the frame. If not given, the drawable must be defined by the first child tag.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol drawable
.
This symbol is the offset where the insetBottom
attribute's value can be found in the InsetDrawable
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the insetLeft
attribute's value can be found in the InsetDrawable
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the insetRight
attribute's value can be found in the InsetDrawable
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the insetTop
attribute's value can be found in the InsetDrawable
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Provides initial visibility state of the drawable; the default
value is false. See
setVisible(boolean, boolean)
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol visible
.
Declaration of an Intent
object in XML. May
also include zero or more
tags.
Includes the following attributes:
Attribute | Description |
---|---|
| The action name to assign to the Intent, as per
Intent.setAction() . |
| The data URI to assign to the Intent, as per
Intent.setData() . |
| The MIME type name to assign to the Intent, as per
Intent.setType() . |
| The class part of the ComponentName to assign to the Intent, as per
Intent.setComponent() . |
| The package part of the ComponentName to assign to the Intent, as per
Intent.setComponent() . |
A category to add to an Intent, as per
Intent.addCategory()
.
Includes the following attributes:
Attribute | Description |
---|---|
| Required name of the category. |
Required name of the category.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol name
.
The action name to assign to the Intent, as per
Intent.setAction()
.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol action
.
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).
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol data
.
The MIME type name to assign to the Intent, as per
Intent.setType()
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol mimeType
.
The class part of the ComponentName to assign to the Intent, as per
Intent.setComponent()
.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol targetClass
.
The package part of the ComponentName to assign to the Intent, as per
Intent.setComponent()
.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol targetPackage
.
Attributes that can be used with a Keyboard.
Includes the following attributes:
Attribute | Description |
---|---|
| Default horizontal gap between keys. |
| Default height of a key, in pixels or percentage of display width. |
| Default width of a key, in pixels or percentage of display width. |
| Default vertical gap between rows of keys. |
Attributes that can be used with a KeyboardView.
Includes the following attributes:
Attribute | Description |
---|---|
| Image for the key. |
| Height of the key press feedback popup. |
| Layout resource for key press feedback. |
| Vertical offset of the key press feedback from the key. |
| Color to use for the label in a key. |
| Size of the text for character keys. |
| Size of the text for custom keys with some text and no icon. |
| Layout resource for popup keyboards. |
| Place a shadow of the specified color behind the text. |
| Radius of the shadow. |
| Amount to offset the touch Y coordinate by, for bias correction. |
Attributes that can be used with a KeyboardViewPreviewState.
Includes the following attributes:
Attribute | Description |
---|---|
| State for KeyboardView
key preview background. |
State for KeyboardView
key preview background.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_long_pressable
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol keyBackground
.
Height of the key press feedback popup.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol keyPreviewHeight
.
Layout resource for key press feedback.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol keyPreviewLayout
.
Vertical offset of the key press feedback from the key.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol keyPreviewOffset
.
Color to use for the label in a key.
Must be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol keyTextColor
.
Size of the text for character keys.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol keyTextSize
.
Size of the text for custom keys with some text and no icon.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol labelTextSize
.
Layout resource for popup keyboards.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol popupLayout
.
Place a shadow of the specified color behind the text.
Must be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol shadowColor
.
Radius of the shadow.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol shadowRadius
.
Amount to offset the touch Y coordinate by, for bias correction.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol verticalCorrection
.
Attributes that can be used with a Keyboard_Key.
Includes the following attributes:
Attribute | Description |
---|---|
| The unicode value or comma-separated values that this key outputs. |
| The icon to show in the popup preview. |
| Whether this is a modifier key such as Alt or Shift. |
| Whether long-pressing on this key will make it repeat. |
| Whether this is a toggle key. |
| Key edge flags. |
| The icon to display on the key instead of the label. |
| The label to display on the key. |
| The string of characters to output when this key is pressed. |
| Mode of the keyboard. |
| The characters to display in the popup keyboard. |
| The XML keyboard layout of any popup keyboard. |
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
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol codes
.
The icon to show in the popup preview.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol iconPreview
.
Whether this is a modifier key such as Alt or Shift.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol isModifier
.
Whether long-pressing on this key will make it repeat.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol isRepeatable
.
Whether this is a toggle key.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol isSticky
.
Key edge flags.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
left | 1 | Key is anchored to the left of the keyboard. |
right | 2 | Key is anchored to the right of the keyboard. |
This corresponds to the global attribute resource symbol keyEdgeFlags
.
The icon to display on the key instead of the label.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol keyIcon
.
The label to display on the key.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol keyLabel
.
The string of characters to output when this key is pressed.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol keyOutputText
.
Mode of the keyboard. If the mode doesn't match the requested keyboard mode, the key will be skipped.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol keyboardMode
.
The characters to display in the popup keyboard.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol popupCharacters
.
The XML keyboard layout of any popup keyboard.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol popupKeyboard
.
Attributes that can be used with a Keyboard_Row.
Includes the following attributes:
Attribute | Description |
---|---|
| Mode of the keyboard. |
| Row edge flags. |
Mode of the keyboard. If the mode doesn't match the requested keyboard mode, the row will be skipped.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol keyboardMode
.
Row edge flags.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
top | 4 | Row is anchored to the top of the keyboard. |
bottom | 8 | Row is anchored to the bottom of the keyboard. |
This corresponds to the global attribute resource symbol rowEdgeFlags
.
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), mm (millimeters).
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol horizontalGap
.
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), mm (millimeters).
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol keyHeight
.
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), mm (millimeters).
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol keyWidth
.
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), mm (millimeters).
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol verticalGap
.
Attributes that can be used with a LayerDrawableItem.
Includes the following attributes:
Attribute | Description |
---|---|
| |
| Reference to a drawable resource to use for the frame. |
| Supply an identifier name for this view, to later retrieve it
with View.findViewById() or
Activity.findViewById() . |
| |
| |
|
This symbol is the offset where the bottom
attribute's value can be found in the LayerDrawableItem
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Reference to a drawable resource to use for the frame. If not given, the drawable must be defined by the first child tag.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol drawable
.
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)
.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol id
.
This symbol is the offset where the left
attribute's value can be found in the LayerDrawableItem
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the right
attribute's value can be found in the LayerDrawableItem
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the top
attribute's value can be found in the LayerDrawableItem
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Attributes that can be used with a LayoutAnimation.
Includes the following attributes:
Attribute | Description |
---|---|
| Animation to use on each child. |
| The order in which the animations will be started. |
| Fraction of the animation duration used to delay the beginning of the animation of each child. |
| Interpolator used to interpolate the delay between the start of each animation. |
Animation to use on each child.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol animation
.
The order in which the animations will be started.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
normal | 0 | Animations are started in the natural order. |
reverse | 1 | Animations are started in the reverse order. |
random | 2 | Animations are started randomly. |
This corresponds to the global attribute resource symbol animationOrder
.
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.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol delay
.
Interpolator used to interpolate the delay between the start of each animation.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol interpolator
.
Attributes that can be used with a LevelListDrawableItem.
Includes the following attributes:
Attribute | Description |
---|---|
| Reference to a drawable resource to use for the frame. |
| The maximum level allowed for this item. |
| The minimum level allowed for this item. |
Reference to a drawable resource to use for the frame. If not given, the drawable must be defined by the first child tag.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol drawable
.
The maximum level allowed for this item.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol maxLevel
.
The minimum level allowed for this item.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol minLevel
.
Attributes that can be used with a LinearLayout.
Includes the following attributes:
Attribute | Description |
---|---|
| When set to false, prevents the layout from aligning its children's baselines. |
| 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). |
| Specifies how to place the content of an object, both on the x- and y-axis, within the object itself. |
| Should the layout be a column or a row? Use "horizontal" for a row, "vertical" for a column. |
| Defines the maximum weight sum. |
Attributes that can be used with a LinearLayout_Layout.
Includes the following attributes:
Attribute | Description |
---|---|
| Standard gravity constant that a child can supply to its parent. |
| Specifies the basic height of the view. |
| |
| Specifies the basic width of the view. |
Standard gravity constant that a child can supply to its parent. Defines how to place the view, both its x- and y-axis, within its parent view group.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
top | 0x30 | Push object to the top of its container, not changing its size. |
bottom | 0x50 | Push object to the bottom of its container, not changing its size. |
left | 0x03 | Push object to the left of its container, not changing its size. |
right | 0x05 | Push object to the right of its container, not changing its size. |
center_vertical | 0x10 | Place object in the vertical center of its container, not changing its size. |
fill_vertical | 0x70 | Grow the vertical size of the object if needed so it completely fills its container. |
center_horizontal | 0x01 | Place object in the horizontal center of its container, not changing its size. |
fill_horizontal | 0x07 | Grow the horizontal size of the object if needed so it completely fills its container. |
center | 0x11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
fill | 0x77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
clip_vertical | 0x80 | 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. |
clip_horizontal | 0x08 | 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. |
This corresponds to the global attribute resource symbol layout_gravity
.
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), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
May be one of the following constant values.
Constant | Value | Description |
---|---|---|
fill_parent | -1 | The view should be as big as its parent (minus padding). |
wrap_content | -2 | The view should be only big enough to enclose its content (plus padding). |
This corresponds to the global attribute resource symbol layout_height
.
This symbol is the offset where the layout_weight
attribute's value can be found in the LinearLayout_Layout
array.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
May be one of the following constant values.
Constant | Value | Description |
---|---|---|
fill_parent | -1 | The view should be as big as its parent (minus padding). |
wrap_content | -2 | The view should be only big enough to enclose its content (plus padding). |
This corresponds to the global attribute resource symbol layout_width
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol baselineAligned
.
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).
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol baselineAlignedChildIndex
.
Specifies how to place the content of an object, both on the x- and y-axis, within the object itself.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
top | 0x30 | Push object to the top of its container, not changing its size. |
bottom | 0x50 | Push object to the bottom of its container, not changing its size. |
left | 0x03 | Push object to the left of its container, not changing its size. |
right | 0x05 | Push object to the right of its container, not changing its size. |
center_vertical | 0x10 | Place object in the vertical center of its container, not changing its size. |
fill_vertical | 0x70 | Grow the vertical size of the object if needed so it completely fills its container. |
center_horizontal | 0x01 | Place object in the horizontal center of its container, not changing its size. |
fill_horizontal | 0x07 | Grow the horizontal size of the object if needed so it completely fills its container. |
center | 0x11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
fill | 0x77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
clip_vertical | 0x80 | 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. |
clip_horizontal | 0x08 | 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. |
This corresponds to the global attribute resource symbol gravity
.
Should the layout be a column or a row? Use "horizontal" for a row, "vertical" for a column. The default is horizontal.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
horizontal | 0 | Defines an horizontal widget. |
vertical | 1 | Defines a vertical widget. |
This corresponds to the global attribute resource symbol orientation
.
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.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol weightSum
.
Base attributes available to ListPreference.
Includes the following attributes:
Attribute | Description |
---|---|
| The human-readable array to present as a list. |
| The array to find the value to save for a preference when an entry from entries is selected. |
The human-readable array to present as a list. Each entry must have a corresponding index in entryValues.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol entries
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol entryValues
.
Attributes that can be used with a ListView.
Includes the following attributes:
Attribute | Description |
---|---|
| Defines the choice behavior for the ListView. |
| Drawable or color to draw between list items. |
| Height of the divider. |
| Reference to an array resource that will populate the ListView. |
| When set to false, the ListView will not draw the divider before each footer view. |
| When set to false, the ListView will not draw the divider after each header view. |
Defines the choice behavior for the ListView. 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.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
none | 0 | Normal list that does not indicate choices. |
singleChoice | 1 | The list allows up to one choice. |
multipleChoice | 2 | The list allows multiple choices. |
This corresponds to the global attribute resource symbol choiceMode
.
Drawable or color to draw between list items.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol divider
.
Height of the divider. Will use the intrinsic height of the divider if this is not specified.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol dividerHeight
.
Reference to an array resource that will populate the ListView. For static content, this is simpler than populating the ListView programmatically.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol entries
.
When set to false, the ListView will not draw the divider before each footer view. The default value is true.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol footerDividersEnabled
.
When set to false, the ListView will not draw the divider after each header view. The default value is true.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol headerDividersEnabled
.
The set of attributes for a MapView.
Includes the following attributes:
Attribute | Description |
---|---|
| Value is a string that specifies the Maps API Key to use. |
Value is a string that specifies the Maps API Key to use.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol apiKey
.
Base attributes that are available to all Menu objects.
Base attributes that are available to all groups.
Includes the following attributes:
Attribute | Description |
---|---|
| Whether the items are capable of displaying a check mark. |
| Whether the items are enabled. |
| The ID of the group. |
| The category applied to all items within this group. |
| The order within the category applied to all items within this group. |
| Whether the items are shown/visible. |
Whether the items are capable of displaying a check mark.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
none | 0 | The items are not checkable. |
all | 1 | The items are all checkable. |
single | 2 | The items are checkable and there will only be a single checked item in this group. |
This corresponds to the global attribute resource symbol checkableBehavior
.
Whether the items are enabled.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol enabled
.
The ID of the group.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol id
.
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.
Constant | Value | Description |
---|---|---|
container | 0x00010000 | Items are part of a container. |
system | 0x00020000 | Items are provided by the system. |
secondary | 0x00030000 | Items are user-supplied secondary (infrequently used). |
alternative | 0x00040000 | Items are alternative actions. |
This corresponds to the global attribute resource symbol menuCategory
.
The order within the category applied to all items within this group. (This will be or'ed with the category attribute.)
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol orderInCategory
.
Whether the items are shown/visible.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol visible
.
Base attributes that are available to all Item objects.
Includes the following attributes:
Attribute | Description |
---|---|
| The alphabetic shortcut key. |
| Whether the item is capable of displaying a check mark. |
| Whether the item is checked. |
| Whether the item is enabled. |
| The icon associated with this item. |
| The ID of the item. |
| The category applied to the item. |
| The numeric shortcut key. |
| The order within the category applied to the item. |
| The title associated with the item. |
| The condensed title associated with the item. |
| Whether the item is shown/visible. |
State array representing a menu item that is currently focused and checked.
Includes the following attributes:
Attribute | Description |
---|---|
| State identifier indicating that the object may display a check mark. |
| State identifier indicating that the object is currently checked. |
| State value for StateListDrawable . |
State identifier indicating that the object may display a check mark.
See state_checked
for the identifier that indicates whether it is
actually checked.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_checkable
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_checked
.
State value for StateListDrawable
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_focused
.
State array representing a menu item that is currently checked.
Includes the following attributes:
Attribute | Description |
---|---|
| State identifier indicating that the object may display a check mark. |
| State identifier indicating that the object is currently checked. |
State identifier indicating that the object may display a check mark.
See state_checked
for the identifier that indicates whether it is
actually checked.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_checkable
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_checked
.
State array representing a menu item that is focused and checkable but is not currently checked.
Includes the following attributes:
Attribute | Description |
---|---|
| State identifier indicating that the object may display a check mark. |
| State value for StateListDrawable . |
State identifier indicating that the object may display a check mark.
See state_checked
for the identifier that indicates whether it is
actually checked.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_checkable
.
State value for StateListDrawable
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_focused
.
State array representing a menu item that is checkable but is not currently checked.
Includes the following attributes:
Attribute | Description |
---|---|
| State identifier indicating that the object may display a check mark. |
State identifier indicating that the object may display a check mark.
See state_checked
for the identifier that indicates whether it is
actually checked.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_checkable
.
The alphabetic shortcut key. This is the shortcut when using a keyboard with alphabetic keys.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol alphabeticShortcut
.
Whether the item is capable of displaying a check mark.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol checkable
.
Whether the item is checked. Note that you must first have enabled checking with the checkable attribute or else the check mark will not appear.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol checked
.
Whether the item is enabled.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol enabled
.
The icon associated with this item. This icon will not always be shown, so the title should be sufficient in describing this item.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol icon
.
The ID of the item.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol id
.
The category applied to the item. (This will be or'ed with the orderInCategory attribute.)
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
container | 0x00010000 | Items are part of a container. |
system | 0x00020000 | Items are provided by the system. |
secondary | 0x00030000 | Items are user-supplied secondary (infrequently used). |
alternative | 0x00040000 | Items are alternative actions. |
This corresponds to the global attribute resource symbol menuCategory
.
The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key) keyboard.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol numericShortcut
.
The order within the category applied to the item. (This will be or'ed with the category attribute.)
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol orderInCategory
.
The title associated with the item.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol title
.
The condensed title associated with the item. This is used in situations where the normal title may be too long to be displayed.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol titleCondensed
.
Whether the item is shown/visible.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol visible
.
Attributes that can be used with a MenuView.
Includes the following attributes:
Attribute | Description |
---|---|
| Default background for the menu header. |
| Default horizontal divider between rows of menu items. |
| Default background for each menu item. |
| Default disabled icon alpha for each menu item that shows an icon. |
| Default appearance of menu item text. |
| Default vertical divider between menu items. |
| Default animations for the menu. |
Default background for the menu header.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol headerBackground
.
Default horizontal divider between rows of menu items.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol horizontalDivider
.
Default background for each menu item.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol itemBackground
.
Default disabled icon alpha for each menu item that shows an icon.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol itemIconDisabledAlpha
.
Default appearance of menu item text.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol itemTextAppearance
.
Default vertical divider between menu items.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol verticalDivider
.
Default animations for the menu.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol windowAnimationStyle
.
Drawable used to draw 9-patches.
Includes the following attributes:
Attribute | Description |
---|---|
| 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). |
| Identifier of the bitmap file. |
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).
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol dither
.
Identifier of the bitmap file. This attribute is mandatory.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol src
.
Attributes that can be used with a OvershootInterpolator.
Includes the following attributes:
Attribute | Description |
---|---|
| This is the amount of tension. |
This is the amount of tension.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol tension
.
Attributes that can be used with a PopupWindow.
Includes the following attributes:
Attribute | Description |
---|---|
|
Attributes that can be used with a PopupWindowBackgroundState.
Includes the following attributes:
Attribute | Description |
---|---|
| State identifier indicating the popup will be above the anchor. |
State identifier indicating the popup will be above the anchor.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_above_anchor
.
This symbol is the offset where the popupBackground
attribute's value can be found in the PopupWindow
array.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
Base attributes available to Preference.
Includes the following attributes:
Attribute | Description |
---|---|
| 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. |
| The key of another Preference that this Preference will depend on. |
| Whether the Preference is enabled. |
| The key to store the Preference value. |
| The layout for the Preference in a PreferenceActivity screen. |
| The order for the Preference (lower values are to be ordered first). |
| Whether the Preference stores its value to the shared preferences. |
| Whether the Preference is selectable. |
| Whether the view of this Preference should be disabled when this Preference is disabled. |
| The summary for the Preference in a PreferenceActivity screen. |
| The title for the Preference in a PreferenceActivity screen. |
| The layout for the controllable widget portion of a Preference. |
Base attributes available to PreferenceGroup.
Includes the following attributes:
Attribute | Description |
---|---|
| Whether to order the Preference under this group as they appear in the XML file. |
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol orderingFromXml
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
May be an integer value, such as "100
".
May be a boolean value, either "true
" or "false
".
May be a floating point value, such as "1.2
".
This corresponds to the global attribute resource symbol defaultValue
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol dependency
.
Whether the Preference is enabled.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol enabled
.
The key to store the Preference value.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol key
.
The layout for the Preference in a PreferenceActivity screen. This should rarely need to be changed, look at widgetLayout instead.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout
.
The order for the Preference (lower values are to be ordered first). If this is not specified, the default orderin will be alphabetic.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol order
.
Whether the Preference stores its value to the shared preferences.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol persistent
.
Whether the Preference is selectable.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol selectable
.
Whether the view of this Preference should be disabled when this Preference is disabled.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol shouldDisableView
.
The summary for the Preference in a PreferenceActivity screen.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol summary
.
The title for the Preference in a PreferenceActivity screen.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol title
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol widgetLayout
.
Attributes that can be used with a ProgressBar.
Includes the following attributes:
Attribute | Description |
---|---|
| Allows to enable the indeterminate mode. |
| Defines how the indeterminate mode should behave when the progress reaches max. |
| Drawable used for the indeterminate mode. |
| Duration of the indeterminate animation. |
| Restricts to ONLY indeterminate mode (state-keeping progress mode will not work). |
| |
| Defines the maximum value the progress can take. |
| An optional argument to supply a maximum height for this view. |
| An optional argument to supply a maximum width for this view. |
| |
| |
| Defines the default progress value, between 0 and max. |
| Drawable used for the progress mode. |
| Defines the secondary progress value, between 0 and max. |
ProgressBar_indeterminate
ProgressBar_indeterminateBehavior
ProgressBar_indeterminateDrawable
ProgressBar_indeterminateDuration
ProgressBar_indeterminateOnly
ProgressBar_interpolator
ProgressBar_max
ProgressBar_maxHeight
ProgressBar_maxWidth
ProgressBar_minHeight
ProgressBar_minWidth
ProgressBar_progress
ProgressBar_progressDrawable
ProgressBar_secondaryProgress
Allows to enable the indeterminate mode. In this mode the progress bar plays an infinite looping animation.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol indeterminate
.
Defines how the indeterminate mode should behave when the progress reaches max.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
repeat | 1 | Progress starts over from 0. |
cycle | 2 | Progress keeps the current value and goes back to 0. |
This corresponds to the global attribute resource symbol indeterminateBehavior
.
Drawable used for the indeterminate mode.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol indeterminateDrawable
.
Duration of the indeterminate animation.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol indeterminateDuration
.
Restricts to ONLY indeterminate mode (state-keeping progress mode will not work).
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol indeterminateOnly
.
This symbol is the offset where the interpolator
attribute's value can be found in the ProgressBar
array.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Defines the maximum value the progress can take.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol max
.
An optional argument to supply a maximum height for this view. See {see android.widget.ImageView#setMaxHeight} for details.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol maxHeight
.
An optional argument to supply a maximum width for this view. See {see android.widget.ImageView#setMaxWidth} for details.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol maxWidth
.
This symbol is the offset where the minHeight
attribute's value can be found in the ProgressBar
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the minWidth
attribute's value can be found in the ProgressBar
array.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Defines the default progress value, between 0 and max.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol progress
.
Drawable used for the progress mode.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol progressDrawable
.
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.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol secondaryProgress
.
Attributes that can be used with a QuickContactBadge.
Includes the following attributes:
Attribute | Description |
---|
Attributes that can be used with a RadioGroup.
Includes the following attributes:
Attribute | Description |
---|---|
| The id of the child radio button that should be checked by default within this radio group. |
| Should the radio group be a column or a row? Use "horizontal" for a row, "vertical" for a column. |
The id of the child radio button that should be checked by default within this radio group.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol checkedButton
.
Should the radio group be a column or a row? Use "horizontal" for a row, "vertical" for a column. The default is vertical.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
horizontal | 0 | Defines an horizontal widget. |
vertical | 1 | Defines a vertical widget. |
This corresponds to the global attribute resource symbol orientation
.
Attributes that can be used with a RatingBar.
Includes the following attributes:
Attribute | Description |
---|---|
| Whether this rating bar is an indicator (and non-changeable by the user). |
| The number of stars (or rating items) to show. |
| The rating to set by default. |
| The step size of the rating. |
Whether this rating bar is an indicator (and non-changeable by the user).
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol isIndicator
.
The number of stars (or rating items) to show.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol numStars
.
The rating to set by default.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol rating
.
The step size of the rating.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol stepSize
.
Attributes that can be used with a RelativeLayout.
Includes the following attributes:
Attribute | Description |
---|---|
| Specifies how to place the content of an object, both on the x- and y-axis, within the object itself. |
| Indicates what view should not be affected by gravity. |
Attributes that can be used with a RelativeLayout_Layout.
Includes the following attributes:
Attribute | Description |
---|---|
| Positions the bottom edge of this view above the given anchor view ID. |
| Positions the baseline of this view on the baseline of the given anchor view ID. |
| Makes the bottom edge of this view match the bottom edge of the given anchor view ID. |
| Makes the left edge of this view match the left edge of the given anchor view ID. |
| If true, makes the bottom edge of this view match the bottom edge of the parent. |
| If true, makes the left edge of this view match the left edge of the parent. |
| If true, makes the right edge of this view match the right edge of the parent. |
| If true, makes the top edge of this view match the top edge of the parent. |
| Makes the right edge of this view match the right edge of the given anchor view ID. |
| Makes the top edge of this view match the top edge of the given anchor view ID. |
| 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. |
| Positions the top edge of this view below the given anchor view ID. |
| If true, centers this child horizontally within its parent. |
| If true, centers this child horizontally and vertically within its parent. |
| If true, centers this child vertically within its parent. |
| Positions the right edge of this view to the left of the given anchor view ID. |
| Positions the left edge of this view to the right of the given anchor view ID. |
RelativeLayout_Layout_layout_above
RelativeLayout_Layout_layout_alignBaseline
RelativeLayout_Layout_layout_alignBottom
RelativeLayout_Layout_layout_alignLeft
RelativeLayout_Layout_layout_alignParentBottom
RelativeLayout_Layout_layout_alignParentLeft
RelativeLayout_Layout_layout_alignParentRight
RelativeLayout_Layout_layout_alignParentTop
RelativeLayout_Layout_layout_alignRight
RelativeLayout_Layout_layout_alignTop
RelativeLayout_Layout_layout_alignWithParentIfMissing
RelativeLayout_Layout_layout_below
RelativeLayout_Layout_layout_centerHorizontal
RelativeLayout_Layout_layout_centerInParent
RelativeLayout_Layout_layout_centerVertical
RelativeLayout_Layout_layout_toLeftOf
RelativeLayout_Layout_layout_toRightOf
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout_above
.
Positions the baseline of this view on the baseline of the given anchor view ID.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout_alignBaseline
.
Makes the bottom edge of this view match the bottom edge of the given anchor view ID. Accommodates bottom margin.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout_alignBottom
.
Makes the left edge of this view match the left edge of the given anchor view ID. Accommodates left margin.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout_alignLeft
.
If true, makes the bottom edge of this view match the bottom edge of the parent. Accommodates bottom margin.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_alignParentBottom
.
If true, makes the left edge of this view match the left edge of the parent. Accommodates left margin.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_alignParentLeft
.
If true, makes the right edge of this view match the right edge of the parent. Accommodates right margin.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_alignParentRight
.
If true, makes the top edge of this view match the top edge of the parent. Accommodates top margin.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_alignParentTop
.
Makes the right edge of this view match the right edge of the given anchor view ID. Accommodates right margin.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout_alignRight
.
Makes the top edge of this view match the top edge of the given anchor view ID. Accommodates top margin.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout_alignTop
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_alignWithParentIfMissing
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout_below
.
If true, centers this child horizontally within its parent.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_centerHorizontal
.
If true, centers this child horizontally and vertically within its parent.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_centerInParent
.
If true, centers this child vertically within its parent.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_centerVertical
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout_toLeftOf
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout_toRightOf
.
Specifies how to place the content of an object, both on the x- and y-axis, within the object itself.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
top | 0x30 | Push object to the top of its container, not changing its size. |
bottom | 0x50 | Push object to the bottom of its container, not changing its size. |
left | 0x03 | Push object to the left of its container, not changing its size. |
right | 0x05 | Push object to the right of its container, not changing its size. |
center_vertical | 0x10 | Place object in the vertical center of its container, not changing its size. |
fill_vertical | 0x70 | Grow the vertical size of the object if needed so it completely fills its container. |
center_horizontal | 0x01 | Place object in the horizontal center of its container, not changing its size. |
fill_horizontal | 0x07 | Grow the horizontal size of the object if needed so it completely fills its container. |
center | 0x11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
fill | 0x77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
clip_vertical | 0x80 | 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. |
clip_horizontal | 0x08 | 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. |
This corresponds to the global attribute resource symbol gravity
.
Indicates what view should not be affected by gravity.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol ignoreGravity
.
Base attributes available to RingtonePreference.
Includes the following attributes:
Attribute | Description |
---|---|
| Which ringtone type(s) to show in the picker. |
| Whether to show an item for a default sound. |
| Whether to show an item for 'Silent'. |
Which ringtone type(s) to show in the picker.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
ringtone | 1 | Ringtones. |
notification | 2 | Notification sounds. |
alarm | 4 | Alarm sounds. |
all | 7 | All available ringtone sounds. |
This corresponds to the global attribute resource symbol ringtoneType
.
Whether to show an item for a default sound.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol showDefault
.
Whether to show an item for 'Silent'.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol showSilent
.
Use "horizontal" or "vertical". The default is horizontal.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
horizontal | 0 | Defines an horizontal widget. |
vertical | 1 | Defines a vertical widget. |
This corresponds to the global attribute resource symbol orientation
.
Attributes that can be used with a RotateAnimation.
Includes the following attributes:
Attribute | Description |
---|---|
| |
| |
| |
|
This symbol is the offset where the fromDegrees
attribute's value can be found in the RotateAnimation
array.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the pivotX
attribute's value can be found in the RotateAnimation
array.
May be a floating point value, such as "1.2
".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the pivotY
attribute's value can be found in the RotateAnimation
array.
May be a floating point value, such as "1.2
".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the toDegrees
attribute's value can be found in the RotateAnimation
array.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Attributes that can be used with a RotateDrawable.
Includes the following attributes:
Attribute | Description |
---|---|
| Reference to a drawable resource to use for the frame. |
| |
| |
| |
| |
| Provides initial visibility state of the drawable; the default value is false. |
Reference to a drawable resource to use for the frame. If not given, the drawable must be defined by the first child tag.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol drawable
.
This symbol is the offset where the fromDegrees
attribute's value can be found in the RotateDrawable
array.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the pivotX
attribute's value can be found in the RotateDrawable
array.
May be a floating point value, such as "1.2
".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the pivotY
attribute's value can be found in the RotateDrawable
array.
May be a floating point value, such as "1.2
".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the toDegrees
attribute's value can be found in the RotateDrawable
array.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Provides initial visibility state of the drawable; the default
value is false. See
setVisible(boolean, boolean)
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol visible
.
Attributes that can be used with a ScaleAnimation.
Includes the following attributes:
Attribute | Description |
---|---|
| |
| |
| |
| |
| |
|
This symbol is the offset where the fromXScale
attribute's value can be found in the ScaleAnimation
array.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the fromYScale
attribute's value can be found in the ScaleAnimation
array.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the pivotX
attribute's value can be found in the ScaleAnimation
array.
May be a floating point value, such as "1.2
".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the pivotY
attribute's value can be found in the ScaleAnimation
array.
May be a floating point value, such as "1.2
".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the toXScale
attribute's value can be found in the ScaleAnimation
array.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the toYScale
attribute's value can be found in the ScaleAnimation
array.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Attributes that can be used with a ScaleDrawable.
Includes the following attributes:
Attribute | Description |
---|---|
| Reference to a drawable resource to draw with the specified scale. |
| Specifies where the drawable is positioned after scaling. |
| Scale height, expressed as a percentage of the drawable's bound. |
| Scale width, expressed as a percentage of the drawable's bound. |
Reference to a drawable resource to draw with the specified scale.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol drawable
.
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.
Constant | Value | Description |
---|---|---|
top | 0x30 | Push object to the top of its container, not changing its size. |
bottom | 0x50 | Push object to the bottom of its container, not changing its size. |
left | 0x03 | Push object to the left of its container, not changing its size. |
right | 0x05 | Push object to the right of its container, not changing its size. |
center_vertical | 0x10 | Place object in the vertical center of its container, not changing its size. |
fill_vertical | 0x70 | Grow the vertical size of the object if needed so it completely fills its container. |
center_horizontal | 0x01 | Place object in the horizontal center of its container, not changing its size. |
fill_horizontal | 0x07 | Grow the horizontal size of the object if needed so it completely fills its container. |
center | 0x11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
fill | 0x77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
clip_vertical | 0x80 | 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. |
clip_horizontal | 0x08 | 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. |
This corresponds to the global attribute resource symbol scaleGravity
.
Scale height, expressed as a percentage of the drawable's bound. The value's format is XX%. For instance: 100%, 12.5%, etc.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol scaleHeight
.
Scale width, expressed as a percentage of the drawable's bound. The value's format is XX%. For instance: 100%, 12.5%, etc.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol scaleWidth
.
Attributes that can be used with a ScrollView.
Includes the following attributes:
Attribute | Description |
---|---|
| Defines whether the scrollview should stretch its content to fill the viewport. |
Defines whether the scrollview should stretch its content to fill the viewport.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol fillViewport
.
Searchable activities and applications must provide search configuration information
in an XML file, typically called searchable.xml. This file is referenced in your manifest.
For a more in-depth discussion of search configuration, please refer to
SearchManager
.
Includes the following attributes:
Attribute | Description |
---|---|
| 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 supplied, this string will be displayed as a hint to the user. |
| This is deprecated. |
| Additional features you can enable in an IME associated with an editor to improve the integration with your application. |
| If provided and true , this searchable activity will be
included in any global lists of search targets. |
| The type of data being placed in a text field, used to help an input method decide how to let the user enter text. |
| This is the user-displayed name of the searchable activity. |
| If provided and true , this searchable activity will be invoked for all
queries in a particular session. |
| If supplied, this string will be displayed as the text of the "Search" button. |
| Additional features are controlled by mode bits in this field. |
| If provided, this string will be used to describe the searchable item in the searchable items settings within system search settings. |
| If provided, this is the trigger indicating that the searchable activity provides suggestions as well. |
| 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. |
| 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. |
| If provided, this will be inserted in the suggestions query Uri, after the authority you have provide but before the standard suggestions path. |
| If provided, suggestion queries will be passed into your query function as the selection parameter. |
| If provided, this is the minimum number of characters needed to trigger search suggestions. |
| If provided, this specifies the spoken language to be expected, and that it will be
different than the one set in the getDefault() . |
| If provided, this specifies the language model that should be used by the voice recognition system. |
| 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. |
| If provided, this specifies a prompt that will be displayed during voice input. |
| Voice search features are controlled by mode bits in this field. |
Searchable_autoUrlDetect
Searchable_hint
Searchable_icon
Searchable_imeOptions
Searchable_includeInGlobalSearch
Searchable_inputType
Searchable_label
Searchable_queryAfterZeroResults
Searchable_searchButtonText
Searchable_searchMode
Searchable_searchSettingsDescription
Searchable_searchSuggestAuthority
Searchable_searchSuggestIntentAction
Searchable_searchSuggestIntentData
Searchable_searchSuggestPath
Searchable_searchSuggestSelection
Searchable_searchSuggestThreshold
Searchable_voiceLanguage
Searchable_voiceLanguageModel
Searchable_voiceMaxResults
Searchable_voicePromptText
Searchable_voiceSearchMode
In order to process special action keys during search, you must define them using
one or more "ActionKey" elements in your Searchable metadata. For a more in-depth
discussion of action code handling, please refer to SearchManager
.
Includes the following attributes:
Attribute | Description |
---|---|
| This attribute denotes the action key you wish to respond to. |
| If you wish to handle an action key during normal search query entry, you must define an action string here. |
| If you wish to handle an action key while a suggestion is being displayed and selected, there are two ways to handle this. |
| 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. |
This attribute denotes the action key you wish to respond to. Note that not
all action keys are actually supported using this mechanism, as many of them are
used for typing, navigation, or system functions. This will be added to the
ACTION_SEARCH
intent that is passed to your
searchable activity. To examine the key code, use
getIntExtra(SearchManager.ACTION_KEY)
.
Note, in addition to the keycode, you must also provide one or more of the action specifier attributes. Required attribute.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
KEYCODE_UNKNOWN | 0 | |
KEYCODE_SOFT_LEFT | 1 | |
KEYCODE_SOFT_RIGHT | 2 | |
KEYCODE_HOME | 3 | |
KEYCODE_BACK | 4 | |
KEYCODE_CALL | 5 | |
KEYCODE_ENDCALL | 6 | |
KEYCODE_0 | 7 | |
KEYCODE_1 | 8 | |
KEYCODE_2 | 9 | |
KEYCODE_3 | 10 | |
KEYCODE_4 | 11 | |
KEYCODE_5 | 12 | |
KEYCODE_6 | 13 | |
KEYCODE_7 | 14 | |
KEYCODE_8 | 15 | |
KEYCODE_9 | 16 | |
KEYCODE_STAR | 17 | |
KEYCODE_POUND | 18 | |
KEYCODE_DPAD_UP | 19 | |
KEYCODE_DPAD_DOWN | 20 | |
KEYCODE_DPAD_LEFT | 21 | |
KEYCODE_DPAD_RIGHT | 22 | |
KEYCODE_DPAD_CENTER | 23 | |
KEYCODE_VOLUME_UP | 24 | |
KEYCODE_VOLUME_DOWN | 25 | |
KEYCODE_POWER | 26 | |
KEYCODE_CAMERA | 27 | |
KEYCODE_CLEAR | 28 | |
KEYCODE_A | 29 | |
KEYCODE_B | 30 | |
KEYCODE_C | 31 | |
KEYCODE_D | 32 | |
KEYCODE_E | 33 | |
KEYCODE_F | 34 | |
KEYCODE_G | 35 | |
KEYCODE_H | 36 | |
KEYCODE_I | 37 | |
KEYCODE_J | 38 | |
KEYCODE_K | 39 | |
KEYCODE_L | 40 | |
KEYCODE_M | 41 | |
KEYCODE_N | 42 | |
KEYCODE_O | 43 | |
KEYCODE_P | 44 | |
KEYCODE_Q | 45 | |
KEYCODE_R | 46 | |
KEYCODE_S | 47 | |
KEYCODE_T | 48 | |
KEYCODE_U | 49 | |
KEYCODE_V | 50 | |
KEYCODE_W | 51 | |
KEYCODE_X | 52 | |
KEYCODE_Y | 53 | |
KEYCODE_Z | 54 | |
KEYCODE_COMMA | 55 | |
KEYCODE_PERIOD | 56 | |
KEYCODE_ALT_LEFT | 57 | |
KEYCODE_ALT_RIGHT | 58 | |
KEYCODE_SHIFT_LEFT | 59 | |
KEYCODE_SHIFT_RIGHT | 60 | |
KEYCODE_TAB | 61 | |
KEYCODE_SPACE | 62 | |
KEYCODE_SYM | 63 | |
KEYCODE_EXPLORER | 64 | |
KEYCODE_ENVELOPE | 65 | |
KEYCODE_ENTER | 66 | |
KEYCODE_DEL | 67 | |
KEYCODE_GRAVE | 68 | |
KEYCODE_MINUS | 69 | |
KEYCODE_EQUALS | 70 | |
KEYCODE_LEFT_BRACKET | 71 | |
KEYCODE_RIGHT_BRACKET | 72 | |
KEYCODE_BACKSLASH | 73 | |
KEYCODE_SEMICOLON | 74 | |
KEYCODE_APOSTROPHE | 75 | |
KEYCODE_SLASH | 76 | |
KEYCODE_AT | 77 | |
KEYCODE_NUM | 78 | |
KEYCODE_HEADSETHOOK | 79 | |
KEYCODE_FOCUS | 80 | |
KEYCODE_PLUS | 81 | |
KEYCODE_MENU | 82 | |
KEYCODE_NOTIFICATION | 83 | |
KEYCODE_SEARCH | 84 | |
KEYCODE_MEDIA_PLAY_PAUSE | 85 | |
KEYCODE_MEDIA_STOP | 86 | |
KEYCODE_MEDIA_NEXT | 87 | |
KEYCODE_MEDIA_PREVIOUS | 88 | |
KEYCODE_MEDIA_REWIND | 89 | |
KEYCODE_MEDIA_FAST_FORWARD | 90 | |
KEYCODE_MUTE | 91 |
This corresponds to the global attribute resource symbol keycode
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol queryActionMsg
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol suggestActionMsg
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol suggestActionMsgColumn
.
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..
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol autoUrlDetect
.
If supplied, this string will be displayed as a hint to the user. Optional attribute.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol hint
.
This is deprecated.
The default
application icon is now always used, so this attribute is
obsolete.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol icon
.
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
imeOptions
.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
normal | 0x00000000 | There are no special semantics associated with this editor. |
actionUnspecified | 0x00000000 | There is no specific action associated with this editor, let the
editor come up with its own if it can.
Corresponds to
IME_NULL . |
actionNone | 0x00000001 | This editor has no action associated with it.
Corresponds to
IME_ACTION_NONE . |
actionGo | 0x00000002 | The 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
IME_ACTION_GO . |
actionSearch | 0x00000003 | The 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
IME_ACTION_SEARCH . |
actionSend | 0x00000004 | The action key performs a "send"
operation, delivering the text to its target. This is typically used
when composing a message.
Corresponds to
IME_ACTION_SEND . |
actionNext | 0x00000005 | The action key performs a "next"
operation, taking the user to the next field that will accept text.
Corresponds to
IME_ACTION_NEXT . |
actionDone | 0x00000006 | The action key performs a "done"
operation, closing the soft input method.
Corresponds to
IME_ACTION_DONE . |
flagNoExtractUi | 0x10000000 | Used 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
|
flagNoAccessoryAction | 0x20000000 | Used 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
|
flagNoEnterAction | 0x40000000 | Used 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
|
This corresponds to the global attribute resource symbol imeOptions
.
If provided and true
, this searchable activity will be
included in any global lists of search targets.
The default value is false
. Optional attribute..
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol includeInGlobalSearch
.
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.
Constant | Value | Description |
---|---|---|
none | 0x00000000 | There is no content type. The text is not editable. |
text | 0x00000001 | Just plain old text. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_NORMAL . |
textCapCharacters | 0x00001001 | Can be combined with text and its variations to
request capitalization of all characters. Corresponds to
TYPE_TEXT_FLAG_CAP_CHARACTERS . |
textCapWords | 0x00002001 | Can be combined with text and its variations to
request capitalization of the first character of every word. Corresponds to
TYPE_TEXT_FLAG_CAP_WORDS . |
textCapSentences | 0x00004001 | Can be combined with text and its variations to
request capitalization of the first character of every sentence. Corresponds to
TYPE_TEXT_FLAG_CAP_SENTENCES . |
textAutoCorrect | 0x00008001 | Can be combined with text and its variations to
request auto-correction of text being input. Corresponds to
TYPE_TEXT_FLAG_AUTO_CORRECT . |
textAutoComplete | 0x00010001 | Can 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
TYPE_TEXT_FLAG_AUTO_COMPLETE . |
textMultiLine | 0x00020001 | Can 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
TYPE_TEXT_FLAG_MULTI_LINE . |
textImeMultiLine | 0x00040001 | Can 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
TYPE_TEXT_FLAG_IME_MULTI_LINE . |
textNoSuggestions | 0x00080001 | Can be combined with text and its variations to
indicate that the IME should not show any
dictionary-based word suggestions. Corresponds to
TYPE_TEXT_FLAG_NO_SUGGESTIONS . |
textUri | 0x00000011 | Text that will be used as a URI. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_URI . |
textEmailAddress | 0x00000021 | Text that will be used as an e-mail address. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_EMAIL_ADDRESS . |
textEmailSubject | 0x00000031 | Text that is being supplied as the subject of an e-mail. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_EMAIL_SUBJECT . |
textShortMessage | 0x00000041 | Text that is the content of a short message. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_SHORT_MESSAGE . |
textLongMessage | 0x00000051 | Text that is the content of a long message. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_LONG_MESSAGE . |
textPersonName | 0x00000061 | Text that is the name of a person. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_PERSON_NAME . |
textPostalAddress | 0x00000071 | Text that is being supplied as a postal mailing address. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_POSTAL_ADDRESS . |
textPassword | 0x00000081 | Text that is a password. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_PASSWORD . |
textVisiblePassword | 0x00000091 | Text that is a password that should be visible. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_VISIBLE_PASSWORD . |
textWebEditText | 0x000000a1 | Text that is being supplied as text in a web form. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_WEB_EDIT_TEXT . |
textFilter | 0x000000b1 | Text that is filtering some other data. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_FILTER . |
textPhonetic | 0x000000c1 | Text that is for phonetic pronunciation, such as a phonetic name
field in a contact entry. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_PHONETIC . |
number | 0x00000002 | A numeric only field. Corresponds to
TYPE_CLASS_NUMBER . |
numberSigned | 0x00001002 | Can be combined with number and its other options to
allow a signed number. Corresponds to
TYPE_CLASS_NUMBER |
TYPE_NUMBER_FLAG_SIGNED . |
numberDecimal | 0x00002002 | Can be combined with number and its other options to
allow a decimal (fractional) number. Corresponds to
TYPE_CLASS_NUMBER |
TYPE_NUMBER_FLAG_DECIMAL . |
phone | 0x00000003 | For entering a phone number. Corresponds to
TYPE_CLASS_PHONE . |
datetime | 0x00000004 | For entering a date and time. Corresponds to
TYPE_CLASS_DATETIME |
TYPE_DATETIME_VARIATION_NORMAL . |
date | 0x00000014 | For entering a date. Corresponds to
TYPE_CLASS_DATETIME |
TYPE_DATETIME_VARIATION_DATE . |
time | 0x00000024 | For entering a time. Corresponds to
TYPE_CLASS_DATETIME |
TYPE_DATETIME_VARIATION_TIME . |
This corresponds to the global attribute resource symbol inputType
.
This is the user-displayed name of the searchable activity. Required attribute.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This corresponds to the global attribute resource symbol label
.
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..
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol queryAfterZeroResults
.
If supplied, this string will be displayed as the text of the "Search" button. Optional attribute.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol searchButtonText
.
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.
Constant | Value | Description |
---|---|---|
showSearchLabelAsBadge | 0x04 | If set, this flag enables the display of the search target (label) within the search bar. If neither bad mode is selected, no badge will be shown. |
showSearchIconAsBadge | 0x08 | This is deprecated. The default application icon is now always used, so this option is obsolete. |
queryRewriteFromData | 0x10 | If set, this flag causes the suggestion column SUGGEST_COLUMN_INTENT_DATA to be considered as the text for suggestion query rewriting. This should only be used when the values in SUGGEST_COLUMN_INTENT_DATA are suitable for user inspection and editing - typically, HTTP/HTTPS Uri's. |
queryRewriteFromText | 0x20 | If set, this flag causes the suggestion column SUGGEST_COLUMN_TEXT_1 to be considered as the text for suggestion query rewriting. This should be used for suggestions in which no query text is provided and the SUGGEST_COLUMN_INTENT_DATA values are not suitable for user inspection and editing. |
This corresponds to the global attribute resource symbol searchMode
.
If provided, this string will be used to describe the searchable item in the searchable items settings within system search settings. Optional attribute.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol searchSettingsDescription
.
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 (e.g. "com.example.android.apis.SuggestionProvider") and should match the "android:authorities" tag in your content provider's manifest entry. Optional attribute.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol searchSuggestAuthority
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol searchSuggestIntentAction
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol searchSuggestIntentData
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol searchSuggestPath
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol searchSuggestSelection
.
If provided, this is the minimum number of characters needed to trigger search suggestions. The default value is 0. Optional attribute.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol searchSuggestThreshold
.
If provided, this specifies the spoken language to be expected, and that it will be
different than the one set in the getDefault()
.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol voiceLanguage
.
If provided, this specifies the language model that should be used by the
voice recognition system. See
EXTRA_LANGUAGE_MODEL
for more information.
If not provided, the default value
LANGUAGE_MODEL_FREE_FORM
will be used.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol voiceLanguageModel
.
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.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol voiceMaxResults
.
If provided, this specifies a prompt that will be displayed during voice input.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol voicePromptText
.
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.
Constant | Value | Description |
---|---|---|
showVoiceSearchButton | 0x01 | If set, display a voice search button. This only takes effect if voice search is available on the device. |
launchWebSearch | 0x02 | If 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. |
launchRecognizer | 0x04 | If 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. |
This corresponds to the global attribute resource symbol voiceSearchMode
.
Attributes that can be used with a SeekBar.
Includes the following attributes:
Attribute | Description |
---|---|
| Draws the thumb on a seekbar. |
| An offset for the thumb that allows it to extend out of the range of the track. |
Draws the thumb on a seekbar.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol thumb
.
An offset for the thumb that allows it to extend out of the range of the track.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol thumbOffset
.
Drawable used to draw shapes.
Includes the following attributes:
Attribute | Description |
---|---|
| Defines the color of the shape. |
| Defines the height of the shape. |
| Defines the width of the shape. |
Defines the padding of a ShapeDrawable.
Includes the following attributes:
Attribute | Description |
---|---|
| Bottom padding. |
| Left padding. |
| Right padding. |
| Top padding. |
Bottom padding.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol bottom
.
Left padding.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol left
.
Right padding.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol right
.
Top padding.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol top
.
Defines the color of the shape.
Must be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol color
.
Defines the height of the shape.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol height
.
Defines the width of the shape.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol width
.
SlidingDrawer specific attributes. These attributes are used to configure a SlidingDrawer from XML.
Includes the following attributes:
Attribute | Description |
---|---|
| Indicates whether the drawer can be opened/closed by a single tap on the handle. |
| Indicates whether the drawer should be opened/closed with an animation when the user clicks the handle. |
| Extra offset for the handle at the bottom of the SlidingDrawer. |
| Identifier for the child that represents the drawer's content. |
| Identifier for the child that represents the drawer's handle. |
| Orientation of the SlidingDrawer. |
| Extra offset for the handle at the top of the SlidingDrawer. |
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol allowSingleTap
.
Indicates whether the drawer should be opened/closed with an animation when the user clicks the handle. Default is true.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol animateOnClick
.
Extra offset for the handle at the bottom of the SlidingDrawer.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol bottomOffset
.
Identifier for the child that represents the drawer's content.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol content
.
Identifier for the child that represents the drawer's handle.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol handle
.
Orientation of the SlidingDrawer.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
horizontal | 0 | Defines an horizontal widget. |
vertical | 1 | Defines a vertical widget. |
This corresponds to the global attribute resource symbol orientation
.
Extra offset for the handle at the top of the SlidingDrawer.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol topOffset
.
Attributes that can be used with a SlidingTab.
Includes the following attributes:
Attribute | Description |
---|---|
| Use "horizontal" for a row, "vertical" for a column. |
Use "horizontal" for a row, "vertical" for a column. The default is horizontal.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
horizontal | 0 | Defines an horizontal widget. |
vertical | 1 | Defines a vertical widget. |
This corresponds to the global attribute resource symbol orientation
.
Attributes that can be used with a Spinner.
Includes the following attributes:
Attribute | Description |
---|---|
| The prompt to display when the spinner's dialog is shown. |
The prompt to display when the spinner's dialog is shown.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol prompt
.
Attributes that can be used with a StateListDrawable.
Includes the following attributes:
Attribute | Description |
---|---|
| 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. |
| 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). |
| If true, allows the drawable's padding to change based on the current state that is selected. |
| Provides initial visibility state of the drawable; the default value is false. |
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol constantSize
.
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).
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol dither
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol variablePadding
.
Provides initial visibility state of the drawable; the default
value is false. See
setVisible(boolean, boolean)
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol visible
.
Use account-authenticator
as the root tag of the XML resource that
describes an account authenticator.
Includes the following attributes:
Attribute | Description |
---|---|
| The account type this authenticator handles. |
| the authority of a content provider. |
| |
|
The account type this authenticator handles.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol accountType
.
the authority of a content provider.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol contentAuthority
.
This symbol is the offset where the supportsUploading
attribute's value can be found in the SyncAdapter
array.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the userVisible
attribute's value can be found in the SyncAdapter
array.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Attributes that can be used with a TableLayout.
Includes the following attributes:
Attribute | Description |
---|---|
| The zero-based index of the columns to collapse. |
| The zero-based index of the columns to shrink. |
| The zero-based index of the columns to stretch. |
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol collapseColumns
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol shrinkColumns
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol stretchColumns
.
Attributes that can be used with a TableRow_Cell.
Includes the following attributes:
Attribute | Description |
---|---|
| The index of the column in which this child should be. |
| Defines how many columns this child should span. |
The index of the column in which this child should be.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_column
.
Defines how many columns this child should span. Must be >= 1.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_span
.
Attributes that can be used with a TextAppearance.
Includes the following attributes:
Attribute | Description |
---|---|
| Text color. |
| Color of the text selection highlight. |
| Color of the hint text. |
| Color of the links. |
| Size of the text. |
| Style (bold, italic, bolditalic) for the text. |
| Typeface (normal, sans, serif, monospace) for the text. |
Text color.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColor
.
Color of the text selection highlight.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColorHighlight
.
Color of the hint text.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColorHint
.
Color of the links.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColorLink
.
Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp).
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol textSize
.
Style (bold, italic, bolditalic) for the text.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
normal | 0 | |
bold | 1 | |
italic | 2 |
This corresponds to the global attribute resource symbol textStyle
.
Typeface (normal, sans, serif, monospace) for the text.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
normal | 0 | |
sans | 1 | |
serif | 2 | |
monospace | 3 |
This corresponds to the global attribute resource symbol typeface
.
Attributes that can be used with a TextSwitcher.
Attributes that can be used with a TextView.
Includes the following attributes:
Attribute | Description |
---|---|
| Controls whether links such as urls and email addresses are automatically found and converted to clickable links. |
| If set, specifies that this TextView has a textual input method and automatically corrects some common spelling errors. |
| Determines the minimum type that getText() will return. |
| If set, specifies that this TextView has a textual input method and should automatically capitalize what the user types. |
| Makes the cursor visible (the default) or invisible. |
| If set, specifies that this TextView has a numeric input method and that these specific characters are the ones that it will accept. |
| The drawable to be drawn below the text. |
| The drawable to be drawn to the left of the text. |
| The padding between the drawables and the text. |
| The drawable to be drawn to the right of the text. |
| The drawable to be drawn above the text. |
| If set, specifies that this TextView has an input method. |
| 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. |
| If set, causes words that are longer than the view is wide to be ellipsized instead of broken in the middle. |
| Makes the TextView be exactly this many ems wide. |
| Specifies whether the TextView is enabled or not. |
| 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. |
| Specifies how to align the text by the view's x- and/or y-axis when the text is smaller than the view. |
| Makes the TextView be exactly this many pixels tall. |
| Hint text to display when the text is empty. |
| Supply a value for
EditorInfo.actionId
used when an input method is connected to the text view. |
| Supply a value for
EditorInfo.actionLabel
used when an input method is connected to the text view. |
| Additional features you can enable in an IME associated with an editor to improve the integration with your application. |
| Leave enough room for ascenders and descenders instead of using the font ascent and descent strictly. |
| If set, specifies that this TextView should use the specified input method (specified by fully-qualified class name). |
| The type of data being placed in a text field, used to help an input method decide how to let the user enter text. |
| Extra spacing between lines of text. |
| Extra spacing between lines of text, as a multiplier. |
| Makes the TextView be exactly this many lines tall. |
| If set to false, keeps the movement method from being set to the link movement method even if autoLink causes links to be found. |
| The number of times to repeat the marquee animation. |
| Makes the TextView be at most this many ems wide. |
| Makes the TextView be at most this many pixels tall. |
| Set an input filter to constrain the text length to the specified number. |
| Makes the TextView be at most this many lines tall. |
| Makes the TextView be at most this many pixels wide. |
| Makes the TextView be at least this many ems wide. |
| Makes the TextView be at least this many pixels tall. |
| Makes the TextView be at least this many lines tall. |
| Makes the TextView be at least this many pixels wide. |
| If set, specifies that this TextView has a numeric input method. |
| Whether the characters of the field are displayed as password dots instead of themselves. |
| If set, specifies that this TextView has a phone number input method. |
| 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. |
| Whether the text is allowed to be wider than the view (and therefore can be scrolled horizontally). |
| If the text is selectable, select it all when the view takes focus instead of moving the cursor to the start or end. |
| Place a shadow of the specified color behind the text. |
| Horizontal offset of the shadow. |
| Vertical offset of the shadow. |
| Radius of the shadow. |
| 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. |
| Text to display. |
| Base text color, typeface, size, and style. |
| Text color. |
| Color of the text selection highlight. |
| Color of the hint text. |
| Text color for links. |
| Sets the horizontal scaling factor for the text. |
| Size of the text. |
| Style (bold, italic, bolditalic) for the text. |
| Typeface (normal, sans, serif, monospace) for the text. |
| Makes the TextView be exactly this many pixels wide. |
TextView_autoLink
TextView_autoText
TextView_bufferType
TextView_capitalize
TextView_cursorVisible
TextView_digits
TextView_drawableBottom
TextView_drawableLeft
TextView_drawablePadding
TextView_drawableRight
TextView_drawableTop
TextView_editable
TextView_editorExtras
TextView_ellipsize
TextView_ems
TextView_enabled
TextView_freezesText
TextView_gravity
TextView_height
TextView_hint
TextView_imeActionId
TextView_imeActionLabel
TextView_imeOptions
TextView_includeFontPadding
TextView_inputMethod
TextView_inputType
TextView_lineSpacingExtra
TextView_lineSpacingMultiplier
TextView_lines
TextView_linksClickable
TextView_marqueeRepeatLimit
TextView_maxEms
TextView_maxHeight
TextView_maxLength
TextView_maxLines
TextView_maxWidth
TextView_minEms
TextView_minHeight
TextView_minLines
TextView_minWidth
TextView_numeric
TextView_password
TextView_phoneNumber
TextView_privateImeOptions
TextView_scrollHorizontally
TextView_selectAllOnFocus
TextView_shadowColor
TextView_shadowDx
TextView_shadowDy
TextView_shadowRadius
TextView_singleLine
TextView_text
TextView_textAppearance
TextView_textColor
TextView_textColorHighlight
TextView_textColorHint
TextView_textColorLink
TextView_textScaleX
TextView_textSize
TextView_textStyle
TextView_typeface
TextView_width
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.
Constant | Value | Description |
---|---|---|
none | 0x00 | Match no patterns (default). |
web | 0x01 | Match Web URLs. |
email | 0x02 | Match email addresses. |
phone | 0x04 | Match phone numbers. |
map | 0x08 | Match map addresses. |
all | 0x0f | Match all patterns (equivalent to web|email|phone|map). |
This corresponds to the global attribute resource symbol autoLink
.
If set, specifies that this TextView has a textual input method and automatically corrects some common spelling errors. The default is "false".
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol autoText
.
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.
Constant | Value | Description |
---|---|---|
normal | 0 | Can return any CharSequence, possibly a Spanned one if the source text was Spanned. |
spannable | 1 | Can only return Spannable. |
editable | 2 | Can only return Spannable and Editable. |
This corresponds to the global attribute resource symbol bufferType
.
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.
Constant | Value | Description |
---|---|---|
none | 0 | Don't automatically capitalize anything. |
sentences | 1 | Capitalize the first word of each sentence. |
words | 2 | Capitalize the first letter of every word. |
characters | 3 | Capitalize every character. |
This corresponds to the global attribute resource symbol capitalize
.
Makes the cursor visible (the default) or invisible.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol cursorVisible
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol digits
.
The drawable to be drawn below the text.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol drawableBottom
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol drawableLeft
.
The padding between the drawables and the text.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol drawablePadding
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol drawableRight
.
The drawable to be drawn above the text.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol drawableTop
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol editable
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol editorExtras
.
If set, causes words that are longer than the view is wide to be ellipsized instead of broken in the middle. You will often also want to set scrollHorizontally or singleLine as well so that the text as a whole is also constrained to a single line instead of still allowed to be broken onto multiple lines.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
none | 0 | |
start | 1 | |
middle | 2 | |
end | 3 | |
marquee | 4 |
This corresponds to the global attribute resource symbol ellipsize
.
Makes the TextView be exactly this many ems wide.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol ems
.
Specifies whether the TextView is enabled or not. .
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol enabled
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol freezesText
.
Specifies how to align the text by the view's x- and/or y-axis when the text is smaller than the view.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
top | 0x30 | Push object to the top of its container, not changing its size. |
bottom | 0x50 | Push object to the bottom of its container, not changing its size. |
left | 0x03 | Push object to the left of its container, not changing its size. |
right | 0x05 | Push object to the right of its container, not changing its size. |
center_vertical | 0x10 | Place object in the vertical center of its container, not changing its size. |
fill_vertical | 0x70 | Grow the vertical size of the object if needed so it completely fills its container. |
center_horizontal | 0x01 | Place object in the horizontal center of its container, not changing its size. |
fill_horizontal | 0x07 | Grow the horizontal size of the object if needed so it completely fills its container. |
center | 0x11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
fill | 0x77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
clip_vertical | 0x80 | 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. |
clip_horizontal | 0x08 | 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. |
This corresponds to the global attribute resource symbol gravity
.
Makes the TextView be exactly this many pixels tall. You could get the same effect by specifying this number in the layout parameters.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol height
.
Hint text to display when the text is empty.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol hint
.
Supply a value for
EditorInfo.actionId
used when an input method is connected to the text view.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol imeActionId
.
Supply a value for
EditorInfo.actionLabel
used when an input method is connected to the text view.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol imeActionLabel
.
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
imeOptions
.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
normal | 0x00000000 | There are no special semantics associated with this editor. |
actionUnspecified | 0x00000000 | There is no specific action associated with this editor, let the
editor come up with its own if it can.
Corresponds to
IME_NULL . |
actionNone | 0x00000001 | This editor has no action associated with it.
Corresponds to
IME_ACTION_NONE . |
actionGo | 0x00000002 | The 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
IME_ACTION_GO . |
actionSearch | 0x00000003 | The 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
IME_ACTION_SEARCH . |
actionSend | 0x00000004 | The action key performs a "send"
operation, delivering the text to its target. This is typically used
when composing a message.
Corresponds to
IME_ACTION_SEND . |
actionNext | 0x00000005 | The action key performs a "next"
operation, taking the user to the next field that will accept text.
Corresponds to
IME_ACTION_NEXT . |
actionDone | 0x00000006 | The action key performs a "done"
operation, closing the soft input method.
Corresponds to
IME_ACTION_DONE . |
flagNoExtractUi | 0x10000000 | Used 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
|
flagNoAccessoryAction | 0x20000000 | Used 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
|
flagNoEnterAction | 0x40000000 | Used 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
|
This corresponds to the global attribute resource symbol imeOptions
.
Leave enough room for ascenders and descenders instead of using the font ascent and descent strictly. (Normally true).
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol includeFontPadding
.
If set, specifies that this TextView should use the specified input method (specified by fully-qualified class name).
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol inputMethod
.
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.
Constant | Value | Description |
---|---|---|
none | 0x00000000 | There is no content type. The text is not editable. |
text | 0x00000001 | Just plain old text. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_NORMAL . |
textCapCharacters | 0x00001001 | Can be combined with text and its variations to
request capitalization of all characters. Corresponds to
TYPE_TEXT_FLAG_CAP_CHARACTERS . |
textCapWords | 0x00002001 | Can be combined with text and its variations to
request capitalization of the first character of every word. Corresponds to
TYPE_TEXT_FLAG_CAP_WORDS . |
textCapSentences | 0x00004001 | Can be combined with text and its variations to
request capitalization of the first character of every sentence. Corresponds to
TYPE_TEXT_FLAG_CAP_SENTENCES . |
textAutoCorrect | 0x00008001 | Can be combined with text and its variations to
request auto-correction of text being input. Corresponds to
TYPE_TEXT_FLAG_AUTO_CORRECT . |
textAutoComplete | 0x00010001 | Can 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
TYPE_TEXT_FLAG_AUTO_COMPLETE . |
textMultiLine | 0x00020001 | Can 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
TYPE_TEXT_FLAG_MULTI_LINE . |
textImeMultiLine | 0x00040001 | Can 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
TYPE_TEXT_FLAG_IME_MULTI_LINE . |
textNoSuggestions | 0x00080001 | Can be combined with text and its variations to
indicate that the IME should not show any
dictionary-based word suggestions. Corresponds to
TYPE_TEXT_FLAG_NO_SUGGESTIONS . |
textUri | 0x00000011 | Text that will be used as a URI. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_URI . |
textEmailAddress | 0x00000021 | Text that will be used as an e-mail address. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_EMAIL_ADDRESS . |
textEmailSubject | 0x00000031 | Text that is being supplied as the subject of an e-mail. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_EMAIL_SUBJECT . |
textShortMessage | 0x00000041 | Text that is the content of a short message. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_SHORT_MESSAGE . |
textLongMessage | 0x00000051 | Text that is the content of a long message. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_LONG_MESSAGE . |
textPersonName | 0x00000061 | Text that is the name of a person. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_PERSON_NAME . |
textPostalAddress | 0x00000071 | Text that is being supplied as a postal mailing address. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_POSTAL_ADDRESS . |
textPassword | 0x00000081 | Text that is a password. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_PASSWORD . |
textVisiblePassword | 0x00000091 | Text that is a password that should be visible. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_VISIBLE_PASSWORD . |
textWebEditText | 0x000000a1 | Text that is being supplied as text in a web form. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_WEB_EDIT_TEXT . |
textFilter | 0x000000b1 | Text that is filtering some other data. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_FILTER . |
textPhonetic | 0x000000c1 | Text that is for phonetic pronunciation, such as a phonetic name
field in a contact entry. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_PHONETIC . |
number | 0x00000002 | A numeric only field. Corresponds to
TYPE_CLASS_NUMBER . |
numberSigned | 0x00001002 | Can be combined with number and its other options to
allow a signed number. Corresponds to
TYPE_CLASS_NUMBER |
TYPE_NUMBER_FLAG_SIGNED . |
numberDecimal | 0x00002002 | Can be combined with number and its other options to
allow a decimal (fractional) number. Corresponds to
TYPE_CLASS_NUMBER |
TYPE_NUMBER_FLAG_DECIMAL . |
phone | 0x00000003 | For entering a phone number. Corresponds to
TYPE_CLASS_PHONE . |
datetime | 0x00000004 | For entering a date and time. Corresponds to
TYPE_CLASS_DATETIME |
TYPE_DATETIME_VARIATION_NORMAL . |
date | 0x00000014 | For entering a date. Corresponds to
TYPE_CLASS_DATETIME |
TYPE_DATETIME_VARIATION_DATE . |
time | 0x00000024 | For entering a time. Corresponds to
TYPE_CLASS_DATETIME |
TYPE_DATETIME_VARIATION_TIME . |
This corresponds to the global attribute resource symbol inputType
.
Extra spacing between lines of text.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol lineSpacingExtra
.
Extra spacing between lines of text, as a multiplier.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol lineSpacingMultiplier
.
Makes the TextView be exactly this many lines tall.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol lines
.
If set to false, keeps the movement method from being set to the link movement method even if autoLink causes links to be found.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol linksClickable
.
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
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
May be one of the following constant values.
Constant | Value | Description |
---|---|---|
marquee_forever | -1 | Indicates that marquee should repeat indefinitely. |
This corresponds to the global attribute resource symbol marqueeRepeatLimit
.
Makes the TextView be at most this many ems wide.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol maxEms
.
Makes the TextView be at most this many pixels tall.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol maxHeight
.
Set an input filter to constrain the text length to the specified number.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol maxLength
.
Makes the TextView be at most this many lines tall.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol maxLines
.
Makes the TextView be at most this many pixels wide.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol maxWidth
.
Makes the TextView be at least this many ems wide.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol minEms
.
Makes the TextView be at least this many pixels tall.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol minHeight
.
Makes the TextView be at least this many lines tall.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol minLines
.
Makes the TextView be at least this many pixels wide.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol minWidth
.
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.
Constant | Value | Description |
---|---|---|
integer | 0x01 | Input is numeric. |
signed | 0x003 | Input is numeric, with sign allowed. |
decimal | 0x05 | Input is numeric, with decimals allowed. |
This corresponds to the global attribute resource symbol numeric
.
Whether the characters of the field are displayed as password dots instead of themselves.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol password
.
If set, specifies that this TextView has a phone number input method. The default is false.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol phoneNumber
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol privateImeOptions
.
Whether the text is allowed to be wider than the view (and therefore can be scrolled horizontally).
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol scrollHorizontally
.
If the text is selectable, select it all when the view takes focus instead of moving the cursor to the start or end.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol selectAllOnFocus
.
Place a shadow of the specified color behind the text.
Must be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol shadowColor
.
Horizontal offset of the shadow.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol shadowDx
.
Vertical offset of the shadow.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol shadowDy
.
Radius of the shadow.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol shadowRadius
.
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. Note: for editable text views, it is better to control this using the textMultiLine flag in the inputType attribute. (If both singleLine and inputType are supplied, the inputType flags will override the value of singleLine.)
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol singleLine
.
Text to display.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol text
.
Base text color, typeface, size, and style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol textAppearance
.
Text color.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColor
.
Color of the text selection highlight.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColorHighlight
.
Color of the hint text.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColorHint
.
Text color for links.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColorLink
.
Sets the horizontal scaling factor for the text.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol textScaleX
.
Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp).
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol textSize
.
Style (bold, italic, bolditalic) for the text.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
normal | 0 | |
bold | 1 | |
italic | 2 |
This corresponds to the global attribute resource symbol textStyle
.
Typeface (normal, sans, serif, monospace) for the text.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
normal | 0 | |
sans | 1 | |
serif | 2 | |
monospace | 3 |
This corresponds to the global attribute resource symbol typeface
.
Makes the TextView be exactly this many pixels wide. You could get the same effect by specifying this number in the layout parameters.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol width
.
These are the standard attributes that make up a complete theme.
Includes the following attributes:
Attribute | Description |
---|---|
| Default AbsListView style. |
| |
| Default AutoCompleteTextView style. |
| Default background dim amount when a menu, dialog, or something similar pops up. |
| Control whether dimming behind the window is enabled. |
| Normal Button style. |
| Button style to inset into an EditText. |
| Small Button style. |
| ToggleButton style. |
| A styled string, specifying the style to be used for showing inline candidate text when composing with an input method. |
| Default style for CheckBoxPreference. |
| Default Checkbox style. |
| Color that matches (as closely as possible) the window background. |
| This is a hint for a solid color that can be used for caching rendered views. |
| Default color of foreground imagery. |
| Default color of foreground imagery on an inverted background. |
| Default style for DialogPreference. |
| Default disabled alpha for widgets that set enabled/disabled alpha programmatically. |
| Default style for drop down hints. |
| Default style for drop down items. |
| Default ListView style for drop downs. |
| Default style for EditTextPreference. |
| Default EditText style. |
| The preferred left bound for an expandable list child's indicator. |
| The preferred right bound for an expandable list child's indicator. |
| The preferred left padding for an expandable list item that is a child. |
| The preferred left bound for an expandable list item's indicator. |
| The preferred right bound for an expandable list item's indicator. |
| The preferred left padding for an expandable list item (for child-specific layouts, use expandableListPreferredChildPaddingLeft). |
| Default ExpandableListView style. |
| The preferred background for gallery items. |
| Default Gallery style. |
| Default GridView style. |
| The style resource to use for an ImageButton. |
| The style resource to use for an ImageButton that is an image well. |
| Drawable to use for multiple choice indicators. |
| Drawable to use for single choice indicators. |
| |
| The preferred list item height. |
| TextView style for list separators. |
| Default ListView style. |
| ListView with white background. |
| Default MapView style. |
| The background of a panel when it is inset from the left and right edges of the screen. |
| Color that matches (as closely as possible) the panel background. |
| Default color of foreground panel imagery. |
| The background of a panel when it extends to the left and right edges of the screen. |
| Default appearance of panel text. |
| Default PopupWindow style. |
| Default style for PreferenceCategory. |
| Default style for informational Preference. |
| The preference layout that has the child/tabbed effect. |
| Default style for PreferenceScreen. |
| Default style for Preference. |
| Default ProgressBar style. |
| Horizontal ProgressBar style. |
| Inverse ProgressBar style. |
| Large ProgressBar style. |
| Large inverse ProgressBar style. |
| Small ProgressBar style. |
| Small inverse ProgressBar style. |
| Small ProgressBar in title style. |
| Default quickcontact badge style with large quickcontact window. |
| Default quickcontact badge style with medium quickcontact window. |
| Default quickcontact badge style with small quickcontact window. |
| Default quickcontact badge style with large quickcontact window. |
| Default quickcontact badge style with medium quickcontact window. |
| Default quickcontact badge style with small quickcontact window. |
| Default RadioButton style. |
| Default RatingBar style. |
| Indicator RatingBar style. |
| Small indicator RatingBar style. |
| Default style for RingtonePreference. |
| Default ScrollView style. |
| Default SeekBar style. |
| Default style for spinner drop down items. |
| Default spinner item style. |
| Default Spinner style. |
| Default Star style. |
| Default TabWidget style. |
| Default appearance of text: color, typeface, size, and style. |
| Text color, typeface, size, and style for the text inside of a button. |
| Default appearance of text against an inverted background: color, typeface, size, and style. |
| Text color, typeface, size, and style for "large" text. |
| Text color, typeface, size, and style for "large" inverse text. |
| Text color, typeface, size, and style for "medium" text. |
| Text color, typeface, size, and style for "medium" inverse text. |
| Text color, typeface, size, and style for system search result subtitle. |
| Text color, typeface, size, and style for system search result title. |
| Text color, typeface, size, and style for "small" text. |
| Text color, typeface, size, and style for "small" inverse text. |
| Drawable to use for check marks. |
| |
| Inverse hint text color. |
| The most prominent text color. |
| Bright text color. |
| Primary inverse text color, useful for inverted backgrounds. |
| Bright inverse text color. |
| Bright inverse text color. |
| Bright text color. |
| Secondary text color. |
| Secondary inverse text color, useful for inverted backgrounds. |
| Dim inverse text color. |
| Dim text color. |
| Tertiary text color. |
| Tertiary inverse text color, useful for inverted backgrounds. |
| Default TextView style. |
| Default WebView style. |
| Reference to a style resource holding
the set of window animations to use, which can be
any of the attributes defined by
WindowAnimation . |
| Drawable to use as the overall window background. |
| This Drawable is overlaid over the foreground of the Window's content area, usually to place a shadow below the title. |
| Flag allowing you to disable the preview animation for a window. |
| Drawable to use as a frame around the window. |
| Flag indicating whether this window should fill the entire screen. |
| Flag indicating whether this is a floating window. |
| Flag indicating whether this is a translucent window. |
| Flag indicating that this window should not be displayed at all. |
| Flag indicating whether there should be no title on this window. |
| Flag indicating that this window's background should be the user's current wallpaper. |
| Defines the default soft input state that this window would like when it is displayed. |
| The style resource to use for a window's title area. |
| The style resource to use for a window's title bar height. |
| The style resource to use for a window's title text. |
| Default style for YesNoPreference. |
Theme_absListViewStyle
Theme_alertDialogStyle
Theme_autoCompleteTextViewStyle
Theme_backgroundDimAmount
Theme_backgroundDimEnabled
Theme_buttonStyle
Theme_buttonStyleInset
Theme_buttonStyleSmall
Theme_buttonStyleToggle
Theme_candidatesTextStyleSpans
Theme_checkBoxPreferenceStyle
Theme_checkboxStyle
Theme_colorBackground
Theme_colorBackgroundCacheHint
Theme_colorForeground
Theme_colorForegroundInverse
Theme_dialogPreferenceStyle
Theme_disabledAlpha
Theme_dropDownHintAppearance
Theme_dropDownItemStyle
Theme_dropDownListViewStyle
Theme_editTextPreferenceStyle
Theme_editTextStyle
Theme_expandableListPreferredChildIndicatorLeft
Theme_expandableListPreferredChildIndicatorRight
Theme_expandableListPreferredChildPaddingLeft
Theme_expandableListPreferredItemIndicatorLeft
Theme_expandableListPreferredItemIndicatorRight
Theme_expandableListPreferredItemPaddingLeft
Theme_expandableListViewStyle
Theme_galleryItemBackground
Theme_galleryStyle
Theme_gridViewStyle
Theme_imageButtonStyle
Theme_imageWellStyle
Theme_listChoiceIndicatorMultiple
Theme_listChoiceIndicatorSingle
Theme_listDivider
Theme_listPreferredItemHeight
Theme_listSeparatorTextViewStyle
Theme_listViewStyle
Theme_listViewWhiteStyle
Theme_mapViewStyle
Theme_panelBackground
Theme_panelColorBackground
Theme_panelColorForeground
Theme_panelFullBackground
Theme_panelTextAppearance
Theme_popupWindowStyle
Theme_preferenceCategoryStyle
Theme_preferenceInformationStyle
Theme_preferenceLayoutChild
Theme_preferenceScreenStyle
Theme_preferenceStyle
Theme_progressBarStyle
Theme_progressBarStyleHorizontal
Theme_progressBarStyleInverse
Theme_progressBarStyleLarge
Theme_progressBarStyleLargeInverse
Theme_progressBarStyleSmall
Theme_progressBarStyleSmallInverse
Theme_progressBarStyleSmallTitle
Theme_quickContactBadgeStyleSmallWindowLarge
Theme_quickContactBadgeStyleSmallWindowMedium
Theme_quickContactBadgeStyleSmallWindowSmall
Theme_quickContactBadgeStyleWindowLarge
Theme_quickContactBadgeStyleWindowMedium
Theme_quickContactBadgeStyleWindowSmall
Theme_radioButtonStyle
Theme_ratingBarStyle
Theme_ratingBarStyleIndicator
Theme_ratingBarStyleSmall
Theme_ringtonePreferenceStyle
Theme_scrollViewStyle
Theme_seekBarStyle
Theme_spinnerDropDownItemStyle
Theme_spinnerItemStyle
Theme_spinnerStyle
Theme_starStyle
Theme_tabWidgetStyle
Theme_textAppearance
Theme_textAppearanceButton
Theme_textAppearanceInverse
Theme_textAppearanceLarge
Theme_textAppearanceLargeInverse
Theme_textAppearanceMedium
Theme_textAppearanceMediumInverse
Theme_textAppearanceSearchResultSubtitle
Theme_textAppearanceSearchResultTitle
Theme_textAppearanceSmall
Theme_textAppearanceSmallInverse
Theme_textCheckMark
Theme_textCheckMarkInverse
Theme_textColorHintInverse
Theme_textColorPrimary
Theme_textColorPrimaryDisableOnly
Theme_textColorPrimaryInverse
Theme_textColorPrimaryInverseDisableOnly
Theme_textColorPrimaryInverseNoDisable
Theme_textColorPrimaryNoDisable
Theme_textColorSecondary
Theme_textColorSecondaryInverse
Theme_textColorSecondaryInverseNoDisable
Theme_textColorSecondaryNoDisable
Theme_textColorTertiary
Theme_textColorTertiaryInverse
Theme_textViewStyle
Theme_webViewStyle
Theme_windowAnimationStyle
Theme_windowBackground
Theme_windowContentOverlay
Theme_windowDisablePreview
Theme_windowFrame
Theme_windowFullscreen
Theme_windowIsFloating
Theme_windowIsTranslucent
Theme_windowNoDisplay
Theme_windowNoTitle
Theme_windowShowWallpaper
Theme_windowSoftInputMode
Theme_windowTitleBackgroundStyle
Theme_windowTitleSize
Theme_windowTitleStyle
Theme_yesNoPreferenceStyle
Default AbsListView style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol absListViewStyle
.
This symbol is the offset where the alertDialogStyle
attribute's value can be found in the Theme
array.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Default AutoCompleteTextView style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol autoCompleteTextViewStyle
.
Default background dim amount when a menu, dialog, or something similar pops up.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol backgroundDimAmount
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol backgroundDimEnabled
.
Normal Button style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol buttonStyle
.
Button style to inset into an EditText.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol buttonStyleInset
.
Small Button style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol buttonStyleSmall
.
ToggleButton style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol buttonStyleToggle
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This corresponds to the global attribute resource symbol candidatesTextStyleSpans
.
Default style for CheckBoxPreference.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol checkBoxPreferenceStyle
.
Default Checkbox style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol checkboxStyle
.
Color that matches (as closely as possible) the window background.
Must be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol colorBackground
.
This is a hint for a solid color that can be used for caching rendered views. This will be the color of the background when there is a solid background color; it will be null when the background is a texture or translucent.
Must be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol colorBackgroundCacheHint
.
Default color of foreground imagery.
Must be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol colorForeground
.
Default color of foreground imagery on an inverted background.
Must be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol colorForegroundInverse
.
Default style for DialogPreference.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol dialogPreferenceStyle
.
Default disabled alpha for widgets that set enabled/disabled alpha programmatically.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol disabledAlpha
.
Default style for drop down hints.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol dropDownHintAppearance
.
Default style for drop down items.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol dropDownItemStyle
.
Default ListView style for drop downs.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol dropDownListViewStyle
.
Default style for EditTextPreference.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol editTextPreferenceStyle
.
Default EditText style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol editTextStyle
.
The preferred left bound for an expandable list child's indicator.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol expandableListPreferredChildIndicatorLeft
.
The preferred right bound for an expandable list child's indicator.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol expandableListPreferredChildIndicatorRight
.
The preferred left padding for an expandable list item that is a child. If this is not provided, it defaults to the expandableListPreferredItemPaddingLeft.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol expandableListPreferredChildPaddingLeft
.
The preferred left bound for an expandable list item's indicator. For a child-specific indicator, use expandableListPreferredChildIndicatorLeft.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol expandableListPreferredItemIndicatorLeft
.
The preferred right bound for an expandable list item's indicator. For a child-specific indicator, use expandableListPreferredChildIndicatorRight.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol expandableListPreferredItemIndicatorRight
.
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.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol expandableListPreferredItemPaddingLeft
.
Default ExpandableListView style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol expandableListViewStyle
.
The preferred background for gallery items. This should be set as the background of any Views you provide from the Adapter.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol galleryItemBackground
.
Default Gallery style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol galleryStyle
.
Default GridView style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol gridViewStyle
.
The style resource to use for an ImageButton.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol imageButtonStyle
.
The style resource to use for an ImageButton that is an image well.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol imageWellStyle
.
Drawable to use for multiple choice indicators.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol listChoiceIndicatorMultiple
.
Drawable to use for single choice indicators.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol listChoiceIndicatorSingle
.
This symbol is the offset where the listDivider
attribute's value can be found in the Theme
array.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
The preferred list item height.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol listPreferredItemHeight
.
TextView style for list separators.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol listSeparatorTextViewStyle
.
Default ListView style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol listViewStyle
.
ListView with white background.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol listViewWhiteStyle
.
Default MapView style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol mapViewStyle
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol panelBackground
.
Color that matches (as closely as possible) the panel background.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol panelColorBackground
.
Default color of foreground panel imagery.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol panelColorForeground
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol panelFullBackground
.
Default appearance of panel text.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol panelTextAppearance
.
Default PopupWindow style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol popupWindowStyle
.
Default style for PreferenceCategory.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol preferenceCategoryStyle
.
Default style for informational Preference.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol preferenceInformationStyle
.
The preference layout that has the child/tabbed effect.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol preferenceLayoutChild
.
Default style for PreferenceScreen.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol preferenceScreenStyle
.
Default style for Preference.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol preferenceStyle
.
Default ProgressBar style. This is a medium circular progress bar.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol progressBarStyle
.
Horizontal ProgressBar style. This is a horizontal progress bar.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol progressBarStyleHorizontal
.
Inverse ProgressBar style. This is a medium circular progress bar.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol progressBarStyleInverse
.
Large ProgressBar style. This is a large circular progress bar.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol progressBarStyleLarge
.
Large inverse ProgressBar style. This is a large circular progress bar.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol progressBarStyleLargeInverse
.
Small ProgressBar style. This is a small circular progress bar.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol progressBarStyleSmall
.
Small inverse ProgressBar style. This is a small circular progress bar.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol progressBarStyleSmallInverse
.
Small ProgressBar in title style. This is a small circular progress bar that will be placed in title bars.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol progressBarStyleSmallTitle
.
Default quickcontact badge style with large quickcontact window.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol quickContactBadgeStyleSmallWindowLarge
.
Default quickcontact badge style with medium quickcontact window.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol quickContactBadgeStyleSmallWindowMedium
.
Default quickcontact badge style with small quickcontact window.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol quickContactBadgeStyleSmallWindowSmall
.
Default quickcontact badge style with large quickcontact window.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol quickContactBadgeStyleWindowLarge
.
Default quickcontact badge style with medium quickcontact window.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol quickContactBadgeStyleWindowMedium
.
Default quickcontact badge style with small quickcontact window.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol quickContactBadgeStyleWindowSmall
.
Default RadioButton style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol radioButtonStyle
.
Default RatingBar style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol ratingBarStyle
.
Indicator RatingBar style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol ratingBarStyleIndicator
.
Small indicator RatingBar style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol ratingBarStyleSmall
.
Default style for RingtonePreference.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol ringtonePreferenceStyle
.
Default ScrollView style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol scrollViewStyle
.
Default SeekBar style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol seekBarStyle
.
Default style for spinner drop down items.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol spinnerDropDownItemStyle
.
Default spinner item style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol spinnerItemStyle
.
Default Spinner style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol spinnerStyle
.
Default Star style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol starStyle
.
Default TabWidget style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol tabWidgetStyle
.
Default appearance of text: color, typeface, size, and style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol textAppearance
.
Text color, typeface, size, and style for the text inside of a button.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol textAppearanceButton
.
Default appearance of text against an inverted background: color, typeface, size, and style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol textAppearanceInverse
.
Text color, typeface, size, and style for "large" text. Defaults to primary text color.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol textAppearanceLarge
.
Text color, typeface, size, and style for "large" inverse text. Defaults to primary inverse text color.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol textAppearanceLargeInverse
.
Text color, typeface, size, and style for "medium" text. Defaults to primary text color.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol textAppearanceMedium
.
Text color, typeface, size, and style for "medium" inverse text. Defaults to primary inverse text color.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol textAppearanceMediumInverse
.
Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol textAppearanceSearchResultSubtitle
.
Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol textAppearanceSearchResultTitle
.
Text color, typeface, size, and style for "small" text. Defaults to secondary text color.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol textAppearanceSmall
.
Text color, typeface, size, and style for "small" inverse text. Defaults to secondary inverse text color.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol textAppearanceSmallInverse
.
Drawable to use for check marks.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol textCheckMark
.
This symbol is the offset where the textCheckMarkInverse
attribute's value can be found in the Theme
array.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Inverse hint text color.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColorHintInverse
.
The most prominent text color.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColorPrimary
.
Bright text color. Only differentiates based on the disabled state.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColorPrimaryDisableOnly
.
Primary inverse text color, useful for inverted backgrounds.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColorPrimaryInverse
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColorPrimaryInverseDisableOnly
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColorPrimaryInverseNoDisable
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColorPrimaryNoDisable
.
Secondary text color.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColorSecondary
.
Secondary inverse text color, useful for inverted backgrounds.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColorSecondaryInverse
.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColorSecondaryInverseNoDisable
.
Dim text color. This does not differentiate the disabled state.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColorSecondaryNoDisable
.
Tertiary text color.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColorTertiary
.
Tertiary inverse text color, useful for inverted backgrounds.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColorTertiaryInverse
.
Default TextView style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol textViewStyle
.
Default WebView style.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol webViewStyle
.
Reference to a style resource holding
the set of window animations to use, which can be
any of the attributes defined by
WindowAnimation
.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol windowAnimationStyle
.
Drawable to use as the overall window background. There are a few special considerations you should use when settings this drawable:
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol windowBackground
.
This Drawable is overlaid over the foreground of the Window's content area, usually to place a shadow below the title.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol windowContentOverlay
.
Flag allowing you to disable the preview animation for a window. The default value is false; if set to true, the system can never use the window's theme to show a preview of it before your actual instance is shown to the user.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol windowDisablePreview
.
Drawable to use as a frame around the window.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol windowFrame
.
Flag indicating whether this window should fill the entire screen.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol windowFullscreen
.
Flag indicating whether this is a floating window.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol windowIsFloating
.
Flag indicating whether this is a translucent window.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol windowIsTranslucent
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol windowNoDisplay
.
Flag indicating whether there should be no title on this window.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol windowNoTitle
.
Flag indicating that this window's background should be the user's current wallpaper.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol windowShowWallpaper
.
Defines the default soft input state that this window would like when it is displayed.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
stateUnspecified | 0 | Not specified, use what the system thinks is best. This is the default. |
stateUnchanged | 1 | Leave the soft input window as-is, in whatever state it last was. |
stateHidden | 2 | Make the soft input area hidden when normally appropriate (when the user is navigating forward to your window). |
stateAlwaysHidden | 3 | Always make the soft input area hidden when this window has input focus. |
stateVisible | 4 | Make the soft input area visible when normally appropriate (when the user is navigating forward to your window). |
stateAlwaysVisible | 5 | Always make the soft input area visible when this window has input focus. |
adjustUnspecified | 0x00 | The 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. |
adjustResize | 0x10 | Always resize the window: the content area of the window is reduced to make room for the soft input area. |
adjustPan | 0x20 | Don'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. |
This corresponds to the global attribute resource symbol windowSoftInputMode
.
The style resource to use for a window's title area.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol windowTitleBackgroundStyle
.
The style resource to use for a window's title bar height.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol windowTitleSize
.
The style resource to use for a window's title text.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol windowTitleStyle
.
Default style for YesNoPreference.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol yesNoPreferenceStyle
.
Attributes that can be used with a ToggleButton.
Includes the following attributes:
Attribute | Description |
---|---|
| The alpha to apply to the indicator when disabled. |
| The text for the button when it is not checked. |
| The text for the button when it is checked. |
The alpha to apply to the indicator when disabled.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol disabledAlpha
.
The text for the button when it is not checked.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol textOff
.
The text for the button when it is checked.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol textOn
.
Attributes that can be used with a TranslateAnimation.
Includes the following attributes:
Attribute | Description |
---|---|
| |
| |
| |
|
This symbol is the offset where the fromXDelta
attribute's value can be found in the TranslateAnimation
array.
May be a floating point value, such as "1.2
".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the fromYDelta
attribute's value can be found in the TranslateAnimation
array.
May be a floating point value, such as "1.2
".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the toXDelta
attribute's value can be found in the TranslateAnimation
array.
May be a floating point value, such as "1.2
".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the toYDelta
attribute's value can be found in the TranslateAnimation
array.
May be a floating point value, such as "1.2
".
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%
".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Attributes that can be used with a TwoLineListItem.
Includes the following attributes:
Attribute | Description |
---|---|
|
This symbol is the offset where the mode
attribute's value can be found in the TwoLineListItem
array.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
oneLine | 1 | Always show only the first line. |
collapsing | 2 | When selected show both lines, otherwise show only the first line. This is the default mode. |
twoLine | 3 | Always show both lines. |
Attributes that can be used with a VerticalSlider_Layout.
Includes the following attributes:
Attribute | Description |
---|---|
|
This symbol is the offset where the layout_scale
attribute's value can be found in the VerticalSlider_Layout
array.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Attributes that can be used with View
or
any of its subclasses. Also see ViewGroup_Layout
for
attributes that are processed by the view's parent.
Includes the following attributes:
Attribute | Description |
---|---|
| A drawable to use as the background. |
| Defines whether this view reacts to click events. |
| Defines text that briefly describes content of the view. |
| Defines the quality of translucent drawing caches. |
| When this attribute is set to true, the view gets its drawable state (focused, pressed, etc. |
| Defines whether to fade out scrollbars when they are not in use. |
| Defines which edges should be fadeded on scrolling. |
| Defines the length of the fading edges. |
| Boolean internal attribute to adjust view layout based on system windows such as the status bar. |
| Boolean that controls whether a view can take focus. |
| Boolean that controls whether a view can take focus while in touch mode. |
| Boolean that controls whether a view should have haptic feedback enabled for events such as long presses. |
| Supply an identifier name for this view, to later retrieve it
with View.findViewById() or
Activity.findViewById() . |
| Set this if the view will serve as a scrolling container, meaing that it can be resized to shrink its overall window so that there will be space for an input method. |
| Controls whether the view's window should keep the screen on while visible. |
| Defines whether this view reacts to long click events. |
| Defines the minimum height of the view. |
| Defines the minimum width of the view. |
| 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_LEFT . |
| 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. |
| Name of the method in this View's context to invoke when the view is clicked. |
| Sets the padding, in pixels, of all four edges. |
| Sets the padding, in pixels, of the bottom edge; see padding . |
| Sets the padding, in pixels, of the left edge; see padding . |
| Sets the padding, in pixels, of the right edge; see padding . |
| Sets the padding, in pixels, of the top edge; see padding . |
| If unset, no state will be saved for this view when it is being frozen. |
| The initial horizontal scroll offset, in pixels. |
| The initial vertical scroll offset, in pixels. |
| Defines whether the horizontal scrollbar track should always be drawn. |
| Defines whether the vertical scrollbar track should always be drawn. |
| Defines the delay in milliseconds that a scrollbar waits before fade out. |
| Defines the delay in milliseconds that a scrollbar takes to fade out. |
| Sets the width of vertical scrollbars and height of horizontal scrollbars. |
| Controls the scrollbar style and position. |
| Defines the horizontal scrollbar thumb drawable. |
| Defines the vertical scrollbar thumb drawable. |
| Defines the horizontal scrollbar track drawable. |
| Defines the vertical scrollbar track drawable. |
| Defines which scrollbars should be displayed on scrolling or not. |
| Boolean that controls whether a view should have sound effects enabled for events such as clicking and touching. |
| Supply a tag for this view containing a String, to be retrieved
later with View.getTag() or
searched for with View.findViewWithTag() . |
| Controls the initial visibility of the view. |
View_background
View_clickable
View_contentDescription
View_drawingCacheQuality
View_duplicateParentState
View_fadeScrollbars
View_fadingEdge
View_fadingEdgeLength
View_fitsSystemWindows
View_focusable
View_focusableInTouchMode
View_hapticFeedbackEnabled
View_id
View_isScrollContainer
View_keepScreenOn
View_longClickable
View_minHeight
View_minWidth
View_nextFocusDown
View_nextFocusLeft
View_nextFocusRight
View_nextFocusUp
View_onClick
View_padding
View_paddingBottom
View_paddingLeft
View_paddingRight
View_paddingTop
View_saveEnabled
View_scrollX
View_scrollY
View_scrollbarAlwaysDrawHorizontalTrack
View_scrollbarAlwaysDrawVerticalTrack
View_scrollbarDefaultDelayBeforeFade
View_scrollbarFadeDuration
View_scrollbarSize
View_scrollbarStyle
View_scrollbarThumbHorizontal
View_scrollbarThumbVertical
View_scrollbarTrackHorizontal
View_scrollbarTrackVertical
View_scrollbars
View_soundEffectsEnabled
View_tag
View_visibility
Attributes that can be used with a ViewAnimator.
Includes the following attributes:
Attribute | Description |
---|---|
| |
|
This symbol is the offset where the inAnimation
attribute's value can be found in the ViewAnimator
array.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This symbol is the offset where the outAnimation
attribute's value can be found in the ViewAnimator
array.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Attributes that can be used with a ViewDrawableStates.
Includes the following attributes:
Attribute | Description |
---|---|
| State value for StateListDrawable . |
| State value for StateListDrawable . |
| State value for StateListDrawable . |
| State value for StateListDrawable . |
| State value for StateListDrawable . |
State value for StateListDrawable
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_enabled
.
State value for StateListDrawable
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_focused
.
State value for StateListDrawable
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_pressed
.
State value for StateListDrawable
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_selected
.
State value for StateListDrawable
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol state_window_focused
.
Attributes that can be used with a ViewFlipper.
Includes the following attributes:
Attribute | Description |
---|---|
| When true, automatically start animating |
|
When true, automatically start animating
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol autoStart
.
This symbol is the offset where the flipInterval
attribute's value can be found in the ViewFlipper
array.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Attributes that can be used with a ViewGroup
or any
of its subclasses. Also see ViewGroup_Layout
for
attributes that this class processes in its children.
Includes the following attributes:
Attribute | Description |
---|---|
| Sets whether this ViewGroup's drawable states also include its children's drawable states. |
| Defines whether the ViewGroup should always draw its children using their drawing cache or not. |
| Defines whether layout animations should create a drawing cache for their children. |
| Defines whether a child is limited to draw inside of its bounds or not. |
| Defines whether the ViewGroup will clip its drawing surface so as to exclude the padding area. |
| Defines the relationship between the ViewGroup and its descendants when looking for a View to take focus. |
| Defines the layout animation to use the first time the ViewGroup is laid out. |
| Defines the persistence of the drawing cache. |
This is the basic set of layout attributes that are common to all
layout managers. These attributes are specified with the rest of
a view's normal attributes (such as background
,
but will be parsed by the view's parent and ignored by the child.
The values defined here correspond to the base layout attribute
class ViewGroup.LayoutParams
.
Includes the following attributes:
Attribute | Description |
---|---|
| Specifies the basic height of the view. |
| Specifies the basic width of the view. |
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), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
May be one of the following constant values.
Constant | Value | Description |
---|---|---|
fill_parent | -1 | The view should be as big as its parent (minus padding). |
wrap_content | -2 | The view should be only big enough to enclose its content (plus padding). |
This corresponds to the global attribute resource symbol layout_height
.
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), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
May be one of the following constant values.
Constant | Value | Description |
---|---|---|
fill_parent | -1 | The view should be as big as its parent (minus padding). |
wrap_content | -2 | The view should be only big enough to enclose its content (plus padding). |
This corresponds to the global attribute resource symbol layout_width
.
This is the basic set of layout attributes for layout managers that
wish to place margins around their child views.
These attributes are specified with the rest of
a view's normal attributes (such as background
,
but will be parsed by the view's parent and ignored by the child.
The values defined here correspond to the base layout attribute
class ViewGroup.MarginLayoutParams
.
Includes the following attributes:
Attribute | Description |
---|---|
| Specifies the basic height of the view. |
| Specifies extra space on the left, top, right and bottom sides of this view. |
| Specifies extra space on the bottom side of this view. |
| Specifies extra space on the left side of this view. |
| Specifies extra space on the right side of this view. |
| Specifies extra space on the top side of this view. |
| Specifies the basic width of the view. |
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), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
May be one of the following constant values.
Constant | Value | Description |
---|---|---|
fill_parent | -1 | The view should be as big as its parent (minus padding). |
wrap_content | -2 | The view should be only big enough to enclose its content (plus padding). |
This corresponds to the global attribute resource symbol layout_height
.
Specifies extra space on the left, top, right and bottom sides of this view. This space is outside this view's bounds.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_margin
.
Specifies extra space on the bottom side of this view. This space is outside this view's bounds.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_marginBottom
.
Specifies extra space on the left side of this view. This space is outside this view's bounds.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_marginLeft
.
Specifies extra space on the right side of this view. This space is outside this view's bounds.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_marginRight
.
Specifies extra space on the top side of this view. This space is outside this view's bounds.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_marginTop
.
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), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
May be one of the following constant values.
Constant | Value | Description |
---|---|---|
fill_parent | -1 | The view should be as big as its parent (minus padding). |
wrap_content | -2 | The view should be only big enough to enclose its content (plus padding). |
This corresponds to the global attribute resource symbol layout_width
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol addStatesFromChildren
.
Defines whether the ViewGroup should always draw its children using their drawing cache or not. The default value is true.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol alwaysDrawnWithCache
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol animationCache
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol clipChildren
.
Defines whether the ViewGroup will clip its drawing surface so as to exclude the padding area. This property is set to true by default.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol clipToPadding
.
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.
Constant | Value | Description |
---|---|---|
beforeDescendants | 0 | The ViewGroup will get focus before any of its descendants. |
afterDescendants | 1 | The ViewGroup will get focus only if none of its descendants want it. |
blocksDescendants | 2 | The ViewGroup will block its descendants from receiving focus. |
This corresponds to the global attribute resource symbol descendantFocusability
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layoutAnimation
.
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 is the cache is created over and over again. By default the persistence is set to scrolling.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
none | 0x0 | The drawing cache is not persisted after use. |
animation | 0x1 | The drawing cache is persisted after a layout animation. |
scrolling | 0x2 | The drawing cache is persisted after a scroll. |
all | 0x3 | The drawing cache is always persisted. |
This corresponds to the global attribute resource symbol persistentDrawingCache
.
A ViewStub
lets you lazily include other XML layouts
inside your application at runtime.
Includes the following attributes:
Attribute | Description |
---|---|
| Overrides the id of the inflated View with this value. |
| Supply an identifier for the layout resource to inflate when the ViewStub becomes visible or when forced to do so. |
Overrides the id of the inflated View with this value.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol inflatedId
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout
.
Attributes that can be used with a ViewSwitcher.
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 to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol background
.
Defines whether this view reacts to click events.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol clickable
.
Defines text that briefly describes content of the view. This property is used primarily for accessibility. Since some views do not have textual representation this attribute can be used for providing such.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol contentDescription
.
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.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
auto | 0 | Lets the framework decide what quality level should be used for the drawing cache. |
low | 1 | Low quality. When set to low quality, the drawing cache uses a lower color depth, thus losing precision in rendering gradients, but uses less memory. |
high | 2 | High quality. When set to high quality, the drawing cache uses a higher color depth but uses more memory. |
This corresponds to the global attribute resource symbol drawingCacheQuality
.
When this attribute is set to true, the view gets its drawable state (focused, pressed, etc.) from its direct parent rather than from itself.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol duplicateParentState
.
Defines whether to fade out scrollbars when they are not in use.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol fadeScrollbars
.
Defines which edges should be fadeded on scrolling.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
none | 0x00000000 | No edge is faded. |
horizontal | 0x00001000 | Fades horizontal edges only. |
vertical | 0x00002000 | Fades vertical edges only. |
This corresponds to the global attribute resource symbol fadingEdge
.
Defines the length of the fading edges.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol fadingEdgeLength
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol fitsSystemWindows
.
Boolean that controls whether a view can take focus. By default the user can not
move focus to a view; by setting this attribute to true the view is
allowed to take focus. This value does not impact the behavior of
directly calling requestFocus()
, which will
always request focus regardless of this view. It only impacts where
focus navigation will try to move focus.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol focusable
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol focusableInTouchMode
.
Boolean that controls whether a view should have haptic feedback enabled for events such as long presses.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol hapticFeedbackEnabled
.
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)
.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol id
.
Set this if the view will serve as a scrolling container, meaing 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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol isScrollContainer
.
Controls whether the view's window should keep the screen on while visible.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol keepScreenOn
.
Defines whether this view reacts to long click events.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol longClickable
.
Defines the minimum height of the view. It is not guaranteed the view will be able to achieve this minimum height (for example, if its parent layout constrains it with less available height).
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol minHeight
.
Defines the minimum width of the view. It is not guaranteed the view will be able to achieve this minimum width (for example, if its parent layout constrains it with less available width).
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol minWidth
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol nextFocusDown
.
Defines the next view to give focus to when the next focus is
FOCUS_LEFT
.
If the reference refers to a view that does not exist or is part
of a hierarchy that is invisible, a RuntimeException
will result when the reference is accessed.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol nextFocusLeft
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol nextFocusRight
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol nextFocusUp
.
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).
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol onClick
.
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. A views size
will include it's 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.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol padding
.
Sets the padding, in pixels, of the bottom edge; see padding
.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol paddingBottom
.
Sets the padding, in pixels, of the left edge; see padding
.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol paddingLeft
.
Sets the padding, in pixels, of the right edge; see padding
.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol paddingRight
.
Sets the padding, in pixels, of the top edge; see padding
.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol paddingTop
.
If unset, 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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol saveEnabled
.
The initial horizontal scroll offset, in pixels.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol scrollX
.
The initial vertical scroll offset, in pixels.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol scrollY
.
Defines whether the horizontal scrollbar track should always be drawn.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol scrollbarAlwaysDrawHorizontalTrack
.
Defines whether the vertical scrollbar track should always be drawn.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol scrollbarAlwaysDrawVerticalTrack
.
Defines the delay in milliseconds that a scrollbar waits before fade out.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol scrollbarDefaultDelayBeforeFade
.
Defines the delay in milliseconds that a scrollbar takes to fade out.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol scrollbarFadeDuration
.
Sets the width of vertical scrollbars and height of horizontal scrollbars.
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol scrollbarSize
.
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.
Constant | Value | Description |
---|---|---|
insideOverlay | 0x0 | Inside the padding and overlaid |
insideInset | 0x01000000 | Inside the padding and inset |
outsideOverlay | 0x02000000 | Edge of the view and overlaid |
outsideInset | 0x03000000 | Edge of the view and inset |
This corresponds to the global attribute resource symbol scrollbarStyle
.
Defines the horizontal scrollbar thumb drawable.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol scrollbarThumbHorizontal
.
Defines the vertical scrollbar thumb drawable.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol scrollbarThumbVertical
.
Defines the horizontal scrollbar track drawable.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol scrollbarTrackHorizontal
.
Defines the vertical scrollbar track drawable.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol scrollbarTrackVertical
.
Defines which scrollbars should be displayed on scrolling or not.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
none | 0x00000000 | No scrollbar is displayed. |
horizontal | 0x00000100 | Displays horizontal scrollbar only. |
vertical | 0x00000200 | Displays vertical scrollbar only. |
This corresponds to the global attribute resource symbol scrollbars
.
Boolean that controls whether a view should have sound effects enabled for events such as clicking and touching.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol soundEffectsEnabled
.
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.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol tag
.
Controls the initial visibility of the view.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
visible | 0 | Visible on screen; the default value. |
invisible | 1 | Not displayed, but taken into account during layout (space is left for it). |
gone | 2 | Completely hidden, as if the view had not been added. |
This corresponds to the global attribute resource symbol visibility
.
Base attributes available to VolumePreference.
Includes the following attributes:
Attribute | Description |
---|---|
| Different audio stream types. |
Different audio stream types.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
voice | 0 | |
system | 1 | |
ring | 2 | |
music | 3 | |
alarm | 4 |
This corresponds to the global attribute resource symbol streamType
.
Use wallpaper
as the root tag of the XML resource that
describes an
WallpaperService
, which is
referenced from its
SERVICE_META_DATA
meta-data entry. Described here are the attributes that can be
included in that tag.
Includes the following attributes:
Attribute | Description |
---|---|
| Name of the author of this component, e. |
| Short description of the component's purpose or behavior. |
| Component name of an activity that allows the user to modify the current settings for this wallpaper. |
| Reference to a the wallpaper's thumbnail bitmap. |
Name of the author of this component, e.g. Google.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol author
.
Short description of the component's purpose or behavior.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol description
.
Component name of an activity that allows the user to modify the current settings for this wallpaper.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol settingsActivity
.
Reference to a the wallpaper's thumbnail bitmap.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol thumbnail
.
The set of attributes that describe a Windows's theme.
Includes the following attributes:
Attribute | Description |
---|---|
| Default background dim amount when a menu, dialog, or something similar pops up. |
| Control whether dimming behind the window is enabled. |
| Color of text (usually same as colorForeground). |
| Reference to a style resource holding
the set of window animations to use, which can be
any of the attributes defined by
WindowAnimation . |
| Drawable to use as the overall window background. |
| This Drawable is overlaid over the foreground of the Window's content area, usually to place a shadow below the title. |
| Flag allowing you to disable the preview animation for a window. |
| Drawable to use as a frame around the window. |
| Flag indicating whether this window should fill the entire screen. |
| Flag indicating whether this is a floating window. |
| Flag indicating whether this is a translucent window. |
| Flag indicating that this window should not be displayed at all. |
| Flag indicating whether there should be no title on this window. |
| Flag indicating that this window's background should be the user's current wallpaper. |
| Defines the default soft input state that this window would like when it is displayed. |
Window_backgroundDimAmount
Window_backgroundDimEnabled
Window_textColor
Window_windowAnimationStyle
Window_windowBackground
Window_windowContentOverlay
Window_windowDisablePreview
Window_windowFrame
Window_windowFullscreen
Window_windowIsFloating
Window_windowIsTranslucent
Window_windowNoDisplay
Window_windowNoTitle
Window_windowShowWallpaper
Window_windowSoftInputMode
Window animation class attributes.
Includes the following attributes:
Attribute | Description |
---|---|
| When closing the current activity, this is the animation that is run on the next activity (which is entering the screen). |
| When closing the current activity, this is the animation that is run on the current activity (which is exiting the screen). |
| When opening a new activity, this is the animation that is run on the next activity (which is entering the screen). |
| When opening a new activity, this is the animation that is run on the previous activity (which is exiting the screen). |
| 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). |
| 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). |
| 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). |
| 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). |
| 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). |
| 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). |
| 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). |
| 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). |
| 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). |
| 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). |
| 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). |
| 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). |
| 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). |
| The animation used when a window is being added. |
| The animation used when a window is being removed. |
| The animation used when a window is going from VISIBLE to INVISIBLE. |
| The animation used when a window is going from INVISIBLE to VISIBLE. |
WindowAnimation_activityCloseEnterAnimation
WindowAnimation_activityCloseExitAnimation
WindowAnimation_activityOpenEnterAnimation
WindowAnimation_activityOpenExitAnimation
WindowAnimation_taskCloseEnterAnimation
WindowAnimation_taskCloseExitAnimation
WindowAnimation_taskOpenEnterAnimation
WindowAnimation_taskOpenExitAnimation
WindowAnimation_taskToBackEnterAnimation
WindowAnimation_taskToBackExitAnimation
WindowAnimation_taskToFrontEnterAnimation
WindowAnimation_taskToFrontExitAnimation
WindowAnimation_wallpaperCloseEnterAnimation
WindowAnimation_wallpaperCloseExitAnimation
WindowAnimation_wallpaperIntraCloseEnterAnimation
WindowAnimation_wallpaperIntraCloseExitAnimation
WindowAnimation_wallpaperIntraOpenEnterAnimation
WindowAnimation_wallpaperIntraOpenExitAnimation
WindowAnimation_wallpaperOpenEnterAnimation
WindowAnimation_wallpaperOpenExitAnimation
WindowAnimation_windowEnterAnimation
WindowAnimation_windowExitAnimation
WindowAnimation_windowHideAnimation
WindowAnimation_windowShowAnimation
When closing the current activity, this is the animation that is run on the next activity (which is entering the screen).
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol activityCloseEnterAnimation
.
When closing the current activity, this is the animation that is run on the current activity (which is exiting the screen).
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol activityCloseExitAnimation
.
When opening a new activity, this is the animation that is run on the next activity (which is entering the screen).
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol activityOpenEnterAnimation
.
When opening a new activity, this is the animation that is run on the previous activity (which is exiting the screen).
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol activityOpenExitAnimation
.
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).
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol taskCloseEnterAnimation
.
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).
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol taskCloseExitAnimation
.
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).
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol taskOpenEnterAnimation
.
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).
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol taskOpenExitAnimation
.
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).
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol taskToBackEnterAnimation
.
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).
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol taskToBackExitAnimation
.
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).
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol taskToFrontEnterAnimation
.
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).
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol taskToFrontExitAnimation
.
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).
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol wallpaperCloseEnterAnimation
.
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).
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol wallpaperCloseExitAnimation
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol 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 current activity (which is exiting the screen). The wallpaper remains static behind the animation.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol wallpaperIntraCloseExitAnimation
.
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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol 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 current activity (which is exiting the screen). The wallpaper remains static behind the animation.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol wallpaperIntraOpenExitAnimation
.
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).
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol 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 current activity (which is exiting the screen).
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol wallpaperOpenExitAnimation
.
The animation used when a window is being added.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol windowEnterAnimation
.
The animation used when a window is being removed.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol windowExitAnimation
.
The animation used when a window is going from VISIBLE to INVISIBLE.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol windowHideAnimation
.
The animation used when a window is going from INVISIBLE to VISIBLE.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol windowShowAnimation
.
Default background dim amount when a menu, dialog, or something similar pops up.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol backgroundDimAmount
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol backgroundDimEnabled
.
Color of text (usually same as colorForeground).
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
This corresponds to the global attribute resource symbol textColor
.
Reference to a style resource holding
the set of window animations to use, which can be
any of the attributes defined by
WindowAnimation
.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol windowAnimationStyle
.
Drawable to use as the overall window background. There are a few special considerations you should use when settings this drawable:
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol windowBackground
.
This Drawable is overlaid over the foreground of the Window's content area, usually to place a shadow below the title.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol windowContentOverlay
.
Flag allowing you to disable the preview animation for a window. The default value is false; if set to true, the system can never use the window's theme to show a preview of it before your actual instance is shown to the user.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol windowDisablePreview
.
Drawable to use as a frame around the window.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol windowFrame
.
Flag indicating whether this window should fill the entire screen.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol windowFullscreen
.
Flag indicating whether this is a floating window.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol windowIsFloating
.
Flag indicating whether this is a translucent window.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol windowIsTranslucent
.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol windowNoDisplay
.
Flag indicating whether there should be no title on this window.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol windowNoTitle
.
Flag indicating that this window's background should be the user's current wallpaper.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol windowShowWallpaper
.
Defines the default soft input state that this window would like when it is displayed.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
stateUnspecified | 0 | Not specified, use what the system thinks is best. This is the default. |
stateUnchanged | 1 | Leave the soft input window as-is, in whatever state it last was. |
stateHidden | 2 | Make the soft input area hidden when normally appropriate (when the user is navigating forward to your window). |
stateAlwaysHidden | 3 | Always make the soft input area hidden when this window has input focus. |
stateVisible | 4 | Make the soft input area visible when normally appropriate (when the user is navigating forward to your window). |
stateAlwaysVisible | 5 | Always make the soft input area visible when this window has input focus. |
adjustUnspecified | 0x00 | The 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. |
adjustResize | 0x10 | Always resize the window: the content area of the window is reduced to make room for the soft input area. |
adjustPan | 0x20 | Don'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. |
This corresponds to the global attribute resource symbol windowSoftInputMode
.