java.lang.Object | |
↳ | android.R.attr |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | absListViewStyle | Default AbsListView style. | |||||||||
int | accountPreferences | A preferences.xml file for authenticator-specific settings. | |||||||||
int | accountType | The account type this authenticator handles. | |||||||||
int | action | The action name to assign to the Intent, as per
Intent.setAction() . |
|||||||||
int | actionBarSize | Size of the Action Bar, including the contextual bar used to present Action Modes. | |||||||||
int | actionBarStyle | Reference to a style for the Action Bar
Must be a reference to another resource, in the form " |
|||||||||
int | actionBarTabBarStyle | Must be a reference to another resource, in the form " |
|||||||||
int | actionBarTabStyle | Default style for tabs within an action bar
Must be a reference to another resource, in the form " |
|||||||||
int | actionBarTabTextStyle | Must be a reference to another resource, in the form " |
|||||||||
int | actionButtonStyle | Default action button style. | |||||||||
int | actionDropDownStyle | Default ActionBar dropdown style. | |||||||||
int | actionLayout | An optional layout to be used as an action view. | |||||||||
int | actionMenuTextAppearance | TextAppearance style that will be applied to text that appears within action menu items. | |||||||||
int | actionMenuTextColor | Color for text that appears within action menu items. | |||||||||
int | actionModeBackground | Background drawable to use for action mode UI
Must be a reference to another resource, in the form " |
|||||||||
int | actionModeCloseButtonStyle | Must be a reference to another resource, in the form " |
|||||||||
int | actionModeCloseDrawable | Drawable to use for the close action mode button
Must be a reference to another resource, in the form " |
|||||||||
int | actionModeCopyDrawable | Drawable to use for the Copy action button in Contextual Action Bar
Must be a reference to another resource, in the form " |
|||||||||
int | actionModeCutDrawable | Drawable to use for the Cut action button in Contextual Action Bar
Must be a reference to another resource, in the form " |
|||||||||
int | actionModePasteDrawable | Drawable to use for the Paste action button in Contextual Action Bar
Must be a reference to another resource, in the form " |
|||||||||
int | actionOverflowButtonStyle | Must be a reference to another resource, in the form " |
|||||||||
int | actionViewClass | The name of an optional View class to instantiate and use as an action view. | |||||||||
int | activatedBackgroundIndicator | Drawable used as a background for activated items. | |||||||||
int | activityCloseEnterAnimation | When closing the current activity, this is the animation that is run on the next activity (which is entering the screen). | |||||||||
int | activityCloseExitAnimation | When closing the current activity, this is the animation that is run on the current activity (which is exiting the screen). | |||||||||
int | activityOpenEnterAnimation | When opening a new activity, this is the animation that is run on the next activity (which is entering the screen). | |||||||||
int | activityOpenExitAnimation | When opening a new activity, this is the animation that is run on the previous activity (which is exiting the screen). | |||||||||
int | addStatesFromChildren | Sets whether this ViewGroup's drawable states also include its children's drawable states. | |||||||||
int | adjustViewBounds | Set this to true if you want the ImageView to adjust its bounds to preserve the aspect ratio of its drawable. | |||||||||
int | alertDialogIcon | Icon drawable to use for alerts
Must be a reference to another resource, in the form " |
|||||||||
int | alertDialogStyle | Must be a reference to another resource, in the form " |
|||||||||
int | alertDialogTheme | Theme to use for alert dialogs spawned from this theme. | |||||||||
int | allContactsName | Resource representing the term "All Contacts" (e.g. | |||||||||
int | allowBackup | Whether to allow the application to participate in backup infrastructure. | |||||||||
int | allowClearUserData | Option to let applications specify that user data can/cannot be cleared. | |||||||||
int | allowParallelSyncs | Set to true to tell the SyncManager that this SyncAdapter supports multiple simultaneous syncs for the same account type and authority. | |||||||||
int | allowSingleTap | Indicates whether the drawer can be opened/closed by a single tap on the handle. | |||||||||
int | allowTaskReparenting | Specify that an activity can be moved out of a task it is in to the task it has an affinity for when appropriate. | |||||||||
int | alpha | alpha property of the view, as a value between 0 (completely transparent) and 1 (completely opaque). | |||||||||
int | alphabeticShortcut | The alphabetic shortcut key. | |||||||||
int | alwaysDrawnWithCache | Defines whether the ViewGroup should always draw its children using their drawing cache or not. | |||||||||
int | alwaysRetainTaskState | Specify whether an 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 | angle | Must be a floating point value, such as " |
|||||||||
int | animateFirstView | Defines whether to animate the current View when the ViewAnimation is first displayed. | |||||||||
int | animateLayoutChanges | Defines whether changes in layout (caused by adding and removing items) should cause a LayoutTransition to run. | |||||||||
int | animateOnClick | Indicates whether the drawer should be opened/closed with an animation when the user clicks the handle. | |||||||||
int | animation | Animation to use on each child. | |||||||||
int | animationCache | Defines whether layout animations should create a drawing cache for their children. | |||||||||
int | animationDuration | Sets how long a transition animation should run (in milliseconds) when layout has changed. | |||||||||
int | animationOrder | The order in which the animations will be started. | |||||||||
int | animationResolution | Timeout between frames of animation in milliseconds
Must be an integer value, such as " |
|||||||||
int | antialias | Enables or disables antialiasing. | |||||||||
int | anyDensity | Indicates whether the application can accommodate any screen density. | |||||||||
int | apiKey | Value is a string that specifies the Maps API Key to use. | |||||||||
int | author | Name of the author of this component, e.g. | |||||||||
int | authorities | Specify the authorities under which this content provider can be found. | |||||||||
int | autoAdvanceViewId | The view id of the AppWidget subview which should be auto-advanced. | |||||||||
int | autoCompleteTextViewStyle | Default AutoCompleteTextView style. | |||||||||
int | autoLink | Controls whether links such as urls and email addresses are automatically found and converted to clickable links. | |||||||||
int | autoStart | When true, automatically start animating
Must be a boolean value, either " |
|||||||||
int | autoText | This constant is deprecated. Use inputType instead. | |||||||||
int | autoUrlDetect | If provided and true , URLs entered in the search dialog while searching
within this activity would be detected and treated as URLs (show a 'go' button in the
keyboard and invoke the browser directly when user launches the URL instead of passing
the URL to the activity). |
|||||||||
int | background | A drawable to use as the background. | |||||||||
int | backgroundDimAmount | Default background dim amount when a menu, dialog, or something similar pops up. | |||||||||
int | backgroundDimEnabled | Control whether dimming behind the window is enabled. | |||||||||
int | backupAgent | The name of the class subclassing BackupAgent to manage
backup and restore of the application's data on external storage. |
|||||||||
int | baseline | The offset of the baseline within this view. | |||||||||
int | baselineAlignBottom | If true, the image view will be baseline aligned with based on its bottom edge. | |||||||||
int | baselineAligned | When set to false, prevents the layout from aligning its children's baselines. | |||||||||
int | baselineAlignedChildIndex | When a linear layout is part of another layout that is baseline aligned, it can specify which of its children to baseline align to (that is, which child TextView). | |||||||||
int | borderlessButtonStyle | Style for buttons without an explicit border, often used in groups. | |||||||||
int | bottom | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | bottomBright | May be a reference to another resource, in the form " |
|||||||||
int | bottomDark | May be a reference to another resource, in the form " |
|||||||||
int | bottomLeftRadius | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | bottomMedium | May be a reference to another resource, in the form " |
|||||||||
int | bottomOffset | Extra offset for the handle at the bottom of the SlidingDrawer. | |||||||||
int | bottomRightRadius | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | breadCrumbShortTitle | The short title for the bread crumb of this item. | |||||||||
int | breadCrumbTitle | The title for the bread crumb of this item. | |||||||||
int | bufferType | Determines the minimum type that getText() will return. | |||||||||
int | button | Drawable used for the button graphic (e.g. | |||||||||
int | buttonBarButtonStyle | Style for buttons within button bars
Must be a reference to another resource, in the form " |
|||||||||
int | buttonBarStyle | Style for button bars
Must be a reference to another resource, in the form " |
|||||||||
int | buttonStyle | Normal Button style. | |||||||||
int | buttonStyleInset | Button style to inset into an EditText. | |||||||||
int | buttonStyleSmall | Small Button style. | |||||||||
int | buttonStyleToggle | ToggleButton style. | |||||||||
int | cacheColorHint | Indicates that this list will always be drawn on top of solid, single-color opaque background. | |||||||||
int | calendarViewShown | Whether the calendar view is shown. | |||||||||
int | calendarViewStyle | The CalndarView style. | |||||||||
int | candidatesTextStyleSpans | A styled string, specifying the style to be used for showing inline candidate text when composing with an input method. | |||||||||
int | capitalize | This constant is deprecated. Use inputType instead. | |||||||||
int | centerBright | May be a reference to another resource, in the form " |
|||||||||
int | centerColor | Optional center color. | |||||||||
int | centerDark | May be a reference to another resource, in the form " |
|||||||||
int | centerMedium | May be a reference to another resource, in the form " |
|||||||||
int | centerX | May be a floating point value, such as " |
|||||||||
int | centerY | May be a floating point value, such as " |
|||||||||
int | checkBoxPreferenceStyle | Default style for CheckBoxPreference. | |||||||||
int | checkMark | Drawable used for the check mark graphic. | |||||||||
int | checkable | Whether the item is capable of displaying a check mark. | |||||||||
int | checkableBehavior | Whether the items are capable of displaying a check mark. | |||||||||
int | checkboxStyle | Default Checkbox style. | |||||||||
int | checked | Indicates the initial checked state of this button. | |||||||||
int | checkedButton | The id of the child radio button that should be checked by default within this radio group. | |||||||||
int | childDivider | Drawable or color that is used as a divider for children. | |||||||||
int | childIndicator | Indicator shown beside the child View. | |||||||||
int | childIndicatorLeft | The left bound for a child's indicator. | |||||||||
int | childIndicatorRight | The right bound for a child's indicator. | |||||||||
int | choiceMode | Defines the choice behavior for the view. | |||||||||
int | clearTaskOnLaunch | Specify whether an activity's task should be cleared when it is re-launched from the home screen. | |||||||||
int | clickable | Defines whether this view reacts to click events. | |||||||||
int | clipChildren | Defines whether a child is limited to draw inside of its bounds or not. | |||||||||
int | clipOrientation | The orientation for the clip. | |||||||||
int | clipToPadding | Defines whether the ViewGroup will clip its drawing surface so as to exclude the padding area. | |||||||||
int | codes | The unicode value or comma-separated values that this key outputs. | |||||||||
int | collapseColumns | The zero-based index of the columns to collapse. | |||||||||
int | color | Must be a color value, in the form of " |
|||||||||
int | colorBackground | Color that matches (as closely as possible) the window background. | |||||||||
int | colorBackgroundCacheHint | This is a hint for a solid color that can be used for caching rendered views. | |||||||||
int | colorForeground | Default color of foreground imagery. | |||||||||
int | colorForegroundInverse | Default color of foreground imagery on an inverted background. | |||||||||
int | columnDelay | Fraction of the animation duration used to delay the beginning of the animation of each column. | |||||||||
int | columnWidth | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | completionHint | Defines the hint displayed in the drop down menu. | |||||||||
int | completionHintView | Defines the hint view displayed in the drop down menu. | |||||||||
int | completionThreshold | Defines the number of characters that the user must type before completion suggestions are displayed in a drop down menu. | |||||||||
int | configChanges | Specify one or more configuration changes that the activity will handle itself. | |||||||||
int | configure | A class name in the AppWidget's package to be launched to configure. | |||||||||
int | constantSize | If true, the drawable's reported internal size will remain constant as the state changes; the size is the maximum of all of the states. | |||||||||
int | content | Identifier for the child that represents the drawer's content. | |||||||||
int | contentAuthority | the authority of a content provider. | |||||||||
int | contentDescription | Defines text that briefly describes content of the view. | |||||||||
int | cropToPadding | If true, the image will be cropped to fit within its padding. | |||||||||
int | cursorVisible | Makes the cursor visible (the default) or invisible. | |||||||||
int | customNavigationLayout | Specifies a layout for custom navigation. | |||||||||
int | customTokens | Account handles its own token storage and permissions. | |||||||||
int | cycles | Must be a floating point value, such as " |
|||||||||
int | dashGap | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | dashWidth | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | data | The data URI to assign to the Intent, as per
Intent.setData() . |
|||||||||
int | datePickerStyle | The DatePicker style. | |||||||||
int | dateTextAppearance | The text appearance for the calendar dates. | |||||||||
int | debuggable | Flag indicating whether the application can be debugged, even when running on a device that is running in user mode. | |||||||||
int | defaultValue | The default value for the preference, which will be set either if persistence is off or persistence is on and the preference is not found in the persistent storage. | |||||||||
int | delay | Fraction of the animation duration used to delay the beginning of the animation of each child. | |||||||||
int | dependency | The key of another Preference that this Preference will depend on. | |||||||||
int | descendantFocusability | Defines the relationship between the ViewGroup and its descendants when looking for a View to take focus. | |||||||||
int | description | Descriptive text for the associated data. | |||||||||
int | detachWallpaper | Special option for window animations: if this window is on top of a wallpaper, don't animate the wallpaper with it. | |||||||||
int | detailColumn | Column in data table that contains details for this data. | |||||||||
int | detailSocialSummary | Flag indicating that detail should be built from SocialProvider. | |||||||||
int | detailsElementBackground | Background that can be used behind parts of a UI that provide details on data the user is selecting. | |||||||||
int | dial | Must be a reference to another resource, in the form " |
|||||||||
int | dialogIcon | The icon for the dialog. | |||||||||
int | dialogLayout | A layout to be used as the content View for the dialog. | |||||||||
int | dialogMessage | The message in the dialog. | |||||||||
int | dialogPreferenceStyle | Default style for DialogPreference. | |||||||||
int | dialogTheme | Theme to use for dialogs spawned from this theme. | |||||||||
int | dialogTitle | The title in the dialog. | |||||||||
int | digits | If set, specifies that this TextView has a numeric input method and that these specific characters are the ones that it will accept. | |||||||||
int | direction | Direction of the animation in the grid. | |||||||||
int | directionPriority | Priority of the rows and columns. | |||||||||
int | disableDependentsState | The state (true for on, or false for off) that causes dependents to be disabled. | |||||||||
int | disabledAlpha | Default disabled alpha for widgets that set enabled/disabled alpha programmatically. | |||||||||
int | displayOptions | Options affecting how the action bar is displayed. | |||||||||
int | dither | Enables or disables dithering of the bitmap if the bitmap does not have the same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with an RGB 565 screen). | |||||||||
int | divider | Drawable or color to draw between list items. | |||||||||
int | dividerHeight | Height of the divider. | |||||||||
int | dividerHorizontal | Drawable to use for generic horizontal dividers. | |||||||||
int | dividerPadding | Size of padding on either end of a divider. | |||||||||
int | dividerVertical | Drawable to use for generic vertical dividers. | |||||||||
int | drawSelectorOnTop | When set to true, the selector will be drawn over the selected item. | |||||||||
int | drawable | Reference to a drawable resource to use for the frame. | |||||||||
int | drawableBottom | The drawable to be drawn below the text. | |||||||||
int | drawableLeft | The drawable to be drawn to the left of the text. | |||||||||
int | drawablePadding | The padding between the drawables and the text. | |||||||||
int | drawableRight | The drawable to be drawn to the right of the text. | |||||||||
int | drawableTop | The drawable to be drawn above the text. | |||||||||
int | drawingCacheQuality | Defines the quality of translucent drawing caches. | |||||||||
int | dropDownAnchor | View to anchor the auto-complete dropdown to. | |||||||||
int | dropDownHeight | Specifies the basic height of the dropdown. | |||||||||
int | dropDownHintAppearance | Default style for drop down hints. | |||||||||
int | dropDownHorizontalOffset | Amount of pixels by which the drop down should be offset horizontally. | |||||||||
int | dropDownItemStyle | Default style for drop down items. | |||||||||
int | dropDownListViewStyle | Default ListView style for drop downs. | |||||||||
int | dropDownSelector | Selector in a drop down list. | |||||||||
int | dropDownSpinnerStyle | Default dropdown Spinner style. | |||||||||
int | dropDownVerticalOffset | Amount of pixels by which the drop down should be offset vertically. | |||||||||
int | dropDownWidth | Specifies the basic width of the dropdown. | |||||||||
int | duplicateParentState | When this attribute is set to true, the view gets its drawable state (focused, pressed, etc.) from its direct parent rather than from itself. | |||||||||
int | duration | Amount of time (in milliseconds) to display this frame. | |||||||||
int | editTextBackground | EditText background drawable. | |||||||||
int | editTextColor | EditText text foreground color. | |||||||||
int | editTextPreferenceStyle | Default style for EditTextPreference. | |||||||||
int | editTextStyle | Default EditText style. | |||||||||
int | editable | This constant is deprecated. Use inputType instead. | |||||||||
int | editorExtras | Reference to an
<input-extras>
XML resource containing additional data to
supply to an input method, which is private to the implementation
of the input method. |
|||||||||
int | ellipsize | Where to ellipsize text. | |||||||||
int | ems | Makes the TextView be exactly this many ems wide. | |||||||||
int | enabled | This constant is deprecated. Use state_enabled instead | |||||||||
int | endColor | Must be a color value, in the form of " |
|||||||||
int | endYear | The last year (inclusive), for example "2010". | |||||||||
int | enterFadeDuration | Amount of time (in milliseconds) to fade in a new state drawable. | |||||||||
int | entries | Reference to an array resource that will populate a list/adapter. | |||||||||
int | entryValues | The array to find the value to save for a preference when an entry from entries is selected. | |||||||||
int | eventsInterceptionEnabled | Defines whether the overlay should intercept the motion events when a gesture is recognized. | |||||||||
int | excludeFromRecents | Indicates that an Activity should be excluded from the list of recently launched activities. | |||||||||
int | exitFadeDuration | Amount of time (in milliseconds) to fade out an old state drawable. | |||||||||
int | expandableListPreferredChildIndicatorLeft | The preferred left bound for an expandable list child's indicator. | |||||||||
int | expandableListPreferredChildIndicatorRight | The preferred right bound for an expandable list child's indicator. | |||||||||
int | expandableListPreferredChildPaddingLeft | The preferred left padding for an expandable list item that is a child. | |||||||||
int | expandableListPreferredItemIndicatorLeft | The preferred left bound for an expandable list item's indicator. | |||||||||
int | expandableListPreferredItemIndicatorRight | The preferred right bound for an expandable list item's indicator. | |||||||||
int | expandableListPreferredItemPaddingLeft | The preferred left padding for an expandable list item (for child-specific layouts, use expandableListPreferredChildPaddingLeft). | |||||||||
int | expandableListViewStyle | Default ExpandableListView style. | |||||||||
int | expandableListViewWhiteStyle | ExpandableListView with white background. | |||||||||
int | exported | Flag indicating whether the given application component is available to other applications. | |||||||||
int | extraTension | This is the amount by which to multiply the tension. | |||||||||
int | factor | This is the amount of deceleration to add when easing in. | |||||||||
int | fadeDuration | Duration, in milliseconds, of the fade out effect after the user is done drawing a gesture. | |||||||||
int | fadeEnabled | Defines whether the gesture will automatically fade out after being recognized. | |||||||||
int | fadeOffset | Time, in milliseconds, to wait before the gesture fades out after the user is done drawing it. | |||||||||
int | fadeScrollbars | Defines whether to fade out scrollbars when they are not in use. | |||||||||
int | fadingEdge | Defines which edges should be fadeded on scrolling. | |||||||||
int | fadingEdgeLength | Defines the length of the fading edges. | |||||||||
int | fastScrollAlwaysVisible | When set to true, the list will always show the fast scroll interface. | |||||||||
int | fastScrollEnabled | Enables the fast scroll thumb that can be dragged to quickly scroll through the list. | |||||||||
int | fastScrollOverlayPosition | Position of the fast scroll index overlay window. | |||||||||
int | fastScrollPreviewBackgroundLeft | Drawable to use as the fast scroll index preview window background when shown on the left. | |||||||||
int | fastScrollPreviewBackgroundRight | Drawable to use as the fast scroll index preview window background when shown on the right. | |||||||||
int | fastScrollTextColor | Text color for the fast scroll index overlay. | |||||||||
int | fastScrollThumbDrawable | Drawable to use as the fast scroll thumb. | |||||||||
int | fastScrollTrackDrawable | Drawable to use as the track for the fast scroll thumb. | |||||||||
int | fillAfter | When set to true, the animation transformation is applied after the animation is over. | |||||||||
int | fillBefore | When set to true, the animation transformation is applied before the animation has started. | |||||||||
int | fillEnabled | When set to true, fillAfter is taken into account. | |||||||||
int | fillViewport | Defines whether the scrollview should stretch its content to fill the viewport. | |||||||||
int | filter | Enables or disables bitmap filtering. | |||||||||
int | filterTouchesWhenObscured | Specifies whether to filter touches when the view's window is obscured by another visible window. | |||||||||
int | finishOnCloseSystemDialogs | Specify whether an activity should be finished when a "close system windows" request has been made. | |||||||||
int | finishOnTaskLaunch | Specify whether an activity should be finished when its task is brought to the foreground by relaunching from the home screen. | |||||||||
int | firstDayOfWeek | The first day of week according to Calendar . |
|||||||||
int | fitsSystemWindows | Boolean internal attribute to adjust view layout based on system windows such as the status bar. | |||||||||
int | flipInterval | Must be an integer value, such as " |
|||||||||
int | focusable | Boolean that controls whether a view can take focus. | |||||||||
int | focusableInTouchMode | Boolean that controls whether a view can take focus while in touch mode. | |||||||||
int | focusedMonthDateColor | The color for the dates of the selected month. | |||||||||
int | footerDividersEnabled | When set to false, the ListView will not draw the divider before each footer view. | |||||||||
int | foreground | Defines the drawable to draw over the content. | |||||||||
int | foregroundGravity | Defines the gravity to apply to the foreground drawable. | |||||||||
int | format | Format string: if specified, the Chronometer will display this string, with the first "%s" replaced by the current timer value in "MM:SS" or "H:MM:SS" form. | |||||||||
int | fragment | The fragment that is displayed when the user selects this item. | |||||||||
int | fragmentCloseEnterAnimation | Must be a reference to another resource, in the form " |
|||||||||
int | fragmentCloseExitAnimation | Must be a reference to another resource, in the form " |
|||||||||
int | fragmentFadeEnterAnimation | Must be a reference to another resource, in the form " |
|||||||||
int | fragmentFadeExitAnimation | Must be a reference to another resource, in the form " |
|||||||||
int | fragmentOpenEnterAnimation | Must be a reference to another resource, in the form " |
|||||||||
int | fragmentOpenExitAnimation | Must be a reference to another resource, in the form " |
|||||||||
int | freezesText | If set, the text view will include its current complete text inside of its frozen icicle in addition to meta-data such as the current cursor position. | |||||||||
int | fromAlpha | Must be a floating point value, such as " |
|||||||||
int | fromDegrees | Must be a floating point value, such as " |
|||||||||
int | fromXDelta | May be a floating point value, such as " |
|||||||||
int | fromXScale | May be a floating point value, such as " |
|||||||||
int | fromYDelta | May be a floating point value, such as " |
|||||||||
int | fromYScale | May be a floating point value, such as " |
|||||||||
int | fullBright | May be a reference to another resource, in the form " |
|||||||||
int | fullDark | May be a reference to another resource, in the form " |
|||||||||
int | functionalTest | Flag indicating that an Instrumentation class should be run as a functional test. | |||||||||
int | galleryItemBackground | The preferred background for gallery items. | |||||||||
int | galleryStyle | Default Gallery style. | |||||||||
int | gestureColor | Color used to draw a gesture. | |||||||||
int | gestureStrokeAngleThreshold | Minimum curve angle a stroke must contain before it is recognized as a gesture. | |||||||||
int | gestureStrokeLengthThreshold | Minimum length of a stroke before it is recognized as a gesture. | |||||||||
int | gestureStrokeSquarenessThreshold | Squareness threshold of a stroke before it is recognized as a gesture. | |||||||||
int | gestureStrokeType | Defines the type of strokes that define a gesture. | |||||||||
int | gestureStrokeWidth | Width of the stroke used to draw the gesture. | |||||||||
int | glEsVersion | The GLES driver version number needed by an application. | |||||||||
int | gradientRadius | May be a floating point value, such as " |
|||||||||
int | grantUriPermissions | If true, the Context.grantUriPermission or corresponding Intent flags can
be used to allow others to access specific URIs in the content
provider, even if they do not have an explicit read or write
permission. |
|||||||||
int | gravity | Specifies how to place the content of an object, both on the x- and y-axis, within the object itself. | |||||||||
int | gridViewStyle | Default GridView style. | |||||||||
int | groupIndicator | Indicator shown beside the group View. | |||||||||
int | hand_hour | Must be a reference to another resource, in the form " |
|||||||||
int | hand_minute | Must be a reference to another resource, in the form " |
|||||||||
int | handle | Identifier for the child that represents the drawer's handle. | |||||||||
int | handleProfiling | Flag indicating that an Instrumentation class wants to take care of starting/stopping profiling itself, rather than relying on the default behavior of profiling the complete time it is running. | |||||||||
int | hapticFeedbackEnabled | Boolean that controls whether a view should have haptic feedback enabled for events such as long presses. | |||||||||
int | hardwareAccelerated | Flag indicating whether the application's rendering should be hardware accelerated if possible. |
|||||||||
int | hasCode | Indicate whether this application contains code. | |||||||||
int | headerBackground | Default background for the menu header. | |||||||||
int | headerDividersEnabled | When set to false, the ListView will not draw the divider after each header view. | |||||||||
int | height | Makes the TextView be exactly this many pixels tall. | |||||||||
int | hint | Hint text to display when the text is empty. | |||||||||
int | homeAsUpIndicator | Specifies a drawable to use for the 'home as up' indicator. | |||||||||
int | homeLayout | Specifies a layout to use for the "home" section of the action bar. | |||||||||
int | horizontalDivider | Default horizontal divider between rows of menu items. | |||||||||
int | horizontalGap | Default horizontal gap between keys. | |||||||||
int | horizontalScrollViewStyle | Default HorizontalScrollView style. | |||||||||
int | horizontalSpacing | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | host | Specify a URI authority host that is handled, as per
IntentFilter.addDataAuthority() . |
|||||||||
int | icon | A Drawable resource providing a graphical representation of its associated item. | |||||||||
int | iconPreview | The icon to show in the popup preview. | |||||||||
int | iconifiedByDefault | The default state of the SearchView. | |||||||||
int | id | Supply an identifier name for this view, to later retrieve it
with View.findViewById() or
Activity.findViewById() . |
|||||||||
int | ignoreGravity | Indicates what view should not be affected by gravity. | |||||||||
int | imageButtonStyle | The style resource to use for an ImageButton. | |||||||||
int | imageWellStyle | The style resource to use for an ImageButton that is an image well. | |||||||||
int | imeActionId | Supply a value for
EditorInfo.actionId
used when an input method is connected to the text view. |
|||||||||
int | imeActionLabel | Supply a value for
EditorInfo.actionLabel
used when an input method is connected to the text view. |
|||||||||
int | imeExtractEnterAnimation | Animation to use when showing the fullscreen extract UI after it had previously been hidden. | |||||||||
int | imeExtractExitAnimation | Animation to use when hiding the fullscreen extract UI after it had previously been shown. | |||||||||
int | imeFullscreenBackground | Background to use for entire input method when it is being shown in fullscreen mode with the extract view, to ensure that it completely covers the application. | |||||||||
int | imeOptions | Additional features you can enable in an IME associated with an editor to improve the integration with your application. | |||||||||
int | imeSubtypeExtraValue | The extra value of the subtype. | |||||||||
int | imeSubtypeLocale | The locale of the subtype. | |||||||||
int | imeSubtypeMode | The mode of the subtype. | |||||||||
int | immersive | Flag declaring this activity to be 'immersive'; immersive activities should not be interrupted with other activities or notifications. | |||||||||
int | inAnimation | Identifier for the animation to use when a view is shown. | |||||||||
int | includeFontPadding | Leave enough room for ascenders and descenders instead of using the font ascent and descent strictly. | |||||||||
int | includeInGlobalSearch | If provided and true , this searchable activity will be
included in any global lists of search targets. |
|||||||||
int | indeterminate | Allows to enable the indeterminate mode. | |||||||||
int | indeterminateBehavior | Defines how the indeterminate mode should behave when the progress reaches max. | |||||||||
int | indeterminateDrawable | Drawable used for the indeterminate mode. | |||||||||
int | indeterminateDuration | Duration of the indeterminate animation. | |||||||||
int | indeterminateOnly | Restricts to ONLY indeterminate mode (state-keeping progress mode will not work). | |||||||||
int | indeterminateProgressStyle | Specifies a style resource to use for an indeterminate progress spinner. | |||||||||
int | indicatorLeft | The left bound for an item's indicator. | |||||||||
int | indicatorRight | The right bound for an item's indicator. | |||||||||
int | inflatedId | Overrides the id of the inflated View with this value. | |||||||||
int | initOrder | Specify the order in which content providers hosted by a process are instantiated when that process is created. | |||||||||
int | initialLayout | A resource id of a layout. | |||||||||
int | innerRadius | Inner radius of the ring. | |||||||||
int | innerRadiusRatio | Inner radius of the ring expressed as a ratio of the ring's width. | |||||||||
int | inputMethod | This constant is deprecated. Use inputType instead. | |||||||||
int | inputType | The type of data being placed in a text field, used to help an input method decide how to let the user enter text. | |||||||||
int | insetBottom | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | insetLeft | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | insetRight | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | insetTop | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | installLocation | The default install location defined by an application. | |||||||||
int | interpolator | Must be a reference to another resource, in the form " |
|||||||||
int | isAlwaysSyncable | Set to true to tell the SyncManager to automatically call setIsSyncable(..., ..., 1) for the SyncAdapter instead of issuaing an initialization sync to the SyncAdapter. | |||||||||
int | isDefault | Set to true in all of the configurations for which this input method should be considered an option as the default. | |||||||||
int | isIndicator | Whether this rating bar is an indicator (and non-changeable by the user). | |||||||||
int | isModifier | Whether this is a modifier key such as Alt or Shift. | |||||||||
int | isRepeatable | Whether long-pressing on this key will make it repeat. | |||||||||
int | 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 | isSticky | Whether this is a toggle key. | |||||||||
int | itemBackground | Default background for each menu item. | |||||||||
int | itemIconDisabledAlpha | Default disabled icon alpha for each menu item that shows an icon. | |||||||||
int | itemPadding | Specifies padding that should be applied to the left and right sides of system-provided items in the bar. | |||||||||
int | itemTextAppearance | Default appearance of menu item text. | |||||||||
int | keepScreenOn | Controls whether the view's window should keep the screen on while visible. | |||||||||
int | key | The key to store the Preference value. | |||||||||
int | keyBackground | Image for the key. | |||||||||
int | keyEdgeFlags | Key edge flags. | |||||||||
int | keyHeight | Default height of a key, in pixels or percentage of display width. | |||||||||
int | keyIcon | The icon to display on the key instead of the label. | |||||||||
int | keyLabel | The label to display on the key. | |||||||||
int | keyOutputText | The string of characters to output when this key is pressed. | |||||||||
int | keyPreviewHeight | Height of the key press feedback popup. | |||||||||
int | keyPreviewLayout | Layout resource for key press feedback. | |||||||||
int | keyPreviewOffset | Vertical offset of the key press feedback from the key. | |||||||||
int | keyTextColor | Color to use for the label in a key. | |||||||||
int | keyTextSize | Size of the text for character keys. | |||||||||
int | keyWidth | Default width of a key, in pixels or percentage of display width. | |||||||||
int | keyboardMode | Mode of the keyboard. | |||||||||
int | keycode | This enum provides the same keycode values as can be found in
KeyEvent . |
|||||||||
int | killAfterRestore | Whether the application in question should be terminated after its settings have been restored during a full-system restore operation. | |||||||||
int | label | A user-legible name for the given item. | |||||||||
int | labelTextSize | Size of the text for custom keys with some text and no icon. | |||||||||
int | largeHeap | Request that your application's processes be created with a large Dalvik heap. | |||||||||
int | largeScreens | Indicates whether the application supports larger screen form-factors. | |||||||||
int | launchMode | Specify how an activity should be launched. | |||||||||
int | layerType | Specifies the type of layer backing this view. | |||||||||
int | layout | Supply an identifier for the layout resource to inflate when the ViewStub becomes visible or when forced to do so. | |||||||||
int | layoutAnimation | Defines the layout animation to use the first time the ViewGroup is laid out. | |||||||||
int | layout_above | Positions the bottom edge of this view above the given anchor view ID. | |||||||||
int | layout_alignBaseline | Positions the baseline of this view on the baseline of the given anchor view ID. | |||||||||
int | layout_alignBottom | Makes the bottom edge of this view match the bottom edge of the given anchor view ID. | |||||||||
int | layout_alignLeft | Makes the left edge of this view match the left edge of the given anchor view ID. | |||||||||
int | layout_alignParentBottom | If true, makes the bottom edge of this view match the bottom edge of the parent. | |||||||||
int | layout_alignParentLeft | If true, makes the left edge of this view match the left edge of the parent. | |||||||||
int | layout_alignParentRight | If true, makes the right edge of this view match the right edge of the parent. | |||||||||
int | layout_alignParentTop | If true, makes the top edge of this view match the top edge of the parent. | |||||||||
int | layout_alignRight | Makes the right edge of this view match the right edge of the given anchor view ID. | |||||||||
int | layout_alignTop | Makes the top edge of this view match the top edge of the given anchor view ID. | |||||||||
int | layout_alignWithParentIfMissing | If set to true, the parent will be used as the anchor when the anchor cannot be be found for layout_toLeftOf, layout_toRightOf, etc. | |||||||||
int | layout_below | Positions the top edge of this view below the given anchor view ID. | |||||||||
int | layout_centerHorizontal | If true, centers this child horizontally within its parent. | |||||||||
int | layout_centerInParent | If true, centers this child horizontally and vertically within its parent. | |||||||||
int | layout_centerVertical | If true, centers this child vertically within its parent. | |||||||||
int | layout_column | The index of the column in which this child should be. | |||||||||
int | layout_gravity | Standard gravity constant that a child can supply to its parent. | |||||||||
int | layout_height | Specifies the basic height of the view. | |||||||||
int | layout_margin | Specifies extra space on the left, top, right and bottom sides of this view. | |||||||||
int | layout_marginBottom | Specifies extra space on the bottom side of this view. | |||||||||
int | layout_marginLeft | Specifies extra space on the left side of this view. | |||||||||
int | layout_marginRight | Specifies extra space on the right side of this view. | |||||||||
int | layout_marginTop | Specifies extra space on the top side of this view. | |||||||||
int | layout_scale | Must be a floating point value, such as " |
|||||||||
int | layout_span | Defines how many columns this child should span. | |||||||||
int | layout_toLeftOf | Positions the right edge of this view to the left of the given anchor view ID. | |||||||||
int | layout_toRightOf | Positions the left edge of this view to the right of the given anchor view ID. | |||||||||
int | layout_weight | Must be a floating point value, such as " |
|||||||||
int | layout_width | Specifies the basic width of the view. | |||||||||
int | layout_x | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | layout_y | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | left | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | lineSpacingExtra | Extra spacing between lines of text. | |||||||||
int | lineSpacingMultiplier | Extra spacing between lines of text, as a multiplier. | |||||||||
int | lines | Makes the TextView be exactly this many lines tall. | |||||||||
int | linksClickable | If set to false, keeps the movement method from being set to the link movement method even if autoLink causes links to be found. | |||||||||
int | listChoiceBackgroundIndicator | Drawable used as a background for selected list items. | |||||||||
int | listChoiceIndicatorMultiple | Drawable to use for multiple choice indicators. | |||||||||
int | listChoiceIndicatorSingle | Drawable to use for single choice indicators. | |||||||||
int | listDivider | Must be a reference to another resource, in the form " |
|||||||||
int | listDividerAlertDialog | The list divider used in alert dialogs. | |||||||||
int | listPopupWindowStyle | Default ListPopupWindow style. | |||||||||
int | listPreferredItemHeight | The preferred list item height. | |||||||||
int | listSelector | Drawable used to indicate the currently selected item in the list. | |||||||||
int | listSeparatorTextViewStyle | TextView style for list separators. | |||||||||
int | listViewStyle | Default ListView style. | |||||||||
int | listViewWhiteStyle | ListView with white background. | |||||||||
int | logo | A Drawable resource providing an extended graphical logo for its associated item. | |||||||||
int | longClickable | Defines whether this view reacts to long click events. | |||||||||
int | loopViews | Defines whether the animator loops to the first view once it has reached the end of the list. | |||||||||
int | manageSpaceActivity | Name of the activity to be launched to manage application's space on device. | |||||||||
int | mapViewStyle | Default MapView style. | |||||||||
int | marqueeRepeatLimit | The number of times to repeat the marquee animation. | |||||||||
int | max | Defines the maximum value the progress can take. | |||||||||
int | maxDate | The minimal date shown by this calendar view in mm/dd/yyyy format. | |||||||||
int | maxEms | Makes the TextView be at most this many ems wide. | |||||||||
int | maxHeight | An optional argument to supply a maximum height for this view. | |||||||||
int | maxItemsPerRow | Defines the maximum number of items per row. | |||||||||
int | maxLength | Set an input filter to constrain the text length to the specified number. | |||||||||
int | maxLevel | The maximum level allowed for this item. | |||||||||
int | maxLines | Makes the TextView be at most this many lines tall. | |||||||||
int | maxRows | Defines the maximum number of rows displayed. | |||||||||
int | maxSdkVersion | This is the maximum SDK version number that an application works on. | |||||||||
int | maxWidth | An optional argument to supply a maximum width for this view. | |||||||||
int | measureAllChildren | Determines whether to measure all children or just those in the VISIBLE or INVISIBLE state when measuring. | |||||||||
int | measureWithLargestChild | When set to true, all children with a weight will be considered having the minimum size of the largest child. | |||||||||
int | menuCategory | The category applied to all items within this group. | |||||||||
int | mimeType | Specify a MIME type that is handled, as per
IntentFilter.addDataType() . |
|||||||||
int | minDate | The minimal date shown by this calendar view in mm/dd/yyyy format. | |||||||||
int | minEms | Makes the TextView be at least this many ems wide. | |||||||||
int | minHeight | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | minLevel | The minimum level allowed for this item. | |||||||||
int | minLines | Makes the TextView be at least this many lines tall. | |||||||||
int | minSdkVersion | This is the minimum SDK version number that the application requires. | |||||||||
int | minWidth | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | mode | Must be one of the following constant values. |
|||||||||
int | moreIcon | 'More' icon. | |||||||||
int | multiprocess | Specify whether a component is allowed to have multiple instances of itself running in different processes. | |||||||||
int | name | A unique name for the given item. | |||||||||
int | navigationMode | The type of navigation to use. | |||||||||
int | negativeButtonText | The negative button text for the dialog. | |||||||||
int | nextFocusDown | 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. |
|||||||||
int | nextFocusForward | Defines the next view to give focus to when the next focus is
FOCUS_FORWARD
If the reference refers to a view that does not exist or is part
of a hierarchy that is invisible, a RuntimeException
will result when the reference is accessed. |
|||||||||
int | nextFocusLeft | Defines the next view to give focus to when the next focus is
FOCUS_LEFT . |
|||||||||
int | nextFocusRight | 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. |
|||||||||
int | nextFocusUp | 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. |
|||||||||
int | noHistory | Specify whether an activity should be kept in its history stack. | |||||||||
int | normalScreens | Indicates whether an application supports the normal screen form-factors. | |||||||||
int | numColumns | May be an integer value, such as " |
|||||||||
int | numStars | The number of stars (or rating items) to show. | |||||||||
int | numeric | This constant is deprecated. Use inputType instead. | |||||||||
int | numericShortcut | The numeric shortcut key. | |||||||||
int | onClick | Name of the method in this View's context to invoke when the view is clicked. | |||||||||
int | oneshot | If true, the animation will only run a single time and then stop. | |||||||||
int | opacity | Must be one of the following constant values. |
|||||||||
int | order | The order for the Preference (lower values are to be ordered first). | |||||||||
int | orderInCategory | The order within the category applied to all items within this group. | |||||||||
int | ordering | Name of the property being animated. | |||||||||
int | orderingFromXml | Whether to order the Preference under this group as they appear in the XML file. | |||||||||
int | orientation | Standard orientation constant. | |||||||||
int | outAnimation | Identifier for the animation to use when a view is hidden. | |||||||||
int | overScrollFooter | Drawable to draw below list content. | |||||||||
int | overScrollHeader | Drawable to draw above list content. | |||||||||
int | overScrollMode | Defines over-scrolling behavior. | |||||||||
int | padding | Sets the padding, in pixels, of all four edges. | |||||||||
int | paddingBottom | Sets the padding, in pixels, of the bottom edge; see padding . |
|||||||||
int | paddingLeft | Sets the padding, in pixels, of the left edge; see padding . |
|||||||||
int | paddingRight | Sets the padding, in pixels, of the right edge; see padding . |
|||||||||
int | paddingTop | Sets the padding, in pixels, of the top edge; see padding . |
|||||||||
int | panelBackground | The background of a panel when it is inset from the left and right edges of the screen. | |||||||||
int | panelColorBackground | Color that matches (as closely as possible) the panel background. | |||||||||
int | panelColorForeground | Default color of foreground panel imagery. | |||||||||
int | panelFullBackground | The background of a panel when it extends to the left and right edges of the screen. | |||||||||
int | panelTextAppearance | Default appearance of panel text. | |||||||||
int | password | This constant is deprecated. Use inputType instead. | |||||||||
int | path | Specify a URI path that must exactly match, as per
PatternMatcher with
PATTERN_LITERAL . |
|||||||||
int | pathPattern | Specify a URI path that matches a simple pattern, as per
PatternMatcher with
PATTERN_SIMPLE_GLOB . |
|||||||||
int | pathPrefix | Specify a URI path that must be a prefix to match, as per
PatternMatcher with
PATTERN_PREFIX . |
|||||||||
int | permission | Specify a permission that a client is required to have in order to use the associated object. | |||||||||
int | permissionGroup | Specified the name of a group that this permission is associated with. | |||||||||
int | persistent | Flag to control special persistent mode of an application. | |||||||||
int | persistentDrawingCache | Defines the persistence of the drawing cache. | |||||||||
int | phoneNumber | This constant is deprecated. Use inputType instead. | |||||||||
int | pivotX | May be a floating point value, such as " |
|||||||||
int | pivotY | May be a floating point value, such as " |
|||||||||
int | popupAnimationStyle | Must be a reference to another resource, in the form " |
|||||||||
int | popupBackground | May be a reference to another resource, in the form " |
|||||||||
int | popupCharacters | The characters to display in the popup keyboard. | |||||||||
int | popupKeyboard | The XML keyboard layout of any popup keyboard. | |||||||||
int | popupLayout | Layout resource for popup keyboards. | |||||||||
int | popupMenuStyle | Default PopupMenu style. | |||||||||
int | popupWindowStyle | Default PopupWindow style. | |||||||||
int | port | Specify a URI authority port that is handled, as per
IntentFilter.addDataAuthority() . |
|||||||||
int | positiveButtonText | The positive button text for the dialog. | |||||||||
int | preferenceCategoryStyle | Default style for PreferenceCategory. | |||||||||
int | preferenceInformationStyle | Default style for informational Preference. | |||||||||
int | preferenceLayoutChild | The preference layout that has the child/tabbed effect. | |||||||||
int | preferenceScreenStyle | Default style for PreferenceScreen. | |||||||||
int | preferenceStyle | Default style for Preference. | |||||||||
int | previewImage | A preview of what the AppWidget will look like after it's configured. | |||||||||
int | priority | Specify the relative importance or ability in handling a particular Intent. | |||||||||
int | privateImeOptions | An addition content type description to supply to the input method attached to the text view, which is private to the implementation of the input method. | |||||||||
int | process | Specify a specific process that the associated code is to run in. | |||||||||
int | progress | Defines the default progress value, between 0 and max. | |||||||||
int | progressBarPadding | Specifies the horizontal padding on either end for an embedded progress bar. | |||||||||
int | progressBarStyle | Default ProgressBar style. | |||||||||
int | progressBarStyleHorizontal | Horizontal ProgressBar style. | |||||||||
int | progressBarStyleInverse | Inverse ProgressBar style. | |||||||||
int | progressBarStyleLarge | Large ProgressBar style. | |||||||||
int | progressBarStyleLargeInverse | Large inverse ProgressBar style. | |||||||||
int | progressBarStyleSmall | Small ProgressBar style. | |||||||||
int | progressBarStyleSmallInverse | Small inverse ProgressBar style. | |||||||||
int | progressBarStyleSmallTitle | Small ProgressBar in title style. | |||||||||
int | progressDrawable | Drawable used for the progress mode. | |||||||||
int | prompt | The prompt to display when the spinner's dialog is shown. | |||||||||
int | propertyName | Name of the property being animated. | |||||||||
int | protectionLevel | Characterizes the potential risk implied in a permission and indicates the procedure the system should follow when determining whether to grant the permission to an application requesting it. | |||||||||
int | queryActionMsg | If you wish to handle an action key during normal search query entry, you must define an action string here. | |||||||||
int | queryAfterZeroResults | If provided and true , this searchable activity will be invoked for all
queries in a particular session. |
|||||||||
int | queryHint | An optional query hint string to be displayed in the empty query field. | |||||||||
int | quickContactBadgeStyleSmallWindowLarge | Default quickcontact badge style with large quickcontact window. | |||||||||
int | quickContactBadgeStyleSmallWindowMedium | Default quickcontact badge style with medium quickcontact window. | |||||||||
int | quickContactBadgeStyleSmallWindowSmall | Default quickcontact badge style with small quickcontact window. | |||||||||
int | quickContactBadgeStyleWindowLarge | Default quickcontact badge style with large quickcontact window. | |||||||||
int | quickContactBadgeStyleWindowMedium | Default quickcontact badge style with medium quickcontact window. | |||||||||
int | quickContactBadgeStyleWindowSmall | Default quickcontact badge style with small quickcontact window. | |||||||||
int | radioButtonStyle | Default RadioButton style. | |||||||||
int | radius | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | rating | The rating to set by default. | |||||||||
int | ratingBarStyle | Default RatingBar style. | |||||||||
int | ratingBarStyleIndicator | Indicator RatingBar style. | |||||||||
int | ratingBarStyleSmall | Small indicator RatingBar style. | |||||||||
int | readPermission | A specific permission name for read-only
access to a ContentProvider . |
|||||||||
int | repeatCount | Defines how many times the animation should repeat. | |||||||||
int | repeatMode | Defines the animation behavior when it reaches the end and the repeat count is greater than 0 or infinite. | |||||||||
int | reqFiveWayNav | Application's requirement for five way navigation
Must be a boolean value, either " |
|||||||||
int | reqHardKeyboard | Application's requirement for a hard keyboard
Must be a boolean value, either " |
|||||||||
int | reqKeyboardType | The input method preferred by an application. | |||||||||
int | reqNavigation | The navigation device preferred by an application. | |||||||||
int | reqTouchScreen | The touch screen type used by an application. | |||||||||
int | required | Specify whether this feature is required for the application. | |||||||||
int | resizeable | Indicates whether the application can resize itself to newer screen sizes. | |||||||||
int | resource | Resource identifier to assign to this piece of named meta-data. | |||||||||
int | restoreAnyVersion | Indicate that the application is prepared to attempt a restore of any backed-up dataset, even if the backup is apparently from a newer version of the application than is currently installed on the device. | |||||||||
int | restoreNeedsApplication |
This constant is deprecated.
This attribute is not used by the Android operating system.
Must be a boolean value, either " This may also be a reference to a resource (in the form
" |
|||||||||
int | right | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | ringtonePreferenceStyle | Default style for RingtonePreference. | |||||||||
int | ringtoneType | Which ringtone type(s) to show in the picker. | |||||||||
int | rotation | rotation of the view, in degrees. | |||||||||
int | rotationX | rotation of the view around the x axis, in degrees. | |||||||||
int | rotationY | rotation of the view around the y axis, in degrees. | |||||||||
int | rowDelay | Fraction of the animation duration used to delay the beginning of the animation of each row. | |||||||||
int | rowEdgeFlags | Row edge flags. | |||||||||
int | rowHeight | Defines the height of each row. | |||||||||
int | saveEnabled | If unset, no state will be saved for this view when it is being frozen. | |||||||||
int | scaleGravity | Specifies where the drawable is positioned after scaling. | |||||||||
int | scaleHeight | Scale height, expressed as a percentage of the drawable's bound. | |||||||||
int | scaleType | Controls how the image should be resized or moved to match the size of this ImageView. | |||||||||
int | scaleWidth | Scale width, expressed as a percentage of the drawable's bound. | |||||||||
int | scaleX | scale of the view in the x direction. | |||||||||
int | scaleY | scale of the view in the y direction. | |||||||||
int | scheme | Specify a URI scheme that is handled, as per
IntentFilter.addDataScheme() . |
|||||||||
int | screenDensity | Specifies a compatible screen density, as per the device configuration screen density bins. | |||||||||
int | screenOrientation | Specify the orientation an activity should be run in. | |||||||||
int | screenSize | Specifies a compatible screen size, as per the device configuration screen size bins. | |||||||||
int | scrollHorizontally | Whether the text is allowed to be wider than the view (and therefore can be scrolled horizontally). | |||||||||
int | scrollViewStyle | Default ScrollView style. | |||||||||
int | scrollX | The initial horizontal scroll offset, in pixels. | |||||||||
int | scrollY | The initial vertical scroll offset, in pixels. | |||||||||
int | scrollbarAlwaysDrawHorizontalTrack | Defines whether the horizontal scrollbar track should always be drawn. | |||||||||
int | scrollbarAlwaysDrawVerticalTrack | Defines whether the vertical scrollbar track should always be drawn. | |||||||||
int | scrollbarDefaultDelayBeforeFade | Defines the delay in milliseconds that a scrollbar waits before fade out. | |||||||||
int | scrollbarFadeDuration | Defines the delay in milliseconds that a scrollbar takes to fade out. | |||||||||
int | scrollbarSize | Sets the width of vertical scrollbars and height of horizontal scrollbars. | |||||||||
int | scrollbarStyle | Controls the scrollbar style and position. | |||||||||
int | scrollbarThumbHorizontal | Defines the horizontal scrollbar thumb drawable. | |||||||||
int | scrollbarThumbVertical | Defines the vertical scrollbar thumb drawable. | |||||||||
int | scrollbarTrackHorizontal | Defines the horizontal scrollbar track drawable. | |||||||||
int | scrollbarTrackVertical | Defines the vertical scrollbar track drawable. | |||||||||
int | scrollbars | Defines which scrollbars should be displayed on scrolling or not. | |||||||||
int | scrollingCache | When set to true, the list uses a drawing cache during scrolling. | |||||||||
int | searchButtonText | This constant is deprecated. This will create a non-standard UI appearance, because the search bar UI is changing to use only icons for its buttons. | |||||||||
int | searchMode | Additional features are controlled by mode bits in this field. | |||||||||
int | searchSettingsDescription | If provided, this string will be used to describe the searchable item in the searchable items settings within system search settings. | |||||||||
int | searchSuggestAuthority | If provided, this is the trigger indicating that the searchable activity provides suggestions as well. | |||||||||
int | searchSuggestIntentAction | If provided, and not overridden by an action in the selected suggestion, this
string will be placed in the action field of the Intent
when the user clicks a suggestion. |
|||||||||
int | searchSuggestIntentData | If provided, and not overridden by an action in the selected suggestion, this
string will be placed in the data field of the Intent
when the user clicks a suggestion. |
|||||||||
int | searchSuggestPath | If provided, this will be inserted in the suggestions query Uri, after the authority you have provide but before the standard suggestions path. | |||||||||
int | searchSuggestSelection | If provided, suggestion queries will be passed into your query function as the selection parameter. | |||||||||
int | searchSuggestThreshold | If provided, this is the minimum number of characters needed to trigger search suggestions. | |||||||||
int | secondaryProgress | Defines the secondary progress value, between 0 and max. | |||||||||
int | seekBarStyle | Default SeekBar style. | |||||||||
int | segmentedButtonStyle | Style for segmented buttons - a container that houses several buttons with the appearance of a singel button broken into segments. | |||||||||
int | selectAllOnFocus | If the text is selectable, select it all when the view takes focus instead of moving the cursor to the start or end. | |||||||||
int | selectable | Whether the Preference is selectable. | |||||||||
int | selectableItemBackground | Background drawable for standalone items that need focus/pressed states. | |||||||||
int | selectedDateVerticalBar | Drawable for the vertical bar shown at the beggining and at the end of a selected date. | |||||||||
int | selectedWeekBackgroundColor | The background color for the selected week. | |||||||||
int | settingsActivity | Component name of an activity that allows the user to modify the settings for this service. | |||||||||
int | shadowColor | Place a shadow of the specified color behind the text. | |||||||||
int | shadowDx | Horizontal offset of the shadow. | |||||||||
int | shadowDy | Vertical offset of the shadow. | |||||||||
int | shadowRadius | Radius of the shadow. | |||||||||
int | shape | Must be one of the following constant values. |
|||||||||
int | shareInterpolator | Must be a boolean value, either " |
|||||||||
int | sharedUserId | Specify the name of a user ID that will be shared between multiple packages. | |||||||||
int | sharedUserLabel | Specify a label for the shared user UID of this package. | |||||||||
int | shouldDisableView | Whether the view of this Preference should be disabled when this Preference is disabled. | |||||||||
int | showAsAction | How this item should display in the Action Bar, if present. | |||||||||
int | showDefault | Whether to show an item for a default sound. | |||||||||
int | showDividers | Setting for which dividers to show. | |||||||||
int | showSilent | Whether to show an item for 'Silent'. | |||||||||
int | showWeekNumber | Whether do show week numbers. | |||||||||
int | shownWeekCount | The number of weeks to be shown. | |||||||||
int | shrinkColumns | The zero-based index of the columns to shrink. | |||||||||
int | singleLine | This constant is deprecated. This attribute is deprecated and is replaced by the textMultiLine flag in the inputType attribute. Use caution when altering existing layouts, as the default value of singeLine is false (multi-line mode), but if you specify any value for inputType, the default is single-line mode. (If both singleLine and inputType attributes are found, the inputType flags will override the value of singleLine.) | |||||||||
int | smallIcon | Smaller icon of the authenticator. | |||||||||
int | smallScreens | Indicates whether the application supports smaller screen form-factors. | |||||||||
int | smoothScrollbar | When set to true, the list will use a more refined calculation method based on the pixels height of the items visible on screen. | |||||||||
int | soundEffectsEnabled | Boolean that controls whether a view should have sound effects enabled for events such as clicking and touching. | |||||||||
int | spacing | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | spinnerDropDownItemStyle | Default style for spinner drop down items. | |||||||||
int | spinnerItemStyle | Default spinner item style. | |||||||||
int | spinnerMode | Display mode for spinner options. | |||||||||
int | spinnerStyle | Default Spinner style. | |||||||||
int | spinnersShown | Whether the spinners are shown. | |||||||||
int | splitMotionEvents | Sets whether this ViewGroup should split MotionEvents to separate child views during touch event dispatch. | |||||||||
int | src | Sets a drawable as the content of this ImageView. | |||||||||
int | stackFromBottom | Used by ListView and GridView to stack their content from the bottom. | |||||||||
int | starStyle | Default Star style. | |||||||||
int | startColor | Must be a color value, in the form of " |
|||||||||
int | startOffset | Delay in milliseconds before the animation runs, once start time is reached. | |||||||||
int | startYear | The first year (inclusive), for example "1940". | |||||||||
int | stateNotNeeded | Indicates that an Activity does not need to have its freeze state
(as returned by onSaveInstanceState(Bundle)
retained in order to be restarted. |
|||||||||
int | state_above_anchor | State identifier indicating the popup will be above the anchor. | |||||||||
int | state_accelerated | State value for StateListDrawable ,
indicating that the Drawable is in a view that is hardware accelerated. |
|||||||||
int | state_activated | State value for StateListDrawable ,
set when a view or its parent has been "activated" meaning the user has currently
marked it as being of interest. |
|||||||||
int | state_active | State value for StateListDrawable . |
|||||||||
int | state_checkable | State identifier indicating that the object may display a check mark. | |||||||||
int | state_checked | State identifier indicating that the object is currently checked. | |||||||||
int | state_empty | State identifier indicating the group is empty (has no children). | |||||||||
int | state_enabled | State value for StateListDrawable ,
set when a view is enabled. |
|||||||||
int | state_expanded | State identifier indicating the group is expanded. | |||||||||
int | state_first | State value for StateListDrawable . |
|||||||||
int | state_focused | State value for StateListDrawable ,
set when a view has input focus. |
|||||||||
int | state_last | State value for StateListDrawable . |
|||||||||
int | state_long_pressable | State for KeyboardView
key preview background. |
|||||||||
int | state_middle | State value for StateListDrawable . |
|||||||||
int | state_multiline | State identifier indicating a TextView has a multi-line layout. | |||||||||
int | state_pressed | State value for StateListDrawable ,
set when the user is pressing down in a view. |
|||||||||
int | state_selected | State value for StateListDrawable ,
set when a view (or one of its parents) is currently selected. |
|||||||||
int | state_single | State value for StateListDrawable . |
|||||||||
int | state_window_focused | State value for StateListDrawable ,
set when a view's window has input focus. |
|||||||||
int | staticWallpaperPreview | A resource id of a static drawable. | |||||||||
int | stepSize | The step size of the rating. | |||||||||
int | streamType | Different audio stream types. | |||||||||
int | stretchColumns | The zero-based index of the columns to stretch. | |||||||||
int | stretchMode | Must be one of the following constant values. |
|||||||||
int | subtitle | Specifies subtitle text used for navigationMode="normal"
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. |
|||||||||
int | subtitleTextStyle | Specifies a style to use for subtitle text. | |||||||||
int | suggestActionMsg | If you wish to handle an action key while a suggestion is being displayed and selected, there are two ways to handle this. | |||||||||
int | suggestActionMsgColumn | If you wish to handle an action key while a suggestion is being displayed and selected, but you do not wish to enable this action key for every suggestion, then you can use this attribute to control it on a suggestion-by-suggestion basis. | |||||||||
int | summary | The summary for the item. | |||||||||
int | summaryColumn | Column in data table that summarizes this data. | |||||||||
int | summaryOff | The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is unchecked. | |||||||||
int | summaryOn | The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is checked. | |||||||||
int | supportsUploading | Must be a boolean value, either " |
|||||||||
int | syncable | Flag indicating whether this content provider would like to participate in data synchronization. | |||||||||
int | tabStripEnabled | Determines whether the strip under the tab indicators is drawn or not. | |||||||||
int | tabStripLeft | Drawable used to draw the left part of the strip underneath the tabs. | |||||||||
int | tabStripRight | Drawable used to draw the right part of the strip underneath the tabs. | |||||||||
int | tabWidgetStyle | Default TabWidget style. | |||||||||
int | tag | Supply a tag for this view containing a String, to be retrieved
later with View.getTag() or
searched for with View.findViewWithTag() . |
|||||||||
int | targetActivity | The name of the activity this alias should launch. | |||||||||
int | targetClass | The class part of the ComponentName to assign to the Intent, as per
Intent.setComponent() . |
|||||||||
int | targetPackage | The name of the application package that an Instrumentation object will run against. | |||||||||
int | targetSdkVersion | This is the SDK version number that the application is targeting. | |||||||||
int | taskAffinity | Specify a task name that activities have an "affinity" to. | |||||||||
int | taskCloseEnterAnimation | When closing the last activity of a task, this is the animation that is run on the activity of the next task (which is entering the screen). | |||||||||
int | taskCloseExitAnimation | When opening an activity in a new task, this is the animation that is run on the activity of the old task (which is exiting the screen). | |||||||||
int | taskOpenEnterAnimation | When opening an activity in a new task, this is the animation that is run on the activity of the new task (which is entering the screen). | |||||||||
int | taskOpenExitAnimation | When opening an activity in a new task, this is the animation that is run on the activity of the old task (which is exiting the screen). | |||||||||
int | taskToBackEnterAnimation | When sending the current task to the background, this is the animation that is run on the top activity of the task behind it (which is entering the screen). | |||||||||
int | taskToBackExitAnimation | When sending the current task to the background, this is the animation that is run on the top activity of the current task (which is exiting the screen). | |||||||||
int | taskToFrontEnterAnimation | When bringing an existing task to the foreground, this is the animation that is run on the top activity of the task being brought to the foreground (which is entering the screen). | |||||||||
int | taskToFrontExitAnimation | When bringing an existing task to the foreground, this is the animation that is run on the current foreground activity (which is exiting the screen). | |||||||||
int | tension | This is the amount of tension. | |||||||||
int | testOnly | Option to indicate this application is only for testing purposes. | |||||||||
int | text | Text to display. | |||||||||
int | textAppearance | Default appearance of text: color, typeface, size, and style. | |||||||||
int | textAppearanceButton | Text color, typeface, size, and style for the text inside of a button. | |||||||||
int | textAppearanceInverse | Default appearance of text against an inverted background: color, typeface, size, and style. | |||||||||
int | textAppearanceLarge | Text color, typeface, size, and style for "large" text. | |||||||||
int | textAppearanceLargeInverse | Text color, typeface, size, and style for "large" inverse text. | |||||||||
int | textAppearanceLargePopupMenu | Text color, typeface, size, and style for the text inside of a popup menu. | |||||||||
int | textAppearanceMedium | Text color, typeface, size, and style for "medium" text. | |||||||||
int | textAppearanceMediumInverse | Text color, typeface, size, and style for "medium" inverse text. | |||||||||
int | textAppearanceSearchResultSubtitle | Text color, typeface, size, and style for system search result subtitle. | |||||||||
int | textAppearanceSearchResultTitle | Text color, typeface, size, and style for system search result title. | |||||||||
int | textAppearanceSmall | Text color, typeface, size, and style for "small" text. | |||||||||
int | textAppearanceSmallInverse | Text color, typeface, size, and style for "small" inverse text. | |||||||||
int | textAppearanceSmallPopupMenu | Text color, typeface, size, and style for small text inside of a popup menu. | |||||||||
int | textCheckMark | Drawable to use for check marks. | |||||||||
int | textCheckMarkInverse | Must be a reference to another resource, in the form " |
|||||||||
int | textColor | Color of text (usually same as colorForeground). | |||||||||
int | textColorAlertDialogListItem | Color of list item text in alert dialogs. | |||||||||
int | textColorHighlight | Color of highlighted text. | |||||||||
int | textColorHighlightInverse | Color of highlighted text, when used in a light theme. | |||||||||
int | textColorHint | Color of hint text (displayed when the field is empty). | |||||||||
int | textColorHintInverse | Inverse hint text color. | |||||||||
int | textColorLink | Color of link text (URLs). | |||||||||
int | textColorLinkInverse | Color of link text (URLs), when used in a light theme. | |||||||||
int | textColorPrimary | The most prominent text color. | |||||||||
int | textColorPrimaryDisableOnly | Bright text color. | |||||||||
int | textColorPrimaryInverse | Primary inverse text color, useful for inverted backgrounds. | |||||||||
int | textColorPrimaryInverseDisableOnly | Bright inverse text color. | |||||||||
int | textColorPrimaryInverseNoDisable | Bright inverse text color. | |||||||||
int | textColorPrimaryNoDisable | Bright text color. | |||||||||
int | textColorSecondary | Secondary text color. | |||||||||
int | textColorSecondaryInverse | Secondary inverse text color, useful for inverted backgrounds. | |||||||||
int | textColorSecondaryInverseNoDisable | Dim inverse text color. | |||||||||
int | textColorSecondaryNoDisable | Dim text color. | |||||||||
int | textColorTertiary | Tertiary text color. | |||||||||
int | textColorTertiaryInverse | Tertiary inverse text color, useful for inverted backgrounds. | |||||||||
int | textEditNoPasteWindowLayout | Variation of textEditPasteWindowLayout displayed when the clipboard is empty. | |||||||||
int | textEditPasteWindowLayout | The layout of the view that is displayed on top of the cursor to paste inside a TextEdit field. | |||||||||
int | textEditSideNoPasteWindowLayout | Variation of textEditSidePasteWindowLayout displayed when the clipboard is empty. | |||||||||
int | textEditSidePasteWindowLayout | Used instead of textEditPasteWindowLayout when the window is moved on the side of the insertion cursor because it would be clipped if it were positioned on top. | |||||||||
int | textFilterEnabled | When set to true, the list will filter results as the user types. | |||||||||
int | textIsSelectable | Indicates that the content of a non-editable TextView can be selected. | |||||||||
int | textOff | The text for the button when it is not checked. | |||||||||
int | textOn | The text for the button when it is checked. | |||||||||
int | textScaleX | Sets the horizontal scaling factor for the text. | |||||||||
int | textSelectHandle | Reference to a drawable that will be used to display a text selection anchor for positioning the cursor within text. | |||||||||
int | textSelectHandleLeft | Reference to a drawable that will be used to display a text selection anchor on the left side of a selection region. | |||||||||
int | textSelectHandleRight | Reference to a drawable that will be used to display a text selection anchor on the right side of a selection region. | |||||||||
int | textSelectHandleWindowStyle | Reference to a style that will be used for the window containing a text selection anchor. | |||||||||
int | textSize | Size of text. | |||||||||
int | textStyle | Default text typeface style. | |||||||||
int | textViewStyle | Default TextView style. | |||||||||
int | theme | The overall theme to use for an activity. | |||||||||
int | thickness | Thickness of the ring. | |||||||||
int | thicknessRatio | Thickness of the ring expressed as a ratio of the ring's width. | |||||||||
int | thumb | Draws the thumb on a seekbar. | |||||||||
int | thumbOffset | An offset for the thumb that allows it to extend out of the range of the track. | |||||||||
int | thumbnail | Reference to a the wallpaper's thumbnail bitmap. | |||||||||
int | tileMode | Defines the tile mode. | |||||||||
int | tint | Set a tinting color for the image. | |||||||||
int | title | The title associated with the item. | |||||||||
int | titleCondensed | The condensed title associated with the item. | |||||||||
int | titleTextStyle | Specifies a style to use for title text. | |||||||||
int | toAlpha | Must be a floating point value, such as " |
|||||||||
int | toDegrees | Must be a floating point value, such as " |
|||||||||
int | toXDelta | May be a floating point value, such as " |
|||||||||
int | toXScale | May be a floating point value, such as " |
|||||||||
int | toYDelta | May be a floating point value, such as " |
|||||||||
int | toYScale | May be a floating point value, such as " |
|||||||||
int | top | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | topBright | May be a reference to another resource, in the form " |
|||||||||
int | topDark | May be a reference to another resource, in the form " |
|||||||||
int | topLeftRadius | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | topOffset | Extra offset for the handle at the top of the SlidingDrawer. | |||||||||
int | topRightRadius | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | transcriptMode | Sets the transcript mode for the list. | |||||||||
int | transformPivotX | x location of the pivot point around which the view will rotate and scale. | |||||||||
int | transformPivotY | y location of the pivot point around which the view will rotate and scale. | |||||||||
int | translationX | translation in x of the view. | |||||||||
int | translationY | translation in y of the view. | |||||||||
int | type | Must be one of the following constant values. |
|||||||||
int | typeface | Default text typeface. | |||||||||
int | uncertainGestureColor | Color used to draw the user's strokes until we are sure it's a gesture. | |||||||||
int | unfocusedMonthDateColor | The color for the dates of an unfocused month. | |||||||||
int | unselectedAlpha | Sets the alpha on the items that are not selected. | |||||||||
int | updatePeriodMillis | Update period in milliseconds, or 0 if the AppWidget will update itself. | |||||||||
int | useIntrinsicSizeAsMinimum | Use the drawable's intrinsic width and height as minimum size values. | |||||||||
int | useLevel | Must be a boolean value, either " |
|||||||||
int | userVisible | Must be a boolean value, either " |
|||||||||
int | value | Concrete value to assign to this piece of named meta-data. | |||||||||
int | valueFrom | Value the animation starts from. | |||||||||
int | valueTo | Value the animation animates to. | |||||||||
int | valueType | The type of valueFrom and valueTo. | |||||||||
int | variablePadding | If true, allows the drawable's padding to change based on the current state that is selected. | |||||||||
int | versionCode | Internal version code. | |||||||||
int | versionName | The text shown to the user to indicate the version they have. | |||||||||
int | verticalCorrection | Amount to offset the touch Y coordinate by, for bias correction. | |||||||||
int | verticalDivider | Default vertical divider between menu items. | |||||||||
int | verticalGap | Default vertical gap between rows of keys. | |||||||||
int | verticalScrollbarPosition | Determines which side the vertical scroll bar should be placed on. | |||||||||
int | verticalSpacing | Must be a dimension value, which is a floating point number appended with a unit such as " |
|||||||||
int | visibility | Controls the initial visibility of the view. | |||||||||
int | visible | Provides initial visibility state of the drawable; the default value is false. | |||||||||
int | vmSafeMode | Flag indicating whether the application requests the VM to operate in the safe mode. | |||||||||
int | voiceLanguage | If provided, this specifies the spoken language to be expected, and that it will be
different than the one set in the getDefault() . |
|||||||||
int | voiceLanguageModel | If provided, this specifies the language model that should be used by the voice recognition system. | |||||||||
int | voiceMaxResults | If provided, enforces the maximum number of results to return, including the "best" result which will always be provided as the SEARCH intent's primary query. | |||||||||
int | voicePromptText | If provided, this specifies a prompt that will be displayed during voice input. | |||||||||
int | voiceSearchMode | Voice search features are controlled by mode bits in this field. | |||||||||
int | wallpaperCloseEnterAnimation | When opening a new activity that hides the wallpaper, while currently showing the wallpaper, this is the animation that is run on the new activity (which is entering the screen). | |||||||||
int | wallpaperCloseExitAnimation | When opening a new activity that hides the wallpaper, while currently showing the wallpaper, this is the animation that is run on the old wallpaper activity (which is exiting the screen). | |||||||||
int | wallpaperIntraCloseEnterAnimation | When closing a foreround activity that is on top of the wallpaper when the previous activity is also on top of the wallpaper, this is the animation that is run on the previous activity (which is entering the screen). | |||||||||
int | wallpaperIntraCloseExitAnimation | When closing a foreround activity that is on top of the wallpaper when the previous activity is also on top of the wallpaper, this is the animation that is run on the current activity (which is exiting the screen). | |||||||||
int | wallpaperIntraOpenEnterAnimation | When opening a new activity that is on top of the wallpaper when the current activity is also on top of the wallpaper, this is the animation that is run on the new activity (which is entering the screen). | |||||||||
int | wallpaperIntraOpenExitAnimation | When opening a new activity that is on top of the wallpaper when the current activity is also on top of the wallpaper, this is the animation that is run on the current activity (which is exiting the screen). | |||||||||
int | wallpaperOpenEnterAnimation | When opening a new activity that shows the wallpaper, while currently not showing the wallpaper, this is the animation that is run on the new wallpaper activity (which is entering the screen). | |||||||||
int | wallpaperOpenExitAnimation | When opening a new activity that shows the wallpaper, while currently not showing the wallpaper, this is the animation that is run on the current activity (which is exiting the screen). | |||||||||
int | webTextViewStyle | Default WebTextView style. | |||||||||
int | webViewStyle | Default WebView style. | |||||||||
int | weekDayTextAppearance | The text appearance for the week day abbreviation of the calendar header. | |||||||||
int | weekNumberColor | The color for the week numbers. | |||||||||
int | weekSeparatorLineColor | The color for the sepatator line between weeks. | |||||||||
int | weightSum | Defines the maximum weight sum. | |||||||||
int | widgetLayout | The layout for the controllable widget portion of a Preference. | |||||||||
int | width | Makes the TextView be exactly this many pixels wide. | |||||||||
int | windowActionBar | Flag indicating whether this window should have an Action Bar in place of the usual title bar. | |||||||||
int | windowActionBarOverlay | Flag indicating whether this window's Action Bar should overlay application content. | |||||||||
int | windowActionModeOverlay | Flag indicating whether action modes should overlay window content when there is not reserved space for their UI (such as an Action Bar). | |||||||||
int | windowAnimationStyle | Reference to a style resource holding
the set of window animations to use, which can be
any of the attributes defined by
WindowAnimation . |
|||||||||
int | windowBackground | Drawable to use as the overall window background. | |||||||||
int | windowCloseOnTouchOutside | Control whether a container should automatically close itself if the user touches outside of it. | |||||||||
int | windowContentOverlay | This Drawable is overlaid over the foreground of the Window's content area, usually to place a shadow below the title. | |||||||||
int | windowDisablePreview | Flag allowing you to disable the preview animation for a window. | |||||||||
int | windowEnableSplitTouch | Flag indicating that this window should allow touches to be split across other windows that also support split touch. | |||||||||
int | windowEnterAnimation | The animation used when a window is being added. | |||||||||
int | windowExitAnimation | The animation used when a window is being removed. | |||||||||
int | windowFrame | Drawable to use as a frame around the window. | |||||||||
int | windowFullscreen | Flag indicating whether this window should fill the entire screen. | |||||||||
int | windowHideAnimation | The animation used when a window is going from VISIBLE to INVISIBLE. | |||||||||
int | windowIsFloating | Flag indicating whether this is a floating window. | |||||||||
int | windowIsTranslucent | Flag indicating whether this is a translucent window. | |||||||||
int | windowMinWidthMajor | The minimum width the window is allowed to be, along the major axis of the screen. | |||||||||
int | windowMinWidthMinor | The minimum width the window is allowed to be, along the minor axis of the screen. | |||||||||
int | windowNoDisplay | Flag indicating that this window should not be displayed at all. | |||||||||
int | windowNoTitle | Flag indicating whether there should be no title on this window. | |||||||||
int | windowShowAnimation | The animation used when a window is going from INVISIBLE to VISIBLE. | |||||||||
int | windowShowWallpaper | Flag indicating that this window's background should be the user's current wallpaper. | |||||||||
int | windowSoftInputMode | Defines the default soft input state that this window would like when it is displayed. | |||||||||
int | windowTitleBackgroundStyle | The style resource to use for a window's title area. | |||||||||
int | windowTitleSize | The style resource to use for a window's title bar height. | |||||||||
int | windowTitleStyle | The style resource to use for a window's title text. | |||||||||
int | writePermission | A specific permission name for write
access to a ContentProvider . |
|||||||||
int | x | A coordinate in the X dimension. | |||||||||
int | xlargeScreens | Indicates whether the application supports extra large screen form-factors. | |||||||||
int | y | A coordinate in the Y dimension. | |||||||||
int | yesNoPreferenceStyle | Default style for YesNoPreference. | |||||||||
int | zAdjustment | Allows for an adjustment of the Z ordering of the content being animated for the duration of the animation. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
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
".
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
".
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.
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.
Size of the Action Bar, including the contextual bar used to present Action Modes.
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), 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 |
---|---|---|
wrap_content | 0 |
Reference to a style for the Action 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
".
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 style for tabs within an action 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
".
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 action 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
".
Default ActionBar dropdown 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
".
An optional layout to be used as an action view.
See setActionView(android.view.View)
for more info.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
TextAppearance style that will be applied to text that appears within action 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
".
Color for text that appears within action menu 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
".
Background drawable to use for action mode UI
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Drawable to use for the close action mode 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
".
Drawable to use for the Copy action button in Contextual Action 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
".
Drawable to use for the Cut action button in Contextual Action 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
".
Drawable to use for the Paste action button in Contextual Action 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
".
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 name of an optional View class to instantiate and use as an
action view. See setActionView(android.view.View)
for more info.
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.
Drawable used as a background for activated 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
".
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
".
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
".
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
".
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
".
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.
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.
Icon drawable to use for alerts
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Theme to use for alert dialogs spawned from this theme.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Resource representing the term "All Contacts" (e.g. "All Friends" or "All connections"). Optional (Default is "All Contacts").
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.
Whether to allow the application to participate in backup
infrastructure. If this attribute is set to false
, no backup
of the application will ever be performed, even by a full-system backup that
would otherwise cause all application data to be saved via adb. The
default value of this attribute is true
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Option to let applications specify that user data can/cannot be cleared. This flag is turned on by default. This attribute is usable only by applications included in the system image. Third-party apps cannot use it.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Set to true to tell the SyncManager that this SyncAdapter supports multiple simultaneous syncs for the same account type and authority. Otherwise the SyncManager will be sure not to issue a start sync request to this SyncAdapter if the SyncAdapter is already syncing another account. Defaults to false.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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.
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.
alpha property of the view, as a value between 0 (completely transparent) and 1 (completely opaque).
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.
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.
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.
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.
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.
Defines whether to animate the current View when the ViewAnimation is first displayed.
Must be a boolean value, either "true
" or "false
".
This may also be a reference 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 whether changes in layout (caused by adding and removing items) should cause a LayoutTransition to run. When this flag is set to true, a default LayoutTransition object will be set on the ViewGroup container and default animations will run when these layout changes occur.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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.
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
".
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.
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.
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. |
Timeout between frames of animation in milliseconds
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.
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.
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.
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.
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
".
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.
The view id of the AppWidget subview which should be auto-advanced. by the widget's host.
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
".
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). |
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 constant is deprecated.
Use inputType instead.
If set, specifies that this TextView has a textual input method and automatically corrects some common spelling errors. The default is "false".
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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.
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
".
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.
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.
The name of the class subclassing BackupAgent
to manage
backup and restore of the application's data on 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.
The offset of the baseline within this view. See {see android.view.View#getBaseline} 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.
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.
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.
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.
Style for buttons without an explicit border, often used in groups.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
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.
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
".
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
".
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.
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
".
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.
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.
The short title for the bread crumb of this 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.
The title for the bread crumb of this 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.
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. |
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
".
Style for buttons within button 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
".
Style for button 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
".
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
".
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
".
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
".
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
".
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.
Whether the calendar view is shown.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
The CalndarView 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
".
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 constant is deprecated.
Use inputType instead.
If set, specifies that this TextView has a textual input method and should automatically capitalize what the user types. The default is "none".
Must be one of the following constant values.
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. |
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
".
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.
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
".
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
".
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.
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.
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
".
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
".
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.
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. |
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
".
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.
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.
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
".
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
".
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.
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.
Defines the choice behavior for the view. By default, lists do not have
any choice behavior. By setting the choiceMode to singleChoice, the list
allows up to one item to be in a chosen state. By setting the choiceMode to
multipleChoice, the list allows any number of items to be chosen.
Finally, by setting the choiceMode to multipleChoiceModal the list allows
any number of items to be chosen in a special selection mode.
The application will supply a
AbsListView.MultiChoiceModeListener
using
setMultiChoiceModeListener(AbsListView.MultiChoiceModeListener)
to control the
selection mode. This uses the ActionMode
API.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
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. |
multipleChoiceModal | 3 | The list allows multiple choices in a custom selection mode. |
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.
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.
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.
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. |
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.
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.
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.
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.
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 is a hint for a solid color that can be used for caching rendered views. This should be the color of the background when there is a solid background color; it should be null when the background is a texture or translucent. When a device is able to use accelerated drawing (thus setting state_accelerated), the cache hint is ignored and always assumed to be transparent.
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.
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.
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.
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.
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 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.
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
".
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.
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 despite 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 layout has changed. This might be caused by a different display being activated. |
uiMode | 0x0200 | The global user interface mode has changed. For example, going in or out of car mode, night mode changing, etc. |
fontScale | 0x40000000 | The font scaling factor has changed, that is the user has selected a new global font size. |
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.
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.
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
".
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.
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.
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.
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.
Specifies a layout for custom navigation. Overrides navigationMode.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Account handles its own token storage and permissions. Default 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.
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.
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.
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.
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.
The DatePicker 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
".
The text appearance for the calendar dates.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
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.
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
".
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.
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.
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. |
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
".
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.
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.
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.
Background that can be used behind parts of a UI that provide details on data the user is selecting. For example, this is the background element of PreferenceActivity's embedded preference fragment.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
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 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
".
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
".
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.
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
".
Theme to use for dialogs spawned from this theme.
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 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.
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.
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. |
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. |
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.
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.
Options affecting how the action bar is displayed.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
useLogo | 0x1 | |
showHome | 0x2 | |
homeAsUp | 0x4 | |
showTitle | 0x8 | |
showCustom | 0x10 |
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.
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
".
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.
Drawable to use for generic horizontal dividers.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Size of padding on either end of a divider.
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 to use for generic vertical dividers.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
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.
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
".
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
".
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
".
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.
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
".
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
".
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. |
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
".
Specifies the basic height of the dropdown. Its value may be a dimension (such as "12dip") for a constant height, fill_parent or match_parent to fill the height of the screen, or wrap_content to match the height of the content of the drop down.
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), 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 fit the height of the screen.
This constant is deprecated starting from API Level 8 and
is replaced by match_parent . |
match_parent | -1 | The dropdown should fit the height of the screen. Introduced in API Level 8. |
wrap_content | -2 | The dropdown should fit the height of the content. |
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
".
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.
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
".
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
".
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
".
Default dropdown 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
".
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.
Specifies the basic width of the dropdown. Its value may be a dimension (such as "12dip") for a constant width, fill_parent or match_parent to match the width of the screen, or wrap_content to match the width of the anchored view.
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), 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.
This constant is deprecated starting from API Level 8 and
is replaced by match_parent . |
match_parent | -1 | The dropdown should fit the width of the screen. Introduced in API Level 8. |
wrap_content | -2 | The dropdown should fit the width of its anchor. |
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.
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.
EditText background 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
".
EditText text foreground 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
".
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
".
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 constant is deprecated.
Use inputType instead.
If set, specifies that this TextView has an input method. It will be a textual one unless it has otherwise been specified. For TextView, this is false by default. For EditText, it is true by default.
Must be a boolean value, either "true
" or "false
".
This may also be a reference 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 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
".
Where to ellipsize text.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
none | 0 | |
start | 1 | |
middle | 2 | |
end | 3 | |
marquee | 4 |
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 constant is deprecated.
Use state_enabled instead
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.
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.
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.
Amount of time (in milliseconds) to fade in a new state drawable.
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.
Reference to an array resource that will populate a list/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
".
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
".
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.
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.
Amount of time (in milliseconds) to fade out an old state drawable.
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.
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.
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.
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.
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.
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.
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.
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
".
ExpandableListView 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
".
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 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 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.
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.
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.
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.
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.
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. |
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.
When set to true, the list will always show the fast scroll interface. This setting implies fastScrollEnabled.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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.
Position of the fast scroll index overlay window.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
floating | 0 | |
atThumb | 1 |
Drawable to use as the fast scroll index preview window background when shown on the left.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Drawable to use as the fast scroll index preview window background when shown on the right.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Text color for the fast scroll index overlay. Make sure it plays nicely with fastScrollPreviewBackground[Left|Right].
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.
Drawable to use as the fast scroll thumb.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Drawable to use as the track for the fast scroll thumb. This may be null.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
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.
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.
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.
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.
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.
Specifies whether to filter touches when the view's window is obscured by
another visible window. When set to true, the view will not receive touches
whenever a toast, dialog or other window appears above the view's window.
Refer to the View
security documentation for more details.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Specify whether an activity should be finished when a "close system windows" request has been made. This happens, for example, when the home key is pressed, when the device is locked, when a system dialog showing recent applications is displayed, etc.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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.
The first day of week according to Calendar
.
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.
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.
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.
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.
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.
The color for the dates of the selected month.
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
".
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.
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
".
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. |
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.
The fragment that is displayed when the user selects this 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.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
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.
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.
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.
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.
May be a floating point value, such as "1.2
".
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), 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.
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.
May be a floating point value, such as "1.2
".
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), 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.
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
".
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
".
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.
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
".
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
".
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.
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.
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.
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.
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. |
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.
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.
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.
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.
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. |
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
".
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
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
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
".
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.
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.
Flag indicating whether the application's rendering should be hardware accelerated if possible. This flag is turned off by default, both for applications and activities.
This flag can be set on the application and any activity declared in the manifest. When enabled for the application, each activity is automatically assumed to be hardware accelerated. This flag can be overriden in the activity tags, either turning it off (if on for the application) or on (if off for the application.)
When this flag is turned on for an activity (either directly or via the application tag), every window created from the activity, including the activity's own window, will be hardware accelerated, if possible.
Please refer to the documentation of
FLAG_HARDWARE_ACCELERATED
for more information on how to control this flag programmatically.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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.
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
".
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.
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.
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.
Specifies a drawable to use for the 'home as up' indicator.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Specifies a layout to use for the "home" section of the action 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
".
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
".
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.
Default HorizontalScrollView 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
".
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.
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.
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
".
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
".
The default state of the SearchView. If true, it will be iconified when not in use and expanded when clicked.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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
".
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
".
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
".
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
".
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.
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.
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
".
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
".
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
".
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 . |
actionPrevious | 0x00000007 | The action key performs a "previous"
operation, taking the user to the previous field that will accept text.
Corresponds to
IME_ACTION_PREVIOUS . |
flagNoFullscreen | 0x2000000 | Used to request that the IME never go
into fullscreen mode. Applications need to be aware that the flag is not
a guarantee, and not all IMEs will respect it.
Corresponds to
|
flagNavigatePrevious | 0x4000000 | Like flagNavigateNext, but
specifies there is something interesting that a backward navigation
can focus on. If the user selects the IME's facility to backward
navigate, this will show up in the application as an actionPrevious
at InputConnection.performEditorAction(int) .
Corresponds to
|
flagNavigateNext | 0x8000000 | Used to specify that there is something
interesting that a forward navigation can focus on. This is like using
actionNext, except allows the IME to be multiline (with
an enter key) as well as provide forward navigation. Note that some
IMEs may not be able to do this, especially when running on a small
screen where there is little space. In that case it does not need to
present a UI for this option. Like actionNext, if the
user selects the IME's facility to forward navigate, this will show up
in the application at
InputConnection.performEditorAction(int) .
Corresponds to
|
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
|
The extra value of the subtype. This string can be any string and will be passed to the IME when the framework calls the IME with the subtype.
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.
The locale of the subtype. This string should be a locale (e.g. en_US, fr_FR...) and will be passed to the IME when the framework calls the IME with the subtype. This is also used by the framework to know the supported locales of the IME.
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.
The mode of the subtype. This string can be a mode (e.g. voice, keyboard...) and this string will be passed to the IME when the framework calls the IME with the subtype.
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.
Flag declaring this activity to be 'immersive'; immersive activities should not be interrupted with other activities or notifications.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Identifier for the animation to use when a view 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
".
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.
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.
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.
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. |
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
".
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.
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.
Specifies a style resource to use for an indeterminate progress spinner.
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 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.
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.
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
".
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.
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
".
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.
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 constant is deprecated.
Use inputType instead.
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.
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 . |
textWebEmailAddress | 0x000000d1 | Text that will be used as an e-mail address on a web form. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_WEB_EMAIL_ADDRESS . |
textWebPassword | 0x000000e1 | Text that will be used as a password on a web form. Corresponds to
TYPE_CLASS_TEXT |
TYPE_TEXT_VARIATION_WEB_PASSWORD . |
number | 0x00000002 | A numeric only field. Corresponds to
TYPE_CLASS_NUMBER |
TYPE_NUMBER_VARIATION_NORMAL . |
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 . |
numberPassword | 0x00000012 | A numeric password field. Corresponds to
TYPE_CLASS_NUMBER |
TYPE_NUMBER_VARIATION_PASSWORD . |
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 . |
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.
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.
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.
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.
The default install location defined by an application.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
auto | 0 | Let the system decide ideal install location |
internalOnly | 1 | Explicitly request to be installed on internal phone storage only. |
preferExternal | 2 | Prefer to be installed on SD card. There is no guarantee that the system will honor this request. The application might end up being installed on internal storage if external media is unavailable or too full. |
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Set to true to tell the SyncManager to automatically call setIsSyncable(..., ..., 1) for the SyncAdapter instead of issuaing an initialization sync to the SyncAdapter. Defaults to false.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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.
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.
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.
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.
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.
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.
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
".
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.
Specifies padding that should be applied to the left and right sides of system-provided items in the bar.
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.
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
".
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.
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.
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
".
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. |
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.
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
".
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.
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.
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.
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
".
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.
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.
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.
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.
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 enum provides the same keycode values as can be found in
KeyEvent
.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
KEYCODE_UNKNOWN | 0 | |
KEYCODE_SOFT_LEFT | 1 | |
KEYCODE_SOFT_RIGHT | 2 | |
KEYCODE_HOME | 3 | |
KEYCODE_BACK | 4 | |
KEYCODE_CALL | 5 | |
KEYCODE_ENDCALL | 6 | |
KEYCODE_0 | 7 | |
KEYCODE_1 | 8 | |
KEYCODE_2 | 9 | |
KEYCODE_3 | 10 | |
KEYCODE_4 | 11 | |
KEYCODE_5 | 12 | |
KEYCODE_6 | 13 | |
KEYCODE_7 | 14 | |
KEYCODE_8 | 15 | |
KEYCODE_9 | 16 | |
KEYCODE_STAR | 17 | |
KEYCODE_POUND | 18 | |
KEYCODE_DPAD_UP | 19 | |
KEYCODE_DPAD_DOWN | 20 | |
KEYCODE_DPAD_LEFT | 21 | |
KEYCODE_DPAD_RIGHT | 22 | |
KEYCODE_DPAD_CENTER | 23 | |
KEYCODE_VOLUME_UP | 24 | |
KEYCODE_VOLUME_DOWN | 25 | |
KEYCODE_POWER | 26 | |
KEYCODE_CAMERA | 27 | |
KEYCODE_CLEAR | 28 | |
KEYCODE_A | 29 | |
KEYCODE_B | 30 | |
KEYCODE_C | 31 | |
KEYCODE_D | 32 | |
KEYCODE_E | 33 | |
KEYCODE_F | 34 | |
KEYCODE_G | 35 | |
KEYCODE_H | 36 | |
KEYCODE_I | 37 | |
KEYCODE_J | 38 | |
KEYCODE_K | 39 | |
KEYCODE_L | 40 | |
KEYCODE_M | 41 | |
KEYCODE_N | 42 | |
KEYCODE_O | 43 | |
KEYCODE_P | 44 | |
KEYCODE_Q | 45 | |
KEYCODE_R | 46 | |
KEYCODE_S | 47 | |
KEYCODE_T | 48 | |
KEYCODE_U | 49 | |
KEYCODE_V | 50 | |
KEYCODE_W | 51 | |
KEYCODE_X | 52 | |
KEYCODE_Y | 53 | |
KEYCODE_Z | 54 | |
KEYCODE_COMMA | 55 | |
KEYCODE_PERIOD | 56 | |
KEYCODE_ALT_LEFT | 57 | |
KEYCODE_ALT_RIGHT | 58 | |
KEYCODE_SHIFT_LEFT | 59 | |
KEYCODE_SHIFT_RIGHT | 60 | |
KEYCODE_TAB | 61 | |
KEYCODE_SPACE | 62 | |
KEYCODE_SYM | 63 | |
KEYCODE_EXPLORER | 64 | |
KEYCODE_ENVELOPE | 65 | |
KEYCODE_ENTER | 66 | |
KEYCODE_DEL | 67 | |
KEYCODE_GRAVE | 68 | |
KEYCODE_MINUS | 69 | |
KEYCODE_EQUALS | 70 | |
KEYCODE_LEFT_BRACKET | 71 | |
KEYCODE_RIGHT_BRACKET | 72 | |
KEYCODE_BACKSLASH | 73 | |
KEYCODE_SEMICOLON | 74 | |
KEYCODE_APOSTROPHE | 75 | |
KEYCODE_SLASH | 76 | |
KEYCODE_AT | 77 | |
KEYCODE_NUM | 78 | |
KEYCODE_HEADSETHOOK | 79 | |
KEYCODE_FOCUS | 80 | |
KEYCODE_PLUS | 81 | |
KEYCODE_MENU | 82 | |
KEYCODE_NOTIFICATION | 83 | |
KEYCODE_SEARCH | 84 | |
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 | |
KEYCODE_PAGE_UP | 92 | |
KEYCODE_PAGE_DOWN | 93 | |
KEYCODE_PICTSYMBOLS | 94 | |
KEYCODE_SWITCH_CHARSET | 95 | |
KEYCODE_BUTTON_A | 96 | |
KEYCODE_BUTTON_B | 97 | |
KEYCODE_BUTTON_C | 98 | |
KEYCODE_BUTTON_X | 99 | |
KEYCODE_BUTTON_Y | 100 | |
KEYCODE_BUTTON_Z | 101 | |
KEYCODE_BUTTON_L1 | 102 | |
KEYCODE_BUTTON_R1 | 103 | |
KEYCODE_BUTTON_L2 | 104 | |
KEYCODE_BUTTON_R2 | 105 | |
KEYCODE_BUTTON_THUMBL | 106 | |
KEYCODE_BUTTON_THUMBR | 107 | |
KEYCODE_BUTTON_START | 108 | |
KEYCODE_BUTTON_SELECT | 109 | |
KEYCODE_BUTTON_MODE | 110 | |
KEYCODE_ESCAPE | 111 | |
KEYCODE_FORWARD_DEL | 112 | |
KEYCODE_CTRL_LEFT | 113 | |
KEYCODE_CTRL_RIGHT | 114 | |
KEYCODE_CAPS_LOCK | 115 | |
KEYCODE_SCROLL_LOCK | 116 | |
KEYCODE_META_LEFT | 117 | |
KEYCODE_META_RIGHT | 118 | |
KEYCODE_FUNCTION | 119 | |
KEYCODE_SYSRQ | 120 | |
KEYCODE_BREAK | 121 | |
KEYCODE_MOVE_HOME | 122 | |
KEYCODE_MOVE_END | 123 | |
KEYCODE_INSERT | 124 | |
KEYCODE_FORWARD | 125 | |
KEYCODE_MEDIA_PLAY | 126 | |
KEYCODE_MEDIA_PAUSE | 127 | |
KEYCODE_MEDIA_CLOSE | 128 | |
KEYCODE_MEDIA_EJECT | 129 | |
KEYCODE_MEDIA_RECORD | 130 | |
KEYCODE_F1 | 131 | |
KEYCODE_F2 | 132 | |
KEYCODE_F3 | 133 | |
KEYCODE_F4 | 134 | |
KEYCODE_F5 | 135 | |
KEYCODE_F6 | 136 | |
KEYCODE_F7 | 137 | |
KEYCODE_F8 | 138 | |
KEYCODE_F9 | 139 | |
KEYCODE_F10 | 140 | |
KEYCODE_F11 | 141 | |
KEYCODE_F12 | 142 | |
KEYCODE_NUM_LOCK | 143 | |
KEYCODE_NUMPAD_0 | 144 | |
KEYCODE_NUMPAD_1 | 145 | |
KEYCODE_NUMPAD_2 | 146 | |
KEYCODE_NUMPAD_3 | 147 | |
KEYCODE_NUMPAD_4 | 148 | |
KEYCODE_NUMPAD_5 | 149 | |
KEYCODE_NUMPAD_6 | 150 | |
KEYCODE_NUMPAD_7 | 151 | |
KEYCODE_NUMPAD_8 | 152 | |
KEYCODE_NUMPAD_9 | 153 | |
KEYCODE_NUMPAD_DIVIDE | 154 | |
KEYCODE_NUMPAD_MULTIPLY | 155 | |
KEYCODE_NUMPAD_SUBTRACT | 156 | |
KEYCODE_NUMPAD_ADD | 157 | |
KEYCODE_NUMPAD_DOT | 158 | |
KEYCODE_NUMPAD_COMMA | 159 | |
KEYCODE_NUMPAD_ENTER | 160 | |
KEYCODE_NUMPAD_EQUALS | 161 | |
KEYCODE_NUMPAD_LEFT_PAREN | 162 | |
KEYCODE_NUMPAD_RIGHT_PAREN | 163 | |
KEYCODE_VOLUME_MUTE | 164 | |
KEYCODE_INFO | 165 | |
KEYCODE_CHANNEL_UP | 166 | |
KEYCODE_CHANNEL_DOWN | 167 | |
KEYCODE_ZOOM_IN | 168 | |
KEYCODE_ZOOM_OUT | 169 | |
KEYCODE_TV | 170 | |
KEYCODE_WINDOW | 171 | |
KEYCODE_GUIDE | 172 | |
KEYCODE_DVR | 173 | |
KEYCODE_BOOKMARK | 174 | |
KEYCODE_CAPTIONS | 175 | |
KEYCODE_SETTINGS | 176 | |
KEYCODE_TV_POWER | 177 | |
KEYCODE_TV_INPUT | 178 | |
KEYCODE_STB_POWER | 179 | |
KEYCODE_STB_INPUT | 180 | |
KEYCODE_AVR_POWER | 181 | |
KEYCODE_AVR_INPUT | 182 | |
KEYCODE_PROG_GRED | 183 | |
KEYCODE_PROG_GREEN | 184 | |
KEYCODE_PROG_YELLOW | 185 | |
KEYCODE_PROG_BLUE | 186 | |
KEYCODE_APP_SWITCH | 187 |
Whether the application in question should be terminated after its settings have been restored during a full-system restore operation. Single-package restore operations will never cause the application to be shut down. Full-system restore operations typically only occur once, when the phone is first set up. Third-party applications will not usually need to use this attribute.
The default is true
, which means that after the application
has finished processing its data during a full-system restore, it will be
terminated.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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.
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.
Request that your application's processes be created with a large Dalvik heap. This applies to all processes created for the application. It only applies to the first application loaded into a process; if using a sharedUserId to allow multiple applications to use a process, they all must use this option consistently or will get unpredictable results.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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.
Specify how an activity should be launched. See the Tasks and Back Stack document for important information on how these options impact the behavior of your application.
If this attribute is not specified, standard
launch
mode will be used. Note that the particular launch behavior can
be changed in some ways at runtime through the
Intent
flags
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
Tasks and Back
Stack document for more details about 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
Tasks and Back
Stack document for more details about tasks. |
Specifies the type of layer backing this view. The default value is none.
Refer to setLayerType(int, android.graphics.Paint)
for more information.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
none | 0 | Don't use a layer. |
software | 1 | Use a software layer. Refer to {@link android.view.View#setLayerType(int, android.graphics.Paint) for more information. |
hardware | 2 | Use a hardware layer. Refer to {@link android.view.View#setLayerType(int, android.graphics.Paint) for more information. |
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
".
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
".
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
".
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
".
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
".
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
".
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.
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.
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.
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.
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
".
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
".
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.
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
".
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.
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.
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.
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.
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. |
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).
This constant is deprecated starting from API Level 8 and
is replaced by match_parent . |
match_parent | -1 | The view should be as big as its parent (minus padding). Introduced in API Level 8. |
wrap_content | -2 | The view should be only big enough to enclose its content (plus padding). |
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.
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.
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.
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.
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.
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.
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.
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
".
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
".
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).
This constant is deprecated starting from API Level 8 and
is replaced by match_parent . |
match_parent | -1 | The view should be as big as its parent (minus padding). Introduced in API Level 8. |
wrap_content | -2 | The view should be only big enough to enclose its content (plus 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.
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.
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.
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.
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.
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.
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.
Drawable used as a background for selected list 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
".
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
".
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
".
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 list divider used in alert dialogs.
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 ListPopupWindow 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
".
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.
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
".
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
".
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
".
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
".
A Drawable resource providing an extended graphical logo for its associated item. Use with the application tag (to supply a default logo for all application components), or with the activity, receiver, service, or instrumentation tag (to supply a specific logo for that component). It may also be used with the intent-filter tag to supply a logo to show to the user when an activity is being selected based on a particular Intent.
The given logo will be used to display to the user a graphical representation of its associated component; for example as the header in the Action Bar. The primary differences between an icon and a logo are that logos are often wider and more detailed, and are used without an accompanying text caption. This must be a reference to a Drawable resource containing the image definition.
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 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.
Defines whether the animator loops to the first view once it has reached the end of 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.
Name of the activity to be launched to manage application's space on device. The specified activity gets automatically launched when the application's space needs to be managed and is usually invoked through user actions. Applications can thus provide their own custom behavior for managing space for various scenarios like out of memory conditions. This is an optional attribute and applications can choose not to specify a default activity to manage space.
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.
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
".
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. |
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.
The minimal date shown by this calendar view in mm/dd/yyyy format.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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.
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.
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.
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.
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.
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.
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 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.
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.
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.
When set to true, all children with a weight will be considered having the minimum size of the largest child. If false, all children are measured normally.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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. |
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.
The minimal date shown by this calendar view in mm/dd/yyyy format.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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.
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.
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.
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 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.
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.
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. |
'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
".
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.
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.
The type of navigation to use.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
normal | 0 | Normal static title text |
listMode | 1 | The action bar will use a selection list for navigation. |
tabMode | 2 | The action bar will use a series of horizontal tabs for navigation. |
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.
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
".
Defines the next view to give focus to when the next focus is
FOCUS_FORWARD
If the reference refers to a view that does not exist or is part
of a hierarchy that is invisible, a RuntimeException
will result when the reference is accessed.
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 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
".
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
".
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
".
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.
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.
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 |
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 constant is deprecated.
Use inputType instead.
If set, specifies that this TextView has a numeric input method. The default is false.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
integer | 0x01 | Input is numeric. |
signed | 0x003 | Input is numeric, with sign allowed. |
decimal | 0x05 | Input is numeric, with decimals allowed. |
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.
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.
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.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
opaque | -1 | |
transparent | -2 | |
translucent | -3 |
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.
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.
Name of the property being animated.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
together | 0 | child animations should be played together. |
sequentially | 1 | child animations should be played sequentially, in the same order as the xml. |
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.
Standard orientation constant.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
horizontal | 0 | Defines an horizontal widget. |
vertical | 1 | Defines a vertical widget. |
Identifier for the animation to use when a view is 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
".
Drawable to draw below list content.
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
".
Drawable to draw above list content.
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
".
Defines over-scrolling behavior. This property is used only if the View is scrollable. Over-scrolling is the ability for the user to receive feedback when attempting to scroll beyond meaningful content.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
always | 0 | Always show over-scroll effects, even if the content fits entirely within the available space. |
ifContentScrolls | 1 | Only show over-scroll effects if the content is large enough to meaningfully scroll. |
never | 2 | Never show over-scroll effects. |
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.
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.
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.
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.
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.
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
".
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
".
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
".
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
".
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 constant is deprecated.
Use inputType instead.
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.
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.
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.
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.
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.
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.
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.
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 constant is deprecated.
Use inputType instead.
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.
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.
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.
Must 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 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
".
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.
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
".
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
".
Default PopupMenu 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
".
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
".
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.
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.
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
".
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
".
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
".
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
".
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
".
A preview of what the AppWidget will look like after it's configured. If not supplied, the AppWidget's icon 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
".
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.
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.
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.
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.
Specifies the horizontal padding on either end for an embedded progress bar.
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.
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
Name of the property being animated.
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.
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. |
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.
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.
An optional query hint string to be displayed in the empty query field.
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.
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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.
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.
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
".
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
".
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
".
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.
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 |
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. |
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.
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.
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 |
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 |
The touch screen type used by an application.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
undefined | 0 | |
notouch | 1 | |
stylus | 2 | |
finger | 3 |
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.
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.
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
".
Indicate that the application is prepared to attempt a restore of any
backed-up dataset, even if the backup is apparently from a newer version
of the application than is currently installed on the device. Setting
this attribute to true
will permit the Backup Manager to
attempt restore even when a version mismatch suggests that the data are
incompatible. Use with caution!
The default value of this attribute is false
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This constant is deprecated.
This attribute is not used by the Android operating system.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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.
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
".
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. |
rotation of the view, in degrees.
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.
rotation of the view around the x axis, in degrees.
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.
rotation of the view around the y axis, in degrees.
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.
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.
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. |
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.
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.
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. |
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.
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 |
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.
scale of the view in the x direction.
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.
scale of the view in the y direction.
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.
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.
Specifies a compatible screen density, as per the device configuration screen density bins.
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 |
---|---|---|
ldpi | 120 | A low density screen, approximately 120dpi. |
mdpi | 160 | A medium density screen, approximately 160dpi. |
hdpi | 240 | A high density screen, approximately 240dpi. |
xhdpi | 320 | An extra high density screen, approximately 320dpi. |
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, ignoring sensor data. |
portrait | 1 | Would like to have the screen in a portrait orientation: that is, with the display taller than it is wide, ignoring sensor data. |
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: the display will not rotate when the user moves the device. |
sensorLandscape | 6 | Would like to have the screen in landscape orientation, but can use the sensor to change which direction the screen is facing. |
sensorPortait | 7 | Would like to have the screen in portrait orientation, but can use the sensor to change which direction the screen is facing. |
reverseLandscape | 8 | Would like to have the screen in landscape orientation, turned in the opposite direction from normal landscape. |
reversePortait | 9 | Would like to have the screen in portrait orientation, turned in the opposite direction from normal portrait. |
fullSensor | 10 | Orientation is determined by a physical orientation sensor: the display will rotate based on how the user moves the device. This allows any of the 4 possible rotations, regardless of what the device will normally do (for example some devices won't normally use 180 degree rotation). |
Specifies a compatible screen size, as per the device configuration screen size bins.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
small | 200 | A small screen configuration, at least 240x320db. |
normal | 300 | A normal screen configuration, at least 320x480db. |
large | 400 | A large screen configuration, at least 400x530db. |
xlarge | 500 | An extra large screen configuration, at least 600x800db. |
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.
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
".
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.
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.
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.
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.
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.
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.
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.
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 |
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
".
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
".
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
".
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
".
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. |
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 constant is deprecated.
This will create a non-standard UI appearance, because the search bar UI is
changing to use only icons for its buttons.
If supplied, this string will be displayed as the text of the "Search" button. Optional attribute.
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.
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. |
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.
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.
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.
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.
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.
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.
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.
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.
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
".
Style for segmented buttons - a container that houses several buttons with the appearance of a singel button broken into segments.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
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.
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.
Background drawable for standalone items that need focus/pressed states.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Drawable for the vertical bar shown at the beggining and at the end of a selected date.
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 background color for the selected week.
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
".
Component name of an activity that allows the user to modify the settings for this service.
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.
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.
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.
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.
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.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
rectangle | 0 | |
oval | 1 | |
line | 2 | |
ring | 3 |
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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.
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
".
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.
How this item should display in the Action Bar, if present.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
never | 0 | Never show this item in an action bar, show it in the overflow menu instead. Mutually exclusive with "ifRoom" and "always". |
ifRoom | 1 | Show this item in an action bar if there is room for it as determined by the system. Favor this option over "always" where possible. Mutually exclusive with "never" and "always". |
always | 2 | Always show this item in an actionbar, even if it would override the system's limits of how much stuff to put there. This may make your action bar look bad on some screens. In most cases you should use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". |
withText | 4 | When this item is shown as an action in the action bar, show a text label with it even if it has an icon representation. |
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.
Setting for which dividers to show.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
none | 0 | |
beginning | 1 | |
middle | 2 | |
end | 4 |
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.
Whether do show week numbers.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
The number of weeks to be shown.
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.
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 constant is deprecated.
This attribute is deprecated and is replaced by the textMultiLine flag
in the inputType attribute. Use caution when altering existing layouts, as the
default value of singeLine is false (multi-line mode), but if you specify any
value for inputType, the default is single-line mode. (If both singleLine and
inputType attributes are found, the inputType flags will override the value of
singleLine.)
Constrains the text to a single horizontally scrolling line instead of letting it wrap onto multiple lines, and advances focus instead of inserting a newline when you press the enter key. 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.
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
".
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.
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.
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.
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.
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
".
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
".
Display mode for spinner options.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
dialog | 0 | Spinner options will be presented to the user as a dialog window. |
dropdown | 1 | Spinner options will be presented to the user as an inline dropdown anchored to the spinner widget itself. |
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
".
Whether the spinners are shown.
Must be a boolean value, either "true
" or "false
".
This may also be a reference 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 whether this ViewGroup should split MotionEvents
to separate child views during touch event dispatch.
If false (default), touch events will be dispatched to
the child view where the first pointer went down until
the last pointer goes up.
If true, touch events may be dispatched to multiple children.
MotionEvents for each pointer will be dispatched to the child
view where the initial ACTION_DOWN event happened.
See setMotionEventSplittingEnabled(boolean)
for more information.
Must be a boolean value, either "true
" or "false
".
This may also be a reference 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 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
".
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.
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
".
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.
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.
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.
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.
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.
State value for StateListDrawable
,
indicating that the Drawable is in a view that is hardware accelerated.
This means that the device can at least render a full-screen scaled
bitmap with one layer of text and bitmaps composited on top of it
at 60fps. When this is set, the colorBackgroundCacheHint will be
ignored even if it specifies a solid color, since that optimization
is not needed.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
State value for StateListDrawable
,
set when a view or its parent has been "activated" meaning the user has currently
marked it as being of interest. This is an alternative representation of
state_checked for when the state should be propagated down the view hierarchy.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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.
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.
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.
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.
State value for StateListDrawable
,
set when a view 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.
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.
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.
State value for StateListDrawable
,
set when a view has input 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.
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.
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.
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.
State identifier indicating a TextView has a multi-line layout.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
State value for StateListDrawable
,
set when the user is pressing down in a view.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
State value for StateListDrawable
,
set when a view (or one of its parents) is currently selected.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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.
State value for StateListDrawable
,
set when a view's window has input 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.
A resource id of a static 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
".
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.
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 |
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.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
none | 0 | |
spacingWidth | 1 | |
columnWidth | 2 | |
spacingWidthUniform | 3 |
Specifies subtitle text used for navigationMode="normal"
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.
Specifies a style to use for subtitle 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
".
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.
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.
The summary for 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.
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.
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.
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.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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.
Determines whether the strip under the tab indicators is drawn 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.
Drawable used to draw the left part of the strip underneath the tabs.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Drawable used to draw the right part of the strip underneath the tabs.
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 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
".
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.
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.
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.
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 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.
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.
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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 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.
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.
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.
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
".
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
".
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
".
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
".
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
".
Text color, typeface, size, and style for the text inside of a popup 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
".
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
".
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
".
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
".
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
".
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
".
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
".
Text color, typeface, size, and style for small text inside of a popup 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
".
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
".
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
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
".
Color of list item text in alert dialogs.
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
".
Color of highlighted 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
".
Color of highlighted text, when used in a light theme.
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
".
Color of hint text (displayed when the field is empty).
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
".
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
".
Color of link text (URLs).
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
".
Color of link text (URLs), when used in a light theme.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
Variation of textEditPasteWindowLayout displayed when the clipboard is empty.
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 layout of the view that is displayed on top of the cursor to paste inside a TextEdit field.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Variation of textEditSidePasteWindowLayout displayed when the clipboard is empty.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Used instead of textEditPasteWindowLayout when the window is moved on the side of the insertion cursor because it would be clipped if it were positioned on top.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
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.
Indicates that the content of a non-editable TextView can be selected. Default value is false. EditText content is always 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.
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.
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.
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.
Reference to a drawable that will be used to display a text selection anchor for positioning the cursor within 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
".
Reference to a drawable that will be used to display a text selection anchor on the left side of a selection region.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Reference to a drawable that will be used to display a text selection anchor on the right side of a selection region.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Reference to a style that will be used for the window containing a text selection anchor.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Size of text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). Supported values include the following:
DisplayMetrics
for more information.DisplayMetrics
for more information.Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), 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.
Default text typeface style.
Must be one or more (separated by '|') of the following constant values.
Constant | Value | Description |
---|---|---|
normal | 0 | |
bold | 1 | |
italic | 2 |
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
".
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
".
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.
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.
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
".
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.
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
".
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. |
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.
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.
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.
Specifies a style to use for 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
".
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.
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.
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.
May be a floating point value, such as "1.2
".
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), 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.
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.
May be a floating point value, such as "1.2
".
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), 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.
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.
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
".
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
".
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.
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.
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 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. |
x location of the pivot point around which the view will rotate and scale. This xml attribute sets the pivotX property of the View.
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.
y location of the pivot point around which the view will rotate and scale. This xml attribute sets the pivotY property of the View.
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.
translation in x of the view. This value is added post-layout to the left property of the view, which is set by its layout.
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.
translation in y of the view. This value is added post-layout to the left property of the view, which is set by its layout.
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.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
linear | 0 | |
radial | 1 | |
sweep | 2 |
Default text typeface.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
normal | 0 | |
sans | 1 | |
serif | 2 | |
monospace | 3 |
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.
The color for the dates of an unfocused month.
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
".
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.
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.
Use the drawable's intrinsic width and height as minimum size values. Useful if the target drawable is a 9-patch or otherwise should not be scaled down beyond a minimum size.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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.
Value the animation starts from.
May be an integer value, such as "100
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
May be a floating point value, such as "1.2
".
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), 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.
Value the animation animates to.
May be an integer value, such as "100
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
May be a floating point value, such as "1.2
".
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), 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.
The type of valueFrom and valueTo.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
floatType | 0 | valueFrom and valueTo are floats. This is the default value is valueType is unspecified. Note that if either valueFrom or valueTo represent colors (beginning with "#"), then this attribute is ignored and the color values are interpreted as integers. |
intType | 1 | valueFrom and valueTo are integers. |
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.
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.
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.
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.
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
".
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.
Determines which side the vertical scroll bar should be placed on.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
defaultPosition | 0 | Place the scroll bar wherever the system default determines. |
left | 1 | Place the scroll bar on the left. |
right | 2 | Place the scroll bar on the right. |
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), 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.
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. |
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.
Flag indicating whether the application requests the VM to operate in the safe 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.
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.
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.
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.
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.
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. |
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
".
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
".
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
".
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
".
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
".
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
".
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
".
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
".
Default WebTextView 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
".
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
".
The text appearance for the week day abbreviation of the calendar header.
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 color for the week numbers.
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
".
The color for the sepatator line between weeks.
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
".
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.
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
".
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.
Flag indicating whether this window should have an Action Bar in place of the usual title bar.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Flag indicating whether this window's Action Bar should overlay application content. Does nothing if the window would not have an Action Bar.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Flag indicating whether action modes should overlay window content when there is not reserved space for their UI (such as an Action Bar).
Must be a boolean value, either "true
" or "false
".
This may also be a reference 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 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
".
Drawable to use as the overall window background. As of
HONEYCOMB
, this may
be a selector that uses state_accelerated to pick a non-solid
color when running on devices that can draw such a bitmap
with complex compositing on top at 60fps.
There are a few special considerations to use when setting this drawable:
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
Control whether a container should automatically close itself if the user touches outside of it. This only applies to activities and dialogs.
Note: this attribute will only be respected for applications
that are targeting HONEYCOMB
or later.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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
".
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.
Flag indicating that this window should allow touches to be split across other windows that also support split touch. The default value is true for applications with a targetSdkVersion of Honeycomb or newer; false otherwise. When this flag is false, the first pointer that goes down determines the window to which all subsequent touches go until all pointers go up. When this flag is true, each pointer (not necessarily the first) that goes down determines the window to which all subsequent touches of that pointer will go until that pointers go up thereby enabling touches with multiple pointers to be split across multiple windows.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
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
".
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
".
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
".
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.
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
".
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.
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.
The minimum width the window is allowed to be, along the major axis of the screen. That is, when in landscape. Can be either an absolute dimension or a fraction of the screen size in that dimension.
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), 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.
The minimum width the window is allowed to be, along the minor axis of the screen. That is, when in portrait. Can be either an absolute dimension or a fraction of the screen size in that dimension.
May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), 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.
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.
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.
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
".
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.
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. |
adjustNothing | 0x30 | Don't resize or pan the window to make room for the soft input area; the window is never adjusted for it. |
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
".
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.
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
".
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.
A coordinate in the X dimension.
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.
Indicates whether the application supports extra large screen form-factors.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
A coordinate in the Y dimension.
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.
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
".
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. |