alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Android example source code file (attrs.xml)

This example Android source code file (attrs.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Android by Example" TM.

Java - Android tags/keywords

default, defines, drawable, for, if, makes, preference, push, state, textview, the, this, when, whether

The attrs.xml Android example source code

<?xml version="1.0" encoding="utf-8"?>
<!--
/*
 * Copyright (C) 2006-2008 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-->
<resources>
    <!-- These are the standard attributes that make up a complete theme. -->
    <declare-styleable name="Theme">
        <!-- ============== -->
        <!-- Generic styles -->
        <!-- ============== -->
        <eat-comment />

        <!-- Default color of foreground imagery. -->
        <attr name="colorForeground" format="color" />
        <!-- Default color of foreground imagery on an inverted background. -->
        <attr name="colorForegroundInverse" format="color" />
        <!-- Color that matches (as closely as possible) the window background. -->
        <attr name="colorBackground" format="color" />
        <!-- Default disabled alpha for widgets that set enabled/disabled alpha programmatically. -->
        <attr name="disabledAlpha" format="float" />
        <!-- Default background dim amount when a menu, dialog, or something similar pops up. -->
        <attr name="backgroundDimAmount" format="float" />

        <!-- =========== -->
        <!-- Text styles -->
        <!-- =========== -->
        <eat-comment />

        <!-- Default appearance of text: color, typeface, size, and style -->
        <attr name="textAppearance" format="reference" />
        <!-- Default appearance of text against an inverted background:
             color, typeface, size, and style -->
        <attr name="textAppearanceInverse" format="reference" />

        <!-- The most prominent text color, for the  -->
        <attr name="textColorPrimary" format="reference|color" />
        <!-- Secondary text color -->
        <attr name="textColorSecondary" format="reference|color" />
        <!-- Tertiary text color -->
        <attr name="textColorTertiary" format="reference|color" />

        <!-- Primary inverse text color, useful for inverted backgrounds -->
        <attr name="textColorPrimaryInverse" format="reference|color" />
        <!-- Secondary inverse text color, useful for inverted backgrounds -->
        <attr name="textColorSecondaryInverse" format="reference|color" />
        <!-- Tertiary inverse text color, useful for inverted backgrounds -->
        <attr name="textColorTertiaryInverse" format="reference|color" />

        <!-- Inverse hint text color -->
        <attr name="textColorHintInverse" format="reference|color" />
        
        <!-- Bright text color. Only differentiates based on the disabled state. -->
        <attr name="textColorPrimaryDisableOnly" format="reference|color" />

        <!-- 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. -->
        <attr name="textColorPrimaryNoDisable" format="reference|color" />
        <!-- Dim text color. This does not differentiate the disabled state. -->
        <attr name="textColorSecondaryNoDisable" format="reference|color" />

        <!-- Bright inverse text color. This does not differentiate the disabled state. -->
        <attr name="textColorPrimaryInverseNoDisable" format="reference|color" />
        <!-- Dim inverse text color. This does not differentiate the disabled state. -->
        <attr name="textColorSecondaryInverseNoDisable" format="reference|color" />

        <!-- Text color, typeface, size, and style for "large" text. Defaults to primary text color. -->
        <attr name="textAppearanceLarge" format="reference" />
        <!-- Text color, typeface, size, and style for "medium" text. Defaults to primary text color. -->
        <attr name="textAppearanceMedium" format="reference" />
        <!-- Text color, typeface, size, and style for "small" text. Defaults to secondary text color. -->
        <attr name="textAppearanceSmall" format="reference" />

        <!-- Text color, typeface, size, and style for "large" inverse text. Defaults to primary inverse text color. -->
        <attr name="textAppearanceLargeInverse" format="reference" />
        <!-- Text color, typeface, size, and style for "medium" inverse text. Defaults to primary inverse text color. -->
        <attr name="textAppearanceMediumInverse" format="reference" />
        <!-- Text color, typeface, size, and style for "small" inverse text. Defaults to secondary inverse text color. -->
        <attr name="textAppearanceSmallInverse" format="reference" />

        <!-- Text color, typeface, size, and style for the text inside of a button. -->
        <attr name="textAppearanceButton" format="reference" />
        
        <!-- Drawable to use for check marks -->
        <attr name="textCheckMark" format="reference" />
        <attr name="textCheckMarkInverse" format="reference" />

        <!-- Drawable to use for multiple choice indicators-->
        <attr name="listChoiceIndicatorMultiple" format="reference" />
        
        <!-- Drawable to use for single choice indicators-->
        <attr name="listChoiceIndicatorSingle" format="reference" />

        <!-- ============= -->
        <!-- Button styles -->
        <!-- ============= -->
        <eat-comment />

        <!-- Normal Button style. -->
        <attr name="buttonStyle" format="reference" />

        <!-- Small Button style. -->
        <attr name="buttonStyleSmall" format="reference" />

        <!-- Button style to inset into an EditText. -->
        <attr name="buttonStyleInset" format="reference" />

        <!-- ToggleButton style. -->
        <attr name="buttonStyleToggle" format="reference" />

        <!-- ============== -->
        <!-- Gallery styles -->
        <!-- ============== -->
        <eat-comment />
        
        <!-- The preferred background for gallery items. This should be set
             as the background of any Views you provide from the Adapter. -->
        <attr name="galleryItemBackground" format="reference" />

        <!-- =========== -->
        <!-- List styles -->
        <!-- =========== -->
        <eat-comment />

        <!-- The preferred list item height -->
        <attr name="listPreferredItemHeight" format="dimension" />
        <!-- The drawable for the list divider -->
        <attr name="listDivider" format="reference" />
        <!-- TextView style for list separators. -->
        <attr name="listSeparatorTextViewStyle" format="reference" />
        <!-- 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. --> 
        <attr name="expandableListPreferredItemPaddingLeft" format="dimension" />
        <!-- The preferred left padding for an expandable list item that is a child.
             If this is not provided, it defaults to the expandableListPreferredItemPaddingLeft. --> 
        <attr name="expandableListPreferredChildPaddingLeft" format="dimension" />
        <!-- The preferred left bound for an expandable list item's indicator. For a child-specific
             indicator, use expandableListPreferredChildIndicatorLeft. --> 
        <attr name="expandableListPreferredItemIndicatorLeft" format="dimension" />
        <!-- The preferred right bound for an expandable list item's indicator. For a child-specific
             indicator, use expandableListPreferredChildIndicatorRight. --> 
        <attr name="expandableListPreferredItemIndicatorRight" format="dimension" />
        <!-- The preferred left bound for an expandable list child's indicator. --> 
        <attr name="expandableListPreferredChildIndicatorLeft" format="dimension" />
        <!-- The preferred right bound for an expandable list child's indicator. --> 
        <attr name="expandableListPreferredChildIndicatorRight" format="dimension" />

        <!-- ============= -->
        <!-- Window styles -->
        <!-- ============= -->
        <eat-comment />

        <!-- Drawable to use as the overall window background.  There are a
             few special considerations you should use when settings this
             drawable:
             <ul>
             <li> This information will be used to infer the pixel format
                  for your window's surface.  If the drawable has any
                  non-opaque pixels, your window will be translucent
                  (32 bpp).
             <li> If you want to draw the entire background
                  yourself, you should set this drawable to some solid
                  color that closely matches that background (so the
                  system's preview of your window will match), and
                  then in code manually set your window's background to
                  null so it will not be drawn.
             </ul> -->
        <attr name="windowBackground" format="reference" />
        <!-- Drawable to use as a frame around the window. -->
        <attr name="windowFrame" format="reference" />
        <!-- Flag indicating whether there should be no title on this window. -->
        <attr name="windowNoTitle" format="boolean" />
        <!-- Flag indicating whether this window should fill the entire screen. -->
        <attr name="windowFullscreen" format="boolean" />
        <!-- Flag indicating whether this is a floating window. -->
        <attr name="windowIsFloating" format="boolean" />
        <!-- Flag indicating whether this is a translucent window. -->
        <attr name="windowIsTranslucent" format="boolean" />
        <!-- This Drawable is overlaid over the foreground of the Window's content area, usually
             to place a shadow below the title.  -->
        <attr name="windowContentOverlay" format="reference" />
        <!-- The style resource to use for a window's title bar height. -->
        <attr name="windowTitleSize" format="dimension" />
        <!-- The style resource to use for a window's title text. -->
        <attr name="windowTitleStyle" format="reference" />
        <!-- The style resource to use for a window's title area. -->
        <attr name="windowTitleBackgroundStyle" format="reference" />

        <!-- Reference to a style resource holding
             the set of window animations to use, which can be
             any of the attributes defined by
             {@link android.R.styleable#WindowAnimation}. -->
        <attr name="windowAnimationStyle" format="reference" />
    
        <!-- ============ -->
        <!-- Alert Dialog styles -->
        <!-- ============ -->
        <eat-comment />
        <attr name="alertDialogStyle" format="reference" />
        
        <!-- ============ -->
        <!-- Panel styles -->
        <!-- ============ -->
        <eat-comment />

        <!-- The background of a panel when it is inset from the left and right edges of the screen. -->
        <attr name="panelBackground" format="reference|color" />
        <!-- The background of a panel when it extends to the left and right edges of the screen. -->
        <attr name="panelFullBackground" format="reference|color" />
        <!-- Default color of foreground panel imagery. -->
        <attr name="panelColorForeground" format="reference|color" />
        <!-- Color that matches (as closely as possible) the panel background. -->
        <attr name="panelColorBackground" format="reference|color" />
        <!-- Default appearance of panel text. -->
        <attr name="panelTextAppearance" format="reference" />

        <!-- =================== -->
        <!-- Other widget styles -->
        <!-- =================== -->
        <eat-comment />

        <!-- Default AbsListView style. -->
        <attr name="absListViewStyle" format="reference" />
        <!-- Default AutoCompleteTextView style. -->
        <attr name="autoCompleteTextViewStyle" format="reference" />
        <!-- Default Checkbox style. -->
        <attr name="checkboxStyle" format="reference" />
        <!-- Default ListView style for drop downs. -->
        <attr name="dropDownListViewStyle" format="reference" />
        <!-- Default EditText style. -->
        <attr name="editTextStyle" format="reference" />
        <!-- Default ExpandableListView style. -->
        <attr name="expandableListViewStyle" format="reference" />
        <!-- Default Gallery style. -->
        <attr name="galleryStyle" format="reference" />
        <!-- Default GridView style. -->
        <attr name="gridViewStyle" format="reference" />
        <!-- The style resource to use for an ImageButton -->
        <attr name="imageButtonStyle" format="reference" />
        <!-- The style resource to use for an ImageButton that is an image well -->
        <attr name="imageWellStyle" format="reference" />
        <!-- Default ListView style. -->
        <attr name="listViewStyle" format="reference" />
        <!-- ListView with white background. -->
        <attr name="listViewWhiteStyle" format="reference" />
        <!-- Default PopupWindow style. -->
        <attr name="popupWindowStyle" format="reference" />
        <!-- Default ProgressBar style. This is a medium circular progress bar. -->
        <attr name="progressBarStyle" format="reference" />
        <!-- Horizontal ProgressBar style. This is a horizontal progress bar. -->
        <attr name="progressBarStyleHorizontal" format="reference" />
        <!-- Small ProgressBar style. This is a small circular progress bar. -->
        <attr name="progressBarStyleSmall" format="reference" />
        <!-- Small ProgressBar in title style. This is a small circular progress bar that will be placed in title bars. -->
        <attr name="progressBarStyleSmallTitle" format="reference" />
        <!-- Large ProgressBar style. This is a large circular progress bar. -->
        <attr name="progressBarStyleLarge" format="reference" />
        <!-- Default SeekBar style. -->
        <attr name="seekBarStyle" format="reference" />
        <!-- Default RatingBar style. -->
        <attr name="ratingBarStyle" format="reference" />
        <!-- Indicator RatingBar style. -->
        <attr name="ratingBarStyleIndicator" format="reference" />
        <!-- Small indicator RatingBar style. -->
        <attr name="ratingBarStyleSmall" format="reference" />
        <!-- Default RadioButton style. -->
        <attr name="radioButtonStyle" format="reference" />
        <!-- Default ScrollView style. -->
        <attr name="scrollViewStyle" format="reference" />
        <!-- Default Spinner style. -->
        <attr name="spinnerStyle" format="reference" />
        <!-- Default Star style. -->
        <attr name="starStyle" format="reference" />
        <!-- Default TabWidget style. -->
        <attr name="tabWidgetStyle" format="reference" />
        <!-- Default TextView style. -->
        <attr name="textViewStyle" format="reference" />
        <!-- Default WebView style. -->
        <attr name="webViewStyle" format="reference" />
        <!-- Default style for drop down items. -->
        <attr name="dropDownItemStyle" format="reference" />
         <!-- Default style for spinner drop down items. -->
        <attr name="spinnerDropDownItemStyle" format="reference" />
        <!-- Default style for drop down hints. -->
        <attr name="dropDownHintAppearance" format="reference" />
        <!-- Default spinner item style. -->
        <attr name="spinnerItemStyle" format="reference" />
        <!-- Default MapView style. -->
        <attr name="mapViewStyle" format="reference" />

        <!-- =================== -->
        <!-- Preference styles   -->
        <!-- =================== -->
        <eat-comment />
        
        <!-- Default style for PreferenceScreen. -->
        <attr name="preferenceScreenStyle" format="reference" />
        <!-- Default style for PreferenceCategory. -->
        <attr name="preferenceCategoryStyle" format="reference" />
        <!-- Default style for Preference. -->
        <attr name="preferenceStyle" format="reference" />
        <!-- Default style for informational Preference. -->
        <attr name="preferenceInformationStyle" format="reference" />
        <!-- Default style for CheckBoxPreference. -->
        <attr name="checkBoxPreferenceStyle" format="reference" />
        <!-- Default style for YesNoPreference. -->
        <attr name="yesNoPreferenceStyle" format="reference" />
        <!-- Default style for DialogPreference. -->
        <attr name="dialogPreferenceStyle" format="reference" />
        <!-- Default style for EditTextPreference. -->
        <attr name="editTextPreferenceStyle" format="reference" />
        <!-- Default style for RingtonePreference. -->
        <attr name="ringtonePreferenceStyle" format="reference" />
        <!-- The preference layout that has the child/tabbed effect. -->
        <attr name="preferenceLayoutChild" format="reference" />
        
    </declare-styleable>

    <!-- **************************************************************** -->
    <!-- Other non-theme attributes. -->
    <!-- **************************************************************** -->
    <eat-comment />

    <!-- Size of text (example: 15sp). Supported values include the following:

px Pixels <li>sp Scaled pixels (scaled to relative pixel size on screen). See {@link android.util.DisplayMetrics} for more information. <li>pt Points <li>dip Device independent pixels. See {@link android.util.DisplayMetrics} for more information. </ul> --> <attr name="textSize" format="dimension" /> <!-- Default text typeface. --> <attr name="typeface"> <enum name="normal" value="0" /> <enum name="sans" value="1" /> <enum name="serif" value="2" /> <enum name="monospace" value="3" /> </attr> <!-- Default text typeface style. --> <attr name="textStyle"> <flag name="normal" value="0" /> <flag name="bold" value="1" /> <flag name="italic" value="2" /> </attr> <!-- Color of text (usually same as colorForeground). --> <attr name="textColor" format="reference|color" /> <!-- Color of highlighted text. --> <attr name="textColorHighlight" format="reference|color" /> <!-- Color of hint text (displayed when the field is empty). --> <attr name="textColorHint" format="reference|color" /> <!-- Color of link text (URLs). --> <attr name="textColorLink" format="reference|color" /> <!-- Where to ellipsize text. --> <attr name="ellipsize"> <enum name="none" value="0" /> <enum name="start" value="1" /> <enum name="middle" value="2" /> <enum name="end" value="3" /> <enum name="marquee" value="4" /> </attr> <!-- A coordinate in the X dimension. --> <attr name="x" format="dimension" /> <!-- A coordinate in the Y dimension. --> <attr name="y" format="dimension" /> <!-- Specifies how to place an object, both its x and y axis, within a larger containing object. --> <attr name="gravity"> <!-- Push object to the top of its container, not changing its size. --> <flag name="top" value="0x30" /> <!-- Push object to the bottom of its container, not changing its size. --> <flag name="bottom" value="0x50" /> <!-- Push object to the left of its container, not changing its size. --> <flag name="left" value="0x03" /> <!-- Push object to the right of its container, not changing its size. --> <flag name="right" value="0x05" /> <!-- Place object in the vertical center of its container, not changing its size. --> <flag name="center_vertical" value="0x10" /> <!-- Grow the vertical size of the object if needed so it completely fills its container. --> <flag name="fill_vertical" value="0x70" /> <!-- Place object in the horizontal center of its container, not changing its size. --> <flag name="center_horizontal" value="0x01" /> <!-- Grow the horizontal size of the object if needed so it completely fills its container. --> <flag name="fill_horizontal" value="0x07" /> <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. --> <flag name="center" value="0x11" /> <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. --> <flag name="fill" value="0x77" /> </attr> <!-- 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. --> <attr name="autoLink"> <!-- Match no patterns (default) --> <flag name="none" value="0x00" /> <!-- Match Web URLs --> <flag name="web" value="0x01" /> <!-- Match email addresses --> <flag name="email" value="0x02" /> <!-- Match phone numbers --> <flag name="phone" value="0x04" /> <!-- Match map addresses --> <flag name="map" value="0x08" /> <!-- Match all patterns (equivalent to web|email|phone|map) --> <flag name="all" value="0x0f" /> </attr> <!-- Reference to an array resource that will populate a list/adapter --> <attr name="entries" format="reference" /> <!-- Standard gravity constant that a child can supply to its parent. Defines how to place an object, both its x and y axis, within a larger containing object. --> <attr name="layout_gravity"> <!-- Push object to the top of its container, not changing its size. --> <flag name="top" value="0x30" /> <!-- Push object to the bottom of its container, not changing its size. --> <flag name="bottom" value="0x50" /> <!-- Push object to the left of its container, not changing its size. --> <flag name="left" value="0x03" /> <!-- Push object to the right of its container, not changing its size. --> <flag name="right" value="0x05" /> <!-- Place object in the vertical center of its container, not changing its size. --> <flag name="center_vertical" value="0x10" /> <!-- Grow the vertical size of the object if needed so it completely fills its container. --> <flag name="fill_vertical" value="0x70" /> <!-- Place object in the horizontal center of its container, not changing its size. --> <flag name="center_horizontal" value="0x01" /> <!-- Grow the horizontal size of the object if needed so it completely fills its container. --> <flag name="fill_horizontal" value="0x07" /> <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. --> <flag name="center" value="0x11" /> <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. --> <flag name="fill" value="0x77" /> </attr> <!-- Standard orientation constant. --> <attr name="orientation"> <!-- Defines an horizontal widget. --> <enum name="horizontal" value="0" /> <!-- Defines a vertical widget. --> <enum name="vertical" value="1" /> </attr> <!-- ========================== --> <!-- Key Codes --> <!-- ========================== --> <eat-comment /> <!-- This enum provides the same keycode values as can be found in {@link android.view.KeyEvent} --> <attr name="keycode"> <enum name="KEYCODE_UNKNOWN" value="0" /> <enum name="KEYCODE_SOFT_LEFT" value="1" /> <enum name="KEYCODE_SOFT_RIGHT" value="2" /> <enum name="KEYCODE_HOME" value="3" /> <enum name="KEYCODE_BACK" value="4" /> <enum name="KEYCODE_CALL" value="5" /> <enum name="KEYCODE_ENDCALL" value="6" /> <enum name="KEYCODE_0" value="7" /> <enum name="KEYCODE_1" value="8" /> <enum name="KEYCODE_2" value="9" /> <enum name="KEYCODE_3" value="10" /> <enum name="KEYCODE_4" value="11" /> <enum name="KEYCODE_5" value="12" /> <enum name="KEYCODE_6" value="13" /> <enum name="KEYCODE_7" value="14" /> <enum name="KEYCODE_8" value="15" /> <enum name="KEYCODE_9" value="16" /> <enum name="KEYCODE_STAR" value="17" /> <enum name="KEYCODE_POUND" value="18" /> <enum name="KEYCODE_DPAD_UP" value="19" /> <enum name="KEYCODE_DPAD_DOWN" value="20" /> <enum name="KEYCODE_DPAD_LEFT" value="21" /> <enum name="KEYCODE_DPAD_RIGHT" value="22" /> <enum name="KEYCODE_DPAD_CENTER" value="23" /> <enum name="KEYCODE_VOLUME_UP" value="24" /> <enum name="KEYCODE_VOLUME_DOWN" value="25" /> <enum name="KEYCODE_POWER" value="26" /> <enum name="KEYCODE_CAMERA" value="27" /> <enum name="KEYCODE_CLEAR" value="28" /> <enum name="KEYCODE_A" value="29" /> <enum name="KEYCODE_B" value="30" /> <enum name="KEYCODE_C" value="31" /> <enum name="KEYCODE_D" value="32" /> <enum name="KEYCODE_E" value="33" /> <enum name="KEYCODE_F" value="34" /> <enum name="KEYCODE_G" value="35" /> <enum name="KEYCODE_H" value="36" /> <enum name="KEYCODE_I" value="37" /> <enum name="KEYCODE_J" value="38" /> <enum name="KEYCODE_K" value="39" /> <enum name="KEYCODE_L" value="40" /> <enum name="KEYCODE_M" value="41" /> <enum name="KEYCODE_N" value="42" /> <enum name="KEYCODE_O" value="43" /> <enum name="KEYCODE_P" value="44" /> <enum name="KEYCODE_Q" value="45" /> <enum name="KEYCODE_R" value="46" /> <enum name="KEYCODE_S" value="47" /> <enum name="KEYCODE_T" value="48" /> <enum name="KEYCODE_U" value="49" /> <enum name="KEYCODE_V" value="50" /> <enum name="KEYCODE_W" value="51" /> <enum name="KEYCODE_X" value="52" /> <enum name="KEYCODE_Y" value="53" /> <enum name="KEYCODE_Z" value="54" /> <enum name="KEYCODE_COMMA" value="55" /> <enum name="KEYCODE_PERIOD" value="56" /> <enum name="KEYCODE_ALT_LEFT" value="57" /> <enum name="KEYCODE_ALT_RIGHT" value="58" /> <enum name="KEYCODE_SHIFT_LEFT" value="59" /> <enum name="KEYCODE_SHIFT_RIGHT" value="60" /> <enum name="KEYCODE_TAB" value="61" /> <enum name="KEYCODE_SPACE" value="62" /> <enum name="KEYCODE_SYM" value="63" /> <enum name="KEYCODE_EXPLORER" value="64" /> <enum name="KEYCODE_ENVELOPE" value="65" /> <enum name="KEYCODE_ENTER" value="66" /> <enum name="KEYCODE_DEL" value="67" /> <enum name="KEYCODE_GRAVE" value="68" /> <enum name="KEYCODE_MINUS" value="69" /> <enum name="KEYCODE_EQUALS" value="70" /> <enum name="KEYCODE_LEFT_BRACKET" value="71" /> <enum name="KEYCODE_RIGHT_BRACKET" value="72" /> <enum name="KEYCODE_BACKSLASH" value="73" /> <enum name="KEYCODE_SEMICOLON" value="74" /> <enum name="KEYCODE_APOSTROPHE" value="75" /> <enum name="KEYCODE_SLASH" value="76" /> <enum name="KEYCODE_AT" value="77" /> <enum name="KEYCODE_NUM" value="78" /> <enum name="KEYCODE_HEADSETHOOK" value="79" /> <enum name="KEYCODE_FOCUS" value="80" /> <enum name="KEYCODE_PLUS" value="81" /> <enum name="KEYCODE_MENU" value="82" /> <enum name="KEYCODE_NOTIFICATION" value="83" /> <enum name="KEYCODE_SEARCH" value="84" /> </attr> <!-- ***************************************************************** --> <!-- These define collections of attributes that can are with classes. --> <!-- ***************************************************************** --> <!-- ========================== --> <!-- Special attribute classes. --> <!-- ========================== --> <eat-comment /> <!-- The set of attributes that describe a Windows's theme. --> <declare-styleable name="Window"> <attr name="windowBackground" /> <attr name="windowContentOverlay" /> <attr name="windowFrame" /> <attr name="windowNoTitle" /> <attr name="windowFullscreen" /> <attr name="windowIsFloating" /> <attr name="windowIsTranslucent" /> <attr name="windowAnimationStyle" /> <attr name="textColor" /> </declare-styleable> <!-- The set of attributes that describe a AlertDialog's theme. --> <declare-styleable name="AlertDialog"> <attr name="fullDark" format="reference|color" /> <attr name="topDark" format="reference|color" /> <attr name="centerDark" format="reference|color" /> <attr name="bottomDark" format="reference|color" /> <attr name="fullBright" format="reference|color" /> <attr name="topBright" format="reference|color" /> <attr name="centerBright" format="reference|color" /> <attr name="bottomBright" format="reference|color" /> <attr name="bottomMedium" format="reference|color" /> <attr name="centerMedium" format="reference|color" /> </declare-styleable> <!-- Window animation class attributes. --> <declare-styleable name="WindowAnimation"> <!-- The animation used when a window is being added. --> <attr name="windowEnterAnimation" format="reference" /> <!-- The animation used when a window is being removed. --> <attr name="windowExitAnimation" format="reference" /> <!-- The animation used when a window is going from INVISIBLE to VISIBLE. --> <attr name="windowShowAnimation" format="reference" /> <!-- The animation used when a window is going from VISIBLE to INVISIBLE. --> <attr name="windowHideAnimation" format="reference" /> <attr name="activityOpenEnterAnimation" format="reference" /> <attr name="activityOpenExitAnimation" format="reference" /> <attr name="activityCloseEnterAnimation" format="reference" /> <attr name="activityCloseExitAnimation" format="reference" /> <attr name="taskOpenEnterAnimation" format="reference" /> <attr name="taskOpenExitAnimation" format="reference" /> <attr name="taskCloseEnterAnimation" format="reference" /> <attr name="taskCloseExitAnimation" format="reference" /> <attr name="taskToFrontEnterAnimation" format="reference" /> <attr name="taskToFrontExitAnimation" format="reference" /> <attr name="taskToBackEnterAnimation" format="reference" /> <attr name="taskToBackExitAnimation" format="reference" /> </declare-styleable> <!-- ============================= --> <!-- View package class attributes --> <!-- ============================= --> <eat-comment /> <!-- Attributes that can be used with {@link android.view.View} or any of its subclasses. Also see {@link #ViewGroup_Layout} for attributes that are processed by the view's parent. --> <declare-styleable name="View"> <!-- Supply an identifier name for this view, to later retrieve it with {@link android.view.View#findViewById View.findViewById()} or {@link android.app.Activity#findViewById Activity.findViewById()}. This must be a resource reference; typically you set this using the <code>@+ syntax to create a new ID resources. For example: <code>android:id="@+id/my_id" which allows you to later retrieve the view with <code>findViewById(R.id.my_id). --> <attr name="id" format="reference" /> <!-- Supply a tag for this view containing a String, to be retrieved later with {@link android.view.View#getTag View.getTag()} or searched for with {@link android.view.View#findViewWithTag 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. --> <attr name="tag" format="string" /> <!-- The initial horizontal scroll offset, in pixels.--> <attr name="scrollX" format="dimension" /> <!-- The initial vertical scroll offset, in pixels. --> <attr name="scrollY" format="dimension" /> <!-- 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). --> <attr name="background" format="reference|color" /> <!-- 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 {@link android.R.attr#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. --> <attr name="padding" format="dimension" /> <!-- Sets the padding, in pixels, of the left edge; see {@link android.R.attr#padding}. --> <attr name="paddingLeft" format="dimension" /> <!-- Sets the padding, in pixels, of the top edge; see {@link android.R.attr#padding}. --> <attr name="paddingTop" format="dimension" /> <!-- Sets the padding, in pixels, of the right edge; see {@link android.R.attr#padding}. --> <attr name="paddingRight" format="dimension" /> <!-- Sets the padding, in pixels, of the bottom edge; see {@link android.R.attr#padding}. --> <attr name="paddingBottom" format="dimension" /> <!-- 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 {@link android.view.View#requestFocus}, which will always request focus regardless of this view. It only impacts where focus navigation will try to move focus. --> <attr name="focusable" format="boolean" /> <!-- 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. --> <attr name="focusableInTouchMode" format="boolean" /> <!-- Controls the initial visibility of the view. --> <attr name="visibility"> <!-- Visible on screen; the default value. --> <enum name="visible" value="0" /> <!-- Not displayed, but taken into account during layout (space is left for it). --> <enum name="invisible" value="1" /> <!-- Completely hidden, as if the view had not been added. --> <enum name="gone" value="2" /> </attr> <!-- 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. --> <attr name="fitsSystemWindows" format="boolean" /> <!-- Defines which scrollbars should be displayed on scrolling or not. --> <attr name="scrollbars"> <!-- No scrollbar is displayed. --> <flag name="none" value="0x00000000" /> <!-- Displays horizontal scrollbar only. --> <flag name="horizontal" value="0x00000100" /> <!-- Displays vertical scrollbar only. --> <flag name="vertical" value="0x00000200" /> </attr> <!-- 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.--> <attr name="scrollbarStyle"> <!-- Inside the padding and overlaid --> <enum name="insideOverlay" value="0x0" /> <!-- Inside the padding and inset --> <enum name="insideInset" value="0x01000000" /> <!-- Edge of the view and overlaid --> <enum name="outsideOverlay" value="0x02000000" /> <!-- Edge of the view and inset --> <enum name="outsideInset" value="0x03000000" /> </attr> <!-- Sets the width of vertical scrollbars and height of horizontal scrollbars. --> <attr name="scrollbarSize" format="dimension" /> <!-- Defines the horizontal scrollbar thumb drawable. --> <attr name="scrollbarThumbHorizontal" format="reference" /> <!-- Defines the vertical scrollbar thumb drawable. --> <attr name="scrollbarThumbVertical" format="reference" /> <!-- Defines the horizontal scrollbar track drawable. --> <attr name="scrollbarTrackHorizontal" format="reference" /> <!-- Defines the vertical scrollbar track drawable. --> <attr name="scrollbarTrackVertical" format="reference" /> <!-- Defines whether the horizontal scrollbar track should always be drawn. --> <attr name="scrollbarAlwaysDrawHorizontalTrack" format="boolean" /> <!-- Defines whether the vertical scrollbar track should always be drawn --> <attr name="scrollbarAlwaysDrawVerticalTrack" format="boolean" /> <!-- Defines which edges should be fadeded on scrolling. --> <attr name="fadingEdge"> <!-- No edge is faded. --> <flag name="none" value="0x00000000" /> <!-- Fades horizontal edges only. --> <flag name="horizontal" value="0x00001000" /> <!-- Fades vertical edges only. --> <flag name="vertical" value="0x00002000" /> </attr> <!-- Defines the length of the fading edges. --> <attr name="fadingEdgeLength" format="dimension" /> <!-- Defines the next view to give focus to when the next focus is {@link android.view.View#FOCUS_LEFT}. If the reference refers to a view that does not exist or is part of a hierarchy that is invisible, a {@link java.lang.RuntimeException} will result when the reference is accessed.--> <attr name="nextFocusLeft" format="reference"/> <!-- Defines the next view to give focus to when the next focus is {@link android.view.View#FOCUS_RIGHT} If the reference refers to a view that does not exist or is part of a hierarchy that is invisible, a {@link java.lang.RuntimeException} will result when the reference is accessed.--> <attr name="nextFocusRight" format="reference"/> <!-- Defines the next view to give focus to when the next focus is {@link android.view.View#FOCUS_UP} If the reference refers to a view that does not exist or is part of a hierarchy that is invisible, a {@link java.lang.RuntimeException} will result when the reference is accessed.--> <attr name="nextFocusUp" format="reference"/> <!-- Defines the next view to give focus to when the next focus is {@link android.view.View#FOCUS_DOWN} If the reference refers to a view that does not exist or is part of a hierarchy that is invisible, a {@link java.lang.RuntimeException} will result when the reference is accessed.--> <attr name="nextFocusDown" format="reference"/> <!-- Defines whether this view reacts to click events. --> <attr name="clickable" format="boolean" /> <!-- Defines whether this view reacts to long click events. --> <attr name="longClickable" format="boolean" /> <!-- 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. --> <attr name="saveEnabled" format="boolean" /> <!-- 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. --> <attr name="drawingCacheQuality"> <!-- Lets the framework decide what quality level should be used for the drawing cache. --> <enum name="auto" value="0" /> <!-- 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. --> <enum name="low" value="1" /> <!-- High quality. When set to high quality, the drawing cache uses a higher color depth but uses more memory. --> <enum name="high" value="2" /> </attr> <!-- Controls whether the view's window should keep the screen on while visible. --> <attr name="keepScreenOn" format="boolean" /> <!-- When this attribute is set to true, the view gets its drawable state (focused, pressed, etc.) from its direct parent rather than from itself. --> <attr name="duplicateParentState" format="boolean" /> <!-- Defines the minimum height of the view. It is not guaranteed the view will be able to achieve this minimum height (for example, if its parent layout constrains it with less available height). --> <attr name="minHeight" /> <!-- Defines the minimum width of the view. It is not guaranteed the view will be able to achieve this minimum width (for example, if its parent layout constrains it with less available width). --> <attr name="minWidth" /> <!-- Boolean that controls whether a view should have sound effects enabled for events such as clicking and touching. --> <attr name="soundEffectsEnabled" format="boolean" /> </declare-styleable> <!-- Attributes that can be used with a {@link android.view.ViewGroup} or any of its subclasses. Also see {@link #ViewGroup_Layout} for attributes that this class processes in its children. --> <declare-styleable name="ViewGroup"> <!-- 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. --> <attr name="clipChildren" format="boolean" /> <!-- Defines whether the ViewGroup will clip its drawing surface so as to exclude the padding area. This property is set to true by default. --> <attr name="clipToPadding" format="boolean" /> <!-- 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. --> <attr name="layoutAnimation" format="reference" /> <!-- 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. --> <attr name="animationCache" format="boolean" /> <!-- 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. --> <attr name="persistentDrawingCache"> <!-- The drawing cache is not persisted after use. --> <flag name="none" value="0x0" /> <!-- The drawing cache is persisted after a layout animation. --> <flag name="animation" value="0x1" /> <!-- The drawing cache is persisted after a scroll. --> <flag name="scrolling" value="0x2" /> <!-- The drawing cache is always persisted. --> <flag name="all" value="0x3" /> </attr> <!-- Defines whether the ViewGroup should always draw its children using their drawing cache or not. The default value is true. --> <attr name="alwaysDrawnWithCache" format="boolean" /> <!-- 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. --> <attr name="addStatesFromChildren" format="boolean" /> <!-- Defines the relationship between the ViewGroup and its descendants when looking for a View to take focus. --> <attr name="descendantFocusability"> <!-- The ViewGroup will get focus before any of its descendants. --> <enum name="beforeDescendants" value="0" /> <!-- The ViewGroup will get focus only if none of its descendants want it. --> <enum name="afterDescendants" value="1" /> <!-- The ViewGroup will block its descendants from receiving focus. --> <enum name="blocksDescendants" value="2" /> </attr> </declare-styleable> <!-- Attributes that can be used with {@link android.view.ViewStub}. --> <declare-styleable name="ViewStub"> <!-- 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. --> <attr name="layout" format="reference" /> <!-- Overrides the id of the inflated View with this value. --> <attr name="inflatedId" format="reference" /> </declare-styleable> <!-- ===================================== --> <!-- View package parent layout attributes --> <!-- ===================================== --> <eat-comment /> <!-- This is the basic set of layout attributes that are common to all layout managers. These attributes are specified with the rest of a view's normal attributes (such as {@link android.R.attr#background}, but will be parsed by the view's parent and ignored by the child. <p>The values defined here correspond to the base layout attribute class {@link android.view.ViewGroup.LayoutParams}. --> <declare-styleable name="ViewGroup_Layout"> <!-- 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. --> <attr name="layout_width" format="dimension"> <!-- The view should be as big as its parent (minus padding). --> <enum name="fill_parent" value="-1" /> <!-- The view should be only big enough to enclose its content (plus padding). --> <enum name="wrap_content" value="-2" /> </attr> <!-- 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. --> <attr name="layout_height" format="dimension"> <!-- The view should be as big as its parent (minus padding). --> <enum name="fill_parent" value="-1" /> <!-- The view should be only big enough to enclose its content (plus padding). --> <enum name="wrap_content" value="-2" /> </attr> </declare-styleable> <!-- This is the basic set of layout attributes for layout managers that wish to place margins around their child views. These attributes are specified with the rest of a view's normal attributes (such as {@link android.R.attr#background}, but will be parsed by the view's parent and ignored by the child. <p>The values defined here correspond to the base layout attribute class {@link android.view.ViewGroup.MarginLayoutParams}. --> <declare-styleable name="ViewGroup_MarginLayout"> <attr name="layout_width" /> <attr name="layout_height" /> <!-- Specifies extra space on the left, top, right and bottom sides of this view. This space is outside this view's bounds. --> <attr name="layout_margin" format="dimension" /> <!-- Specifies extra space on the left side of this view. This space is outside this view's bounds. --> <attr name="layout_marginLeft" format="dimension" /> <!-- Specifies extra space on the top side of this view. This space is outside this view's bounds. --> <attr name="layout_marginTop" format="dimension" /> <!-- Specifies extra space on the right side of this view. This space is outside this view's bounds. --> <attr name="layout_marginRight" format="dimension" /> <!-- Specifies extra space on the bottom side of this view. This space is outside this view's bounds. --> <attr name="layout_marginBottom" format="dimension" /> </declare-styleable> <!-- =============================== --> <!-- Widget package class attributes --> <!-- =============================== --> <eat-comment /> <declare-styleable name="AbsListView"> <!-- Drawable used to indicate the currently selected item in the list. --> <attr name="listSelector" format="color|reference" /> <!-- 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. --> <attr name="drawSelectorOnTop" format="boolean" /> <!-- Used by ListView and GridView to stack their content from the bottom. --> <attr name="stackFromBottom" format="boolean" /> <!-- 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. --> <attr name="scrollingCache" format="boolean" /> <!-- 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 --> <attr name="textFilterEnabled" format="boolean" /> <!-- 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. --> <attr name="transcriptMode"> <!-- Disables transcript mode. This is the default value. --> <enum name="disabled" value="0"/> <!-- 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. --> <enum name="normal" value="1" /> <!-- The list will automatically scroll to the bottom, no matter what items are currently visible. --> <enum name="alwaysScroll" value="2" /> </attr> <!-- Indicates that this list will always be drawn on top of solid, single-color opaque background. This allows the list to optimize drawing. --> <attr name="cacheColorHint" format="color" /> </declare-styleable> <declare-styleable name="AbsSpinner"> <!-- Reference to an array resource that will populate the Spinner. For static content, this is simpler than populating the Spinner programmatically. --> <attr name="entries" /> </declare-styleable> <declare-styleable name="AnalogClock"> <attr name="dial" format="reference"/> <attr name="hand_hour" format="reference"/> <attr name="hand_minute" format="reference"/> </declare-styleable> <declare-styleable name="Button"> </declare-styleable> <declare-styleable name="Chronometer"> <!-- 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". --> <attr name="format" format="string" localization="suggested" /> </declare-styleable> <declare-styleable name="CompoundButton"> <!-- Indicates the initial checked state of this button --> <attr name="checked" format="boolean" /> <!-- Drawable used for the button graphic (e.g. checkbox, radio button, etc). --> <attr name="button" format="reference"/> </declare-styleable> <declare-styleable name="CheckedTextView"> <!-- Indicates the initial checked state of this text --> <attr name="checked" /> <!-- Drawable used for the check mark graphic --> <attr name="checkMark" format="reference"/> </declare-styleable> <declare-styleable name="EditText"> </declare-styleable> <declare-styleable name="FrameLayout"> <!-- 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. --> <attr name="foreground" format="reference|color" /> <!-- Defines the gravity to apply to the foreground drawable. The gravity defaults to fill. --> <attr name="foregroundGravity"> <!-- Push object to the top of its container, not changing its size. --> <flag name="top" value="0x30" /> <!-- Push object to the bottom of its container, not changing its size. --> <flag name="bottom" value="0x50" /> <!-- Push object to the left of its container, not changing its size. --> <flag name="left" value="0x03" /> <!-- Push object to the right of its container, not changing its size. --> <flag name="right" value="0x05" /> <!-- Place object in the vertical center of its container, not changing its size. --> <flag name="center_vertical" value="0x10" /> <!-- Grow the vertical size of the object if needed so it completely fills its container. --> <flag name="fill_vertical" value="0x70" /> <!-- Place object in the horizontal center of its container, not changing its size. --> <flag name="center_horizontal" value="0x01" /> <!-- Grow the horizontal size of the object if needed so it completely fills its container. --> <flag name="fill_horizontal" value="0x07" /> <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. --> <flag name="center" value="0x11" /> <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. --> <flag name="fill" value="0x77" /> </attr> <!-- Determines whether to measure all children or just those in the VISIBLE or INVISIBLE state when measuring. Defaults to false. --> <attr name="measureAllChildren" format="boolean" /> </declare-styleable> <declare-styleable name="ExpandableListView"> <!-- Indicator shown beside the group View. This can be a stateful Drawable. --> <attr name="groupIndicator" format="reference" /> <!-- Indicator shown beside the child View. This can be a stateful Drawable. --> <attr name="childIndicator" format="reference" /> <!-- The left bound for an item's indicator. To specify a left bound specific to children, use childIndicatorLeft. --> <attr name="indicatorLeft" format="dimension" /> <!-- The right bound for an item's indicator. To specify a right bound specific to children, use childIndicatorRight. --> <attr name="indicatorRight" format="dimension" /> <!-- The left bound for a child's indicator. --> <attr name="childIndicatorLeft" format="dimension" /> <!-- The right bound for a child's indicator. --> <attr name="childIndicatorRight" format="dimension" /> <!-- 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. --> <attr name="childDivider" format="reference|color" /> </declare-styleable> <declare-styleable name="Gallery"> <attr name="gravity" /> <!-- Sets how long a transition animation should run (in milliseconds) when layout has changed. Only relevant if animation is turned on. --> <attr name="animationDuration" format="integer" min="0" /> <attr name="spacing" format="dimension" /> <!-- Sets the alpha on the items that are not selected. --> <attr name="unselectedAlpha" format="float" /> </declare-styleable> <declare-styleable name="GridView"> <attr name="horizontalSpacing" format="dimension" /> <attr name="verticalSpacing" format="dimension" /> <attr name="stretchMode"> <enum name="none" value="0"/> <enum name="spacingWidth" value="1" /> <enum name="columnWidth" value="2" /> </attr> <attr name="columnWidth" format="dimension" /> <attr name="numColumns" format="integer" min="0"> <enum name="auto_fit" value="-1" /> </attr> <attr name="gravity" /> </declare-styleable> <declare-styleable name="ImageSwitcher"> </declare-styleable> <declare-styleable name="ImageView"> <!-- Sets a drawable as the content of this ImageView. --> <attr name="src" format="reference|color" /> <!-- Controls how the image should be resized or moved to match the size of this ImageView. --> <attr name="scaleType"> <enum name="matrix" value="0" /> <enum name="fitXY" value="1" /> <enum name="fitStart" value="2" /> <enum name="fitCenter" value="3" /> <enum name="fitEnd" value="4" /> <enum name="center" value="5" /> <enum name="centerCrop" value="6" /> <enum name="centerInside" value="7" /> </attr> <!-- Set this to true if you want the ImageView to adjust its bounds to preserve the aspect ratio of its drawable. --> <attr name="adjustViewBounds" format="boolean" /> <!-- An optional argument to supply a maximum width for this view. See {see android.widget.ImageView#setMaxWidth} for details. --> <attr name="maxWidth" format="dimension" /> <!-- An optional argument to supply a maximum height for this view. See {see android.widget.ImageView#setMaxHeight} for details. --> <attr name="maxHeight" format="dimension" /> <!-- Set a tinting color for the image --> <attr name="tint" format="color" /> <!-- If true, the image view will be baseline aligned with based on its bottom edge --> <attr name="baselineAlignBottom" format="boolean" /> <!-- If true, the image will be cropped to fit within its padding --> <attr name="cropToPadding" format="boolean" /> </declare-styleable> <declare-styleable name="ToggleButton"> <!-- The text for the button when it is checked. --> <attr name="textOn" format="string" /> <!-- The text for the button when it is not checked. --> <attr name="textOff" format="string" /> <!-- The alpha to apply to the indicator when disabled. --> <attr name="disabledAlpha" /> </declare-styleable> <declare-styleable name="RelativeLayout"> <attr name="gravity" /> <!-- Indicates what view should not be affected by gravity. --> <attr name="ignoreGravity" format="reference" /> </declare-styleable> <declare-styleable name="LinearLayout"> <!-- Should the layout be a column or a row? Use "horizontal" for a row, "vertical" for a column. The default is horizontal. --> <attr name="orientation" /> <attr name="gravity" /> <!-- 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. --> <attr name="baselineAligned" format="boolean" /> <!-- When a linear layout is part of another layout that is baseline aligned, it can specify which of its children to baseline align to (i.e which child TextView).--> <attr name="baselineAlignedChildIndex" format="integer" min="0"/> <!-- 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. --> <attr name="weightSum" format="float" /> </declare-styleable> <declare-styleable name="ListView"> <!-- Reference to an array resource that will populate the ListView. For static content, this is simpler than populating the ListView programmatically. --> <attr name="entries" /> <!-- Drawable or color to draw between list items. --> <attr name="divider" format="reference|color" /> <!-- Height of the divider. Will use the intrinsic height of the divider if this is not specified. --> <attr name="dividerHeight" format="dimension" /> <!-- Defines the choice behavior for the List. 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. --> <attr name="choiceMode"> <!-- Normal list that does not indicate choices --> <enum name="none" value="0" /> <!-- The list allows up to one choice --> <enum name="singleChoice" value="1" /> <!-- The list allows multiple choices --> <enum name="multipleChoice" value="2" /> </attr> </declare-styleable> <declare-styleable name="MenuView"> <!-- Default appearance of menu item text. --> <attr name="itemTextAppearance" format="reference" /> <!-- Default horizontal divider between rows of menu items. --> <attr name="horizontalDivider" format="reference" /> <!-- Default vertical divider between menu items. --> <attr name="verticalDivider" format="reference" /> <!-- Default background for the menu header. --> <attr name="headerBackground" format="color|reference" /> <!-- Default background for each menu item. --> <attr name="itemBackground" format="color|reference" /> <!-- Default animations for the menu --> <attr name="windowAnimationStyle" /> <!-- Default disabled icon alpha for each menu item that shows an icon. --> <attr name="itemIconDisabledAlpha" format="float" /> </declare-styleable> <declare-styleable name="IconMenuView"> <!-- Defines the height of each row. --> <attr name="rowHeight" format="dimension" /> <!-- Defines the maximum number of rows displayed. --> <attr name="maxRows" format="integer" /> <!-- Defines the maximum number of items per row. --> <attr name="maxItemsPerRow" format="integer" /> <!-- Defines the maximum number of items to show. --> <attr name="maxItems" format="integer" /> <!-- 'More' icon --> <attr name="moreIcon" format="reference" /> </declare-styleable> <declare-styleable name="ProgressBar"> <!-- Defines the maximum value the progress can take. --> <attr name="max" format="integer" /> <!-- Defines the default progress value, between 0 and max. --> <attr name="progress" format="integer" /> <!-- 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. --> <attr name="secondaryProgress" format="integer" /> <!-- Allows to enable the indeterminate mode. In this mode the progress bar plays an infinite looping animation. --> <attr name="indeterminate" format="boolean" /> <!-- Restricts to ONLY indeterminate mode (state-keeping progress mode will not work). --> <attr name="indeterminateOnly" format="boolean" /> <!-- Drawable used for the indeterminate mode. --> <attr name="indeterminateDrawable" format="reference" /> <!-- Drawable used for the progress mode. --> <attr name="progressDrawable" format="reference" /> <!-- Duration of the indeterminate animation. --> <attr name="indeterminateDuration" format="integer" min="1" /> <!-- Defines how the indeterminate mode should behave when the progress reaches max. --> <attr name="indeterminateBehavior"> <!-- Progress starts over from 0. --> <enum name="repeat" value="1" /> <!-- Progress keeps the current value and goes back to 0. --> <enum name="cycle" value="2" /> </attr> <attr name="minWidth" format="dimension" /> <attr name="maxWidth" /> <attr name="minHeight" format="dimension" /> <attr name="maxHeight" /> <attr name="interpolator" format="reference" /> </declare-styleable> <declare-styleable name="SeekBar"> <!-- Draws the thumb on a seekbar --> <attr name="thumb" format="reference" /> <!-- An offset for the thumb that allows it to extend out of the range of the track. --> <attr name="thumbOffset" format="dimension" /> </declare-styleable> <declare-styleable name="RatingBar"> <!-- The number of stars (or rating items) to show. --> <attr name="numStars" format="integer" /> <!-- The rating to set by default. --> <attr name="rating" format="float" /> <!-- The step size of the rating. --> <attr name="stepSize" format="float" /> <!-- Whether this rating bar is an indicator (and non-changeable by the user). --> <attr name="isIndicator" format="boolean" /> </declare-styleable> <declare-styleable name="RadioGroup"> <!-- The id of the child radio button that should be checked by default within this radio group. --> <attr name="checkedButton" format="integer" /> <!-- Should the radio group be a column or a row? Use "horizontal" for a row, "vertical" for a column. The default is vertical. --> <attr name="orientation" /> </declare-styleable> <declare-styleable name="TableLayout"> <!-- The 0 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. --> <attr name="stretchColumns" format="string" /> <!-- The 0 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. --> <attr name="shrinkColumns" format="string" /> <!-- The 0 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. --> <attr name="collapseColumns" format="string" /> </declare-styleable> <declare-styleable name="TableRow"> </declare-styleable> <declare-styleable name="TableRow_Cell"> <!-- The index of the column in which this child should be. --> <attr name="layout_column" format="integer" /> <!-- Defines how many columns this child should span. Must be >= 1.--> <attr name="layout_span" format="integer" /> </declare-styleable> <declare-styleable name="TabWidget"> </declare-styleable> <declare-styleable name="TextAppearance"> <!-- Text color. --> <attr name="textColor" /> <!-- Size of the text. --> <attr name="textSize" /> <!-- Style (bold, italic, bolditalic) for the text. --> <attr name="textStyle" /> <!-- Typeface (normal, sans, serif, monospace) for the text. --> <attr name="typeface" /> <!-- Color of the text selection highlight. --> <attr name="textColorHighlight" /> <!-- Color of the hint text. --> <attr name="textColorHint" /> <!-- Color of the links. --> <attr name="textColorLink" /> </declare-styleable> <declare-styleable name="TextSwitcher"> </declare-styleable> <declare-styleable name="TextView"> <!-- Determines what 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. --> <attr name="bufferType"> <!-- Can return any CharSequence, possibly a Spanned one if the source text was Spanned. --> <enum name="normal" value="0" /> <!-- Can only return Spannable. --> <enum name="spannable" value="1" /> <!-- Can only return Spannable and Editable. --> <enum name="editable" value="2" /> </attr> <!-- Text to display. --> <attr name="text" format="string" localization="suggested" /> <!-- Hint text to display when the text is empty. --> <attr name="hint" format="string" /> <!-- Text color. --> <attr name="textColor" /> <!-- Color of the text selection highlight. --> <attr name="textColorHighlight" /> <!-- Color of the hint text. --> <attr name="textColorHint" /> <!-- Base text color, typeface, size, and style. --> <attr name="textAppearance" /> <!-- Size of the text. --> <attr name="textSize" /> <!-- Sets the horizontal scaling factor for the text --> <attr name="textScaleX" format="float" /> <!-- Typeface (normal, sans, serif, monospace) for the text. --> <attr name="typeface" /> <!-- Style (bold, italic, bolditalic) for the text. --> <attr name="textStyle" /> <!-- Text color for links. --> <attr name="textColorLink" /> <!-- Makes the cursor visible (the default) or invisible --> <attr name="cursorVisible" format="boolean" /> <!-- Makes the TextView be at most this many lines tall --> <attr name="maxLines" format="integer" min="0" /> <!-- Makes the TextView be at most this many pixels tall --> <attr name="maxHeight" /> <!-- Makes the TextView be exactly this many lines tall --> <attr name="lines" format="integer" min="0" /> <!-- Makes the TextView be exactly this many pixels tall. You could get the same effect by specifying this number in the layout parameters. --> <attr name="height" format="dimension" /> <!-- Makes the TextView be at least this many lines tall --> <attr name="minLines" format="integer" min="0" /> <!-- Makes the TextView be at least this many pixels tall --> <attr name="minHeight" /> <!-- Makes the TextView be at most this many ems wide --> <attr name="maxEms" format="integer" min="0" /> <!-- Makes the TextView be at most this many pixels wide --> <attr name="maxWidth" /> <!-- Makes the TextView be exactly this many ems wide --> <attr name="ems" format="integer" min="0" /> <!-- Makes the TextView be exactly this many pixels wide. You could get the same effect by specifying this number in the layout parameters. --> <attr name="width" format="dimension" /> <!-- Makes the TextView be at least this many ems wide --> <attr name="minEms" format="integer" min="0" /> <!-- Makes the TextView be at least this many pixels wide --> <attr name="minWidth" /> <!-- Specifies how to align the text by the view's x and/or y axis when the text is smaller than the view. --> <attr name="gravity" /> <!-- Whether the text is allowed to be wider than the view (and therefore can be scrolled horizontally). --> <attr name="scrollHorizontally" format="boolean" /> <!-- Whether the characters of the field are displayed as password dots instead of themselves. --> <attr name="password" format="boolean" /> <!-- 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. --> <attr name="singleLine" format="boolean" /> <!-- Deprecated: use state_enabled instead. --> <attr name="enabled" format="boolean" /> <!-- If the text is selectable, select it all when the view takes focus instead of moving the cursor to the start or end. --> <attr name="selectAllOnFocus" format="boolean" /> <!-- Leave enough room for ascenders and descenders instead of using the font ascent and descent strictly. (Normally true). --> <attr name="includeFontPadding" format="boolean" /> <!-- Set an input filter to constrain the text length to the specified number. --> <attr name="maxLength" format="integer" min="0" /> <!-- Place a shadow of the specified color behind the text. --> <attr name="shadowColor" format="color" /> <!-- Horizontal offset of the shadow. --> <attr name="shadowDx" format="float" /> <!-- Vertical offset of the shadow. --> <attr name="shadowDy" format="float" /> <!-- Radius of the shadow. --> <attr name="shadowRadius" format="float" /> <attr name="autoLink" /> <!-- If set to false, keeps the movement method from being set to the link movement method even if autoLink causes links to be found. --> <attr name="linksClickable" format="boolean" /> <!-- If set, specifies that this TextView has a numeric input method. The default is false. --> <attr name="numeric"> <!-- Input is numeric. --> <flag name="integer" value="0x01" /> <!-- Input is numeric, with sign allowed. --> <flag name="signed" value="0x003" /> <!-- Input is numeric, with decimals allowed. --> <flag name="decimal" value="0x05" /> </attr> <!-- 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. --> <attr name="digits" format="string" /> <!-- If set, specifies that this TextView has a phone number input method. The default is false. --> <attr name="phoneNumber" format="boolean" /> <!-- If set, specifies that this TextView should use the specified input method (specified by fully-qualified class name). --> <attr name="inputMethod" format="string" /> <!-- If set, specifies that this TextView has a textual input method and should automatically capitalize what the user types. The default is "none". --> <attr name="capitalize"> <!-- Don't automatically capitalize anything. --> <enum name="none" value="0" /> <!-- Capitalize the first word of each sentence. --> <enum name="sentences" value="1" /> <!-- Capitalize the first letter of every word. --> <enum name="words" value="2" /> <!-- Capitalize every character. --> <enum name="characters" value="3" /> </attr> <!-- If set, specifies that this TextView has a textual input method and automatically corrects some common spelling errors. The default is "false". --> <attr name="autoText" format="boolean" /> <!-- 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. --> <attr name="editable" format="boolean" /> <!-- 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. --> <attr name="freezesText" format="boolean" /> <!-- If set, causes words that are longer than the view is wide to be ellipsized instead of broken in the middle. You will often also want to set scrollHorizontally or singleLine as well so that the text as a whole is also constrained to a single line instead of still allowed to be broken onto multiple lines. --> <attr name="ellipsize" /> <!-- The drawable to be drawn above the text. --> <attr name="drawableTop" format="reference|color" /> <!-- The drawable to be drawn below the text. --> <attr name="drawableBottom" format="reference|color" /> <!-- The drawable to be drawn to the left of the text. --> <attr name="drawableLeft" format="reference|color" /> <!-- The drawable to be drawn to the right of the text. --> <attr name="drawableRight" format="reference|color" /> <!-- The padding between the drawables and the text. --> <attr name="drawablePadding" format="dimension" /> <!-- Extra spacing between lines of text. --> <attr name="lineSpacingExtra" format="dimension" /> <!-- Extra spacing between lines of text, as a multiplier. --> <attr name="lineSpacingMultiplier" format="float" /> <!-- The number of times to repeat the marquee animation. Only applied if the TextView has marquee enabled. --> <attr name="marqueeRepeatLimit" format="integer"> <!-- Indicates that marquee should repeat indefinitely --> <enum name="marquee_forever" value="-1" /> </attr> </declare-styleable> <declare-styleable name="AutoCompleteTextView"> <!-- Defines the hint displayed in the drop down menu. --> <attr name="completionHint" format="string" /> <!-- Defines the hint view displayed in the drop down menu. --> <attr name="completionHintView" format="reference" /> <!-- Defines the number of characters that the user must type before completion suggestions are displayed in a drop down menu. --> <attr name="completionThreshold" format="integer" min="1" /> <!-- Selector in a drop down list. --> <attr name="dropDownSelector" format="reference|color" /> <!-- Amount of pixels by which the drop down should be offset vertically. --> <attr name="dropDownVerticalOffset" format="dimension" /> <!-- Amount of pixels by which the drop down should be offset horizontally. --> <attr name="dropDownHorizontalOffset" format="dimension" /> </declare-styleable> <declare-styleable name="PopupWindow"> <attr name="popupBackground" format="reference|color" /> </declare-styleable> <declare-styleable name="ViewAnimator"> <attr name="inAnimation" format="reference" /> <attr name="outAnimation" format="reference" /> </declare-styleable> <declare-styleable name="ViewFlipper"> <attr name="flipInterval" format="integer" min="0" /> </declare-styleable> <declare-styleable name="ViewSwitcher"> </declare-styleable> <declare-styleable name="ScrollView"> <!-- Defines whether the scrollview should stretch its content to fill the viewport. --> <attr name="fillViewport" format="boolean" /> </declare-styleable> <declare-styleable name="Spinner"> <!-- The prompt to display when the spinner's dialog is shown. --> <attr name="prompt" format="reference" /> </declare-styleable> <declare-styleable name="DatePicker"> <!-- The first year (inclusive) i.e. 1940 --> <attr name="startYear" format="integer" /> <!-- The last year (inclusive) i.e. 2010 --> <attr name="endYear" format="integer" /> </declare-styleable> <declare-styleable name="TwoLineListItem"> <attr name="mode"> <!-- Always show only the first line. --> <enum name="oneLine" value="1" /> <!-- When selected show both lines, otherwise show only the first line. This is the default mode--> <enum name="collapsing" value="2" /> <!-- Always show both lines. --> <enum name="twoLine" value="3" /> </attr> </declare-styleable> <!-- SlidingDrawer specific attributes. These attributes are used to configure a SlidingDrawer from XML. --> <declare-styleable name="SlidingDrawer"> <!-- Identifier for the child that represents the drawer's handle. --> <attr name="handle" format="reference" /> <!-- Identifier for the child that represents the drawer's content. --> <attr name="content" format="reference" /> <!-- Orientation of the SlidingDrawer. --> <attr name="orientation" /> <!-- Extra offset for the handle at the bottom of the SlidingDrawer. --> <attr name="bottomOffset" format="dimension" /> <!-- Extra offset for the handle at the top of the SlidingDrawer. --> <attr name="topOffset" format="dimension" /> <!-- 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. --> <attr name="allowSingleTap" format="boolean" /> <!-- Indicates whether the drawer should be opened/closed with an animation when the user clicks the handle. Default is true. --> <attr name="animateOnClick" format="boolean" /> </declare-styleable> <!-- ======================================= --> <!-- Widget package parent layout attributes --> <!-- ======================================= --> <eat-comment /> <declare-styleable name="AbsoluteLayout_Layout"> <attr name="layout_x" format="dimension" /> <attr name="layout_y" format="dimension" /> </declare-styleable> <declare-styleable name="LinearLayout_Layout"> <attr name="layout_width" /> <attr name="layout_height" /> <attr name="layout_weight" format="float" /> <attr name="layout_gravity" /> </declare-styleable> <declare-styleable name="FrameLayout_Layout"> <attr name="layout_gravity" /> </declare-styleable> <declare-styleable name="RelativeLayout_Layout"> <!-- 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. --> <attr name="layout_toLeftOf" format="reference" /> <!-- 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. --> <attr name="layout_toRightOf" format="reference" /> <!-- 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. --> <attr name="layout_above" format="reference" /> <!-- 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. --> <attr name="layout_below" format="reference" /> <!-- Positions the baseline of this view on the baseline of the given anchor view ID. --> <attr name="layout_alignBaseline" format="reference" /> <!-- Makes the left edge of this view match the left edge of the given anchor view ID. Accommodates left margin. --> <attr name="layout_alignLeft" format="reference" /> <!-- Makes the top edge of this view match the top edge of the given anchor view ID. Accommodates top margin. --> <attr name="layout_alignTop" format="reference" /> <!-- Makes the right edge of this view match the right edge of the given anchor view ID. Accommodates right margin. --> <attr name="layout_alignRight" format="reference" /> <!-- Makes the bottom edge of this view match the bottom edge of the given anchor view ID. Accommodates bottom margin. --> <attr name="layout_alignBottom" format="reference" /> <!-- If true, makes the left edge of this view match the left edge of the parent. Accommodates left margin. --> <attr name="layout_alignParentLeft" format="boolean" /> <!-- If true, makes the top edge of this view match the top edge of the parent. Accommodates top margin. --> <attr name="layout_alignParentTop" format="boolean" /> <!-- If true, makes the right edge of this view match the right edge of the parent. Accommodates right margin. --> <attr name="layout_alignParentRight" format="boolean" /> <!-- If true, makes the bottom edge of this view match the bottom edge of the parent. Accommodates bottom margin. --> <attr name="layout_alignParentBottom" format="boolean" /> <!-- If true, centers this child horizontally and vertically within its parent. --> <attr name="layout_centerInParent" format="boolean" /> <!-- If true, centers this child horizontally within its parent. --> <attr name="layout_centerHorizontal" format="boolean" /> <!-- If true, centers this child vertically within its parent. --> <attr name="layout_centerVertical" format="boolean" /> <!-- 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. --> <attr name="layout_alignWithParentIfMissing" format="boolean" /> </declare-styleable> <declare-styleable name="VerticalSlider_Layout"> <attr name="layout_scale" format="float" /> </declare-styleable> <!-- ========================= --> <!-- Drawable class attributes --> <!-- ========================= --> <eat-comment /> <!-- Base attributes that are available to all Drawable objects. --> <declare-styleable name="Drawable"> <!-- Provides initial visibility state of the drawable; the default value is false. See {@link android.graphics.drawable.Drawable#setVisible} --> <attr name="visible" format="boolean" /> </declare-styleable> <declare-styleable name="StateListDrawable"> <attr name="visible" /> <!-- 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. --> <attr name="variablePadding" format="boolean" /> <!-- 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. --> <attr name="constantSize" format="boolean" /> </declare-styleable> <declare-styleable name="AnimationDrawable"> <attr name="visible" /> <attr name="variablePadding" /> <!-- 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. --> <attr name="oneshot" format="boolean" /> </declare-styleable> <declare-styleable name="AnimationDrawableItem"> <!-- Amount of time (in milliseconds) to display this frame. --> <attr name="duration" format="integer" /> <!-- Reference to a drawable resource to use for the frame. If not given, the drawable must be defined by the first child tag. --> <attr name="drawable" format="reference" /> </declare-styleable> <declare-styleable name="GradientDrawable"> <attr name="visible" /> <attr name="shape"> <enum name="rectangle" value="0" /> <enum name="oval" value="1" /> <enum name="line" value="2" /> <enum name="ring" value="3" /> </attr> <attr name="innerRadiusRatio" format="float" /> <attr name="thicknessRatio" format="float" /> <attr name="useLevel" /> </declare-styleable> <declare-styleable name="GradientDrawableSize"> <attr name="width" /> <attr name="height" /> </declare-styleable> <declare-styleable name="GradientDrawableGradient"> <attr name="startColor" format="color" /> <!-- Optional center color. For linear gradients, use centerX or centerY to place the center color. --> <attr name="centerColor" format="color" /> <attr name="endColor" format="color" /> <attr name="useLevel" format="boolean" /> <attr name="angle" format="float" /> <attr name="type"> <enum name="linear" value="0" /> <enum name="radial" value="1" /> <enum name="sweep" value="2" /> </attr> <attr name="centerX" format="float|fraction" /> <attr name="centerY" format="float|fraction" /> <attr name="gradientRadius" format="float|fraction" /> </declare-styleable> <declare-styleable name="GradientDrawableSolid"> <attr name="color" format="color" /> </declare-styleable> <declare-styleable name="GradientDrawableStroke"> <attr name="width" /> <attr name="color" /> <attr name="dashWidth" format="dimension" /> <attr name="dashGap" format="dimension" /> </declare-styleable> <declare-styleable name="DrawableCorners"> <attr name="radius" format="dimension" /> <attr name="topLeftRadius" format="dimension" /> <attr name="topRightRadius" format="dimension" /> <attr name="bottomLeftRadius" format="dimension" /> <attr name="bottomRightRadius" format="dimension" /> </declare-styleable> <declare-styleable name="GradientDrawablePadding"> <attr name="left" format="dimension" /> <attr name="top" format="dimension" /> <attr name="right" format="dimension" /> <attr name="bottom" format="dimension" /> </declare-styleable> <declare-styleable name="LayerDrawableItem"> <attr name="left" /> <attr name="top" /> <attr name="right" /> <attr name="bottom" /> <attr name="drawable" /> <attr name="id" /> </declare-styleable> <declare-styleable name="LevelListDrawableItem"> <attr name="minLevel" format="integer" /> <attr name="maxLevel" format="integer" /> <attr name="drawable" /> </declare-styleable> <declare-styleable name="RotateDrawable"> <attr name="visible" /> <attr name="fromDegrees" format="float" /> <attr name="toDegrees" format="float" /> <attr name="pivotX" format="float|fraction" /> <attr name="pivotY" format="float|fraction" /> <attr name="drawable" /> </declare-styleable> <declare-styleable name="InsetDrawable"> <attr name="visible" /> <attr name="drawable" /> <attr name="insetLeft" format="dimension" /> <attr name="insetRight" format="dimension" /> <attr name="insetTop" format="dimension" /> <attr name="insetBottom" format="dimension" /> </declare-styleable> <!-- Drawable used to draw bitmaps. --> <declare-styleable name="BitmapDrawable"> <!-- Identifier of the bitmap file. This attribute is mandatory. --> <attr name="src" /> <!-- Enables or disables antialiasing. --> <attr name="antialias" format="boolean" /> <!-- Enables or disables bitmap filtering. Filtering is used when the bitmap is shrunk or stretched to smooth its apperance. --> <attr name="filter" format="boolean" /> <!-- 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.) --> <attr name="dither" format="boolean" /> <!-- Defines the gravity for the bitmap. The gravity indicates where to position the drawable in its container if the bitmap is smaller than the container. --> <attr name="gravity" /> <!-- Defines the tile mode. When the tile mode is enabled, the bitmap is repeated. Gravity is ignored when the tile mode is enabled. --> <attr name="tileMode"> <!-- Do not tile the bitmap. This is the default value. --> <enum name="disabled" value="-1" /> <!-- Replicates the edge color. --> <enum name="clamp" value="0" /> <!-- Repeats the bitmap in both direction. --> <enum name="repeat" value="1" /> <!-- Repeats the shader's image horizontally and vertically, alternating mirror images so that adjacent images always seam. --> <enum name="mirror" value="2" /> </attr> </declare-styleable> <!-- Drawable used to draw a single color. --> <declare-styleable name="ColorDrawable"> <!-- The color to use. --> <attr name="color" /> </declare-styleable> <declare-styleable name="ScaleDrawable"> <!-- Scale width, expressed as a percentage of the drawable's bound. The value's format is XX%. For instance: 100%, 12.5%, etc.--> <attr name="scaleWidth" format="string" /> <!-- Scale height, expressed as a percentage of the drawable's bound. The value's format is XX%. For instance: 100%, 12.5%, etc.--> <attr name="scaleHeight" format="string" /> <!-- Specifies where the drawable is positioned after scaling. The default value is left. --> <attr name="scaleGravity"> <!-- Push object to the top of its container, not changing its size. --> <flag name="top" value="0x30" /> <!-- Push object to the bottom of its container, not changing its size. --> <flag name="bottom" value="0x50" /> <!-- Push object to the left of its container, not changing its size. --> <flag name="left" value="0x03" /> <!-- Push object to the right of its container, not changing its size. --> <flag name="right" value="0x05" /> <!-- Place object in the vertical center of its container, not changing its size. --> <flag name="center_vertical" value="0x10" /> <!-- Grow the vertical size of the object if needed so it completely fills its container. --> <flag name="fill_vertical" value="0x70" /> <!-- Place object in the horizontal center of its container, not changing its size. --> <flag name="center_horizontal" value="0x01" /> <!-- Grow the horizontal size of the object if needed so it completely fills its container. --> <flag name="fill_horizontal" value="0x07" /> <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. --> <flag name="center" value="0x11" /> <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. --> <flag name="fill" value="0x77" /> </attr> <!-- Reference to a drawable resource to draw with the specified scale. --> <attr name="drawable" /> </declare-styleable> <declare-styleable name="ClipDrawable"> <!-- The orientation for the clip. --> <attr name="clipOrientation"> <!-- Clip the drawable horizontally. --> <flag name="horizontal" value="1" /> <!-- Clip the drawable vertically. --> <flag name="vertical" value="2" /> </attr> <!-- Specifies where to clip within the drawable. The default value is left. --> <attr name="gravity" /> <!-- Reference to a drawable resource to draw with the specified scale. --> <attr name="drawable" /> </declare-styleable> <!-- Defines the padding of a ShapeDrawable. --> <declare-styleable name="ShapeDrawablePadding"> <!-- Left padding. --> <attr name="left" /> <!-- Top padding. --> <attr name="top" /> <!-- Right padding. --> <attr name="right" /> <!-- Bottom padding. --> <attr name="bottom" /> </declare-styleable> <!-- Drawable used to draw shapes. --> <declare-styleable name="ShapeDrawable"> <!-- Defines the color of the shape. --> <attr name="color" /> <!-- Defines the width of the shape. --> <attr name="width" /> <!-- Defines the height of the shape. --> <attr name="height" /> </declare-styleable> <!-- ========================== --> <!-- Animation class attributes --> <!-- ========================== --> <eat-comment /> <declare-styleable name="AnimationSet"> <attr name="shareInterpolator" format="boolean" /> </declare-styleable> <declare-styleable name="Animation"> <!-- Defines the interpolator used to smooth the animation movement in time. --> <attr name="interpolator" /> <!-- When set to true, the animation transformation is applied before the animation has started. The default value is true. --> <attr name="fillBefore" format="boolean" /> <!-- When set to true, the animation transformation is applied after the animation is over. The default value is false. --> <attr name="fillAfter" format="boolean" /> <!-- Amount of time (in milliseconds) for the animation to run. --> <attr name="duration" /> <!-- Delay in milliseconds before the animation runs, once start time is reached. --> <attr name="startOffset" format="integer" /> <!-- Defines how many times the animation should repeat. The default value is 0. --> <attr name="repeatCount" format="integer"> <enum name="infinite" value="-1" /> </attr> <!-- Defines the animation behavior when it reaches the end and the repeat count is greater than 0 or infinite. The default value is restart. --> <attr name="repeatMode"> <!-- The animation starts again from the beginning. --> <enum name="restart" value="1" /> <!-- The animation plays backward. --> <enum name="reverse" value="2" /> </attr> <!-- Allows for an adjustment of the Z ordering of the content being animated for the duration of the animation. The default value is normal. --> <attr name="zAdjustment"> <!-- The content being animated be kept in its current Z order. --> <enum name="normal" value="0" /> <!-- The content being animated is forced on top of all other content for the duration of the animation. --> <enum name="top" value="1" /> <!-- The content being animated is forced under all other content for the duration of the animation. --> <enum name="bottom" value="-1" /> </attr> </declare-styleable> <declare-styleable name="RotateAnimation"> <attr name="fromDegrees" /> <attr name="toDegrees" /> <attr name="pivotX" /> <attr name="pivotY" /> </declare-styleable> <declare-styleable name="ScaleAnimation"> <attr name="fromXScale" format="float" /> <attr name="toXScale" format="float" /> <attr name="fromYScale" format="float" /> <attr name="toYScale" format="float" /> <attr name="pivotX" /> <attr name="pivotY" /> </declare-styleable> <declare-styleable name="TranslateAnimation"> <attr name="fromXDelta" format="float|fraction" /> <attr name="toXDelta" format="float|fraction" /> <attr name="fromYDelta" format="float|fraction" /> <attr name="toYDelta" format="float|fraction" /> </declare-styleable> <declare-styleable name="AlphaAnimation"> <attr name="fromAlpha" format="float" /> <attr name="toAlpha" format="float" /> </declare-styleable> <declare-styleable name="LayoutAnimation"> <!-- Fraction of the animation duration used to delay the beginning of the animation of each child. --> <attr name="delay" format="float|fraction" /> <!-- Animation to use on each child. --> <attr name="animation" format="reference" /> <!-- The order in which the animations will be started. --> <attr name="animationOrder"> <!-- Animations are started in the natural order. --> <enum name="normal" value="0" /> <!-- Animations are started in the reverse order. --> <enum name="reverse" value="1" /> <!-- Animations are started randomly. --> <enum name="random" value="2" /> </attr> <!-- Interpolator used to interpolate the delay between the start of each animation. --> <attr name="interpolator" /> </declare-styleable> <declare-styleable name="GridLayoutAnimation"> <!-- Fraction of the animation duration used to delay the beginning of the animation of each column. --> <attr name="columnDelay" format="float|fraction" /> <!-- Fraction of the animation duration used to delay the beginning of the animation of each row. --> <attr name="rowDelay" format="float|fraction" /> <!-- Direction of the animation in the grid. --> <attr name="direction"> <!-- Animates columns from left to right. --> <flag name="left_to_right" value="0x0" /> <!-- Animates columns from right to left. --> <flag name="right_to_left" value="0x1" /> <!-- Animates rows from top to bottom. --> <flag name="top_to_bottom" value="0x0" /> <!-- Animates rows from bottom to top. --> <flag name="bottom_to_top" value="0x2" /> </attr> <!-- 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. --> <attr name="directionPriority"> <!-- Rows and columns are animated at the same time. --> <enum name="none" value="0" /> <!-- Columns are animated first. --> <enum name="column" value="1" /> <!-- Rows are animated first. --> <enum name="row" value="2" /> </attr> </declare-styleable> <declare-styleable name="AccelerateInterpolator"> <!-- This is the amount of deceleration to ad when easing in. --> <attr name="factor" format="float" /> </declare-styleable> <declare-styleable name="DecelerateInterpolator"> <!-- This is the amount of acceleration to ad when easing out. --> <attr name="factor" /> </declare-styleable> <declare-styleable name="CycleInterpolator"> <attr name="cycles" format="float" /> </declare-styleable> <!-- ========================== --> <!-- State attributes --> <!-- ========================== --> <eat-comment /> <!-- Drawable states. The mapping of Drawable states to a particular drawables is specified in the "state" elements of a Widget's "selector" element. Possible values: <ul> <li>"state_focused" <li>"state_window_focused" <li>"state_enabled" <li>"state_checked" <li>"state_selected" <li>"state_active" <li>"state_single" <li>"state_first" <li>"state_mid" <li>"state_last" <li>"state_only" <li>"state_pressed" <li>"state_error" <li>"state_circle" <li>"state_rect" <li>"state_grow" <li>"state_move" </ul> --> <declare-styleable name="DrawableStates"> <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> <attr name="state_focused" format="boolean" /> <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> <attr name="state_window_focused" format="boolean" /> <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> <attr name="state_enabled" format="boolean" /> <!-- State identifier indicating that the object display a check mark. See {@link R.attr#state_checked} for the identifier that indicates whether it is actually checked. --> <attr name="state_checkable" format="boolean"/> <!-- State identifier indicating that the object is currently checked. See {@link R.attr#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. --> <attr name="state_checked" format="boolean"/> <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> <attr name="state_selected" format="boolean" /> <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> <attr name="state_active" format="boolean" /> <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> <attr name="state_single" format="boolean" /> <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> <attr name="state_first" format="boolean" /> <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> <attr name="state_middle" format="boolean" /> <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> <attr name="state_last" format="boolean" /> <!-- State value for {@link android.graphics.drawable.StateListDrawable StateListDrawable}.--> <attr name="state_pressed" format="boolean" /> </declare-styleable> <declare-styleable name="ViewDrawableStates"> <attr name="state_pressed" /> <attr name="state_focused" /> <attr name="state_selected" /> <attr name="state_window_focused" /> <attr name="state_enabled" /> </declare-styleable> <!-- State array representing a menu item that is currently checked. --> <declare-styleable name="MenuItemCheckedState"> <attr name="state_checkable" /> <attr name="state_checked" /> </declare-styleable> <!-- State array representing a menu item that is checkable but is not currently checked. --> <declare-styleable name="MenuItemUncheckedState"> <attr name="state_checkable" /> </declare-styleable> <!-- State array representing a menu item that is currently focused and checked. --> <declare-styleable name="MenuItemCheckedFocusedState"> <attr name="state_checkable" /> <attr name="state_checked" /> <attr name="state_focused" /> </declare-styleable> <!-- State array representing a menu item that is focused and checkable but is not currently checked. --> <declare-styleable name="MenuItemUncheckedFocusedState"> <attr name="state_checkable" /> <attr name="state_focused" /> </declare-styleable> <!-- State array representing an expandable list child's indicator. --> <declare-styleable name="ExpandableListChildIndicatorState"> <!-- State identifier indicating the child is the last child within its group. --> <attr name="state_last" /> </declare-styleable> <!-- State array representing an expandable list group's indicator. --> <declare-styleable name="ExpandableListGroupIndicatorState"> <!-- State identifier indicating the group is expanded. --> <attr name="state_expanded" format="boolean" /> <!-- State identifier indicating the group is empty (has no children). --> <attr name="state_empty" format="boolean" /> </declare-styleable> <declare-styleable name="PopupWindowBackgroundState"> <!-- State identifier indicating the popup will be above the anchor. --> <attr name="state_above_anchor" format="boolean" /> </declare-styleable> <!-- ***************************************************************** --> <!-- Support for Searchable activities. --> <!-- ***************************************************************** --> <eat-comment /> <!-- Searchable activities and applications must provide search configuration information in an XML file, typically called searchable.xml. This file is referenced in your manifest. For a more in-depth discussion of search configuration, please refer to {@link android.app.SearchManager}. --> <declare-styleable name="Searchable"> <!-- If provided, this icon will be shown in place of the label. It is typically used in order to identify a searchable application via a logo or branding, instead of plain text. This is a reference to a drawable (icon) resource. <i>Optional attribute. --> <attr name="icon" /> <!-- This is the user-displayed name of the searchable activity. <attr name="label" /> <!-- If supplied, this string will be displayed as a hint to the user. <attr name="hint" /> <!-- If supplied, this string will be displayed as the text of the "Search" button. <i>Optional attribute. {@deprecated This will create a non-standard UI appearance, because the search bar UI is changing to use only icons for its buttons.}--> <attr name="searchButtonText" format="string" /> <!-- Additional features are controlled by mode bits in this field. Omitting this field, or setting to zero, provides default behavior. <i>Optional attribute. --> <attr name="searchMode"> <!-- 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. --> <flag name="showSearchLabelAsBadge" value="0x04" /> <!-- If set, this flag enables the display of the search target (icon) within the search bar. (Note, overrides showSearchLabel) If neither bad mode is selected, no badge will be shown.--> <flag name="showSearchIconAsBadge" value="0x08" /> <!-- 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. --> <flag name="queryRewriteFromData" value="0x10" /> <!-- 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. --> <flag name="queryRewriteFromText" value="0x20" /> </attr> <!-- Voice search features are controlled by mode bits in this field. Omitting this field, or setting to zero, provides default behavior. <i>Optional attribute. At this time, the only valid combination is: android:voiceSearchMode="showVoiceSearchButton|launchWebSearch" --> <attr name="voiceSearchMode"> <!-- If set, display a voice search button. --> <flag name="showVoiceSearchButton" value="0x01" /> <!-- 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 your searchable activity. --> <flag name="launchWebSearch" value="0x02" /> </attr> <!-- 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.android.samples.searchsuggest") and should match the "android:authorities" tag in your content provider's manifest entry. <i>Optional attribute.</i> --> <attr name="searchSuggestAuthority" format="string" /> <!-- If provided, this will be inserted in the suggestions query Uri, after the authority you have provide but before the standard suggestions path. <i>Optional attribute. --> <attr name="searchSuggestPath" format="string" /> <!-- If provided, suggestion queries will be passed into your query function as the <i>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 "/".) <i>Optional attribute.</i> --> <attr name="searchSuggestSelection" format="string" /> <!-- If provided, and not overridden by an action in the selected suggestion, this string will be placed in the action field of the {@link android.content.Intent Intent} when the user clicks a suggestion. <i>Optional attribute. --> <attr name="searchSuggestIntentAction" format="string" /> <!-- If provided, and not overridden by an action in the selected suggestion, this string will be placed in the data field of the {@link android.content.Intent Intent} when the user clicks a suggestion. <i>Optional attribute. --> <attr name="searchSuggestIntentData" format="string" /> </declare-styleable> <!-- In order to process special action keys during search, you must define them using one or more "ActionKey" elements in your Searchable metadata. For a more in-depth discussion of action code handling, please refer to {@link android.app.SearchManager}. --> <declare-styleable name="SearchableActionKey"> <!-- This attribute denotes the action key you wish to respond to. Note that not all action keys are actually supported using this mechanism, as many of them are used for typing, navigation, or system functions. This will be added to the {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your searchable activity. To examine the key code, use {@link android.content.Intent#getIntExtra getIntExtra(SearchManager.ACTION_KEY)}. <p>Note, in addition to the keycode, you must also provide one or more of the action specifier attributes. <i>Required attribute. --> <attr name="keycode" /> <!-- If you wish to handle an action key during normal search query entry, you must define an action string here. This will be added to the {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your searchable activity. To examine the string, use {@link android.content.Intent#getStringExtra getStringExtra(SearchManager.ACTION_MSG)}. <i>Optional attribute. --> <attr name="queryActionMsg" format="string" /> <!-- If you wish to handle an action key while a suggestion is being displayed 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 {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH} intent that is passed to your searchable activity. To examine the string, use {@link android.content.Intent#getStringExtra getStringExtra(SearchManager.ACTION_MSG)}. <i>Optional attribute. --> <attr name="suggestActionMsg" format="string" /> <!-- If you wish to handle an action key while a suggestion is being displayed Optional attribute. --> <attr name="suggestActionMsgColumn" format="string" /> </declare-styleable> <!-- ***************************************************************** --> <!-- Support for MapView. --> <!-- ***************************************************************** --> <eat-comment /> <!-- The set of attributes for a MapView. --> <declare-styleable name="MapView"> <!-- Value is a string that specifies the Maps API Key to use. --> <attr name="apiKey" format="string" /> </declare-styleable> <!-- **************************************************************** --> <!-- Menu XML inflation. --> <!-- **************************************************************** --> <eat-comment /> <!-- Base attributes that are available to all Menu objects. --> <declare-styleable name="Menu"> </declare-styleable> <!-- Base attributes that are available to all groups. --> <declare-styleable name="MenuGroup"> <!-- The ID of the group. --> <attr name="id" /> <!-- The category applied to all items within this group. (This will be or'ed with the orderInCategory attribute.) --> <attr name="menuCategory"> <!-- Items are part of a container. --> <enum name="container" value="0x00010000" /> <!-- Items are provided by the system. --> <enum name="system" value="0x00020000" /> <!-- Items are user-supplied secondary (infrequently used). --> <enum name="secondary" value="0x00030000" /> <!-- Items are alternative actions. --> <enum name="alternative" value="0x00040000" /> </attr> <!-- The order within the category applied to all items within this group. (This will be or'ed with the category attribute.) --> <attr name="orderInCategory" format="integer" /> <!-- Whether the items are capable of displaying a check mark. --> <attr name="checkableBehavior"> <!-- The items are not checkable. --> <enum name="none" value="0" /> <!-- The items are all checkable. --> <enum name="all" value="1" /> <!-- The items are checkable and there will only be a single checked item in this group. --> <enum name="single" value="2" /> </attr> <!-- Whether the items are shown/visible. --> <attr name="visible" /> <!-- Whether the items are enabled. --> <attr name="enabled" /> </declare-styleable> <!-- Base attributes that are available to all Item objects. --> <declare-styleable name="MenuItem"> <!-- The ID of the item. --> <attr name="id" /> <!-- The category applied to the item. (This will be or'ed with the orderInCategory attribute.) --> <attr name="menuCategory" /> <!-- The order within the category applied to the item. (This will be or'ed with the category attribute.) --> <attr name="orderInCategory" /> <!-- The title associated with the item. --> <attr name="title" format="string" /> <!-- The condensed title associated with the item. This is used in situations where the normal title may be too long to be displayed. --> <attr name="titleCondensed" format="string" /> <!-- The icon associated with this item. This icon will not always be shown, so the title should be sufficient in describing this item. --> <attr name="icon" /> <!-- The alphabetic shortcut key. This is the shortcut when using a keyboard with alphabetic keys. --> <attr name="alphabeticShortcut" format="string" /> <!-- The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key) keyboard. --> <attr name="numericShortcut" format="string" /> <!-- Whether the item is capable of displaying a check mark. --> <attr name="checkable" format="boolean" /> <!-- Whether the item is checked. Note that you must first have enabled checking with the checkable attribute or else the check mark will not appear. --> <attr name="checked" /> <!-- Whether the item is shown/visible. --> <attr name="visible" /> <!-- Whether the item is enabled. --> <attr name="enabled" /> </declare-styleable> <!-- **************************************************************** --> <!-- Preferences framework. --> <!-- **************************************************************** --> <eat-comment /> <!-- Base attributes available to PreferenceGroup. --> <declare-styleable name="PreferenceGroup"> <!-- 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. --> <attr name="orderingFromXml" format="boolean" /> </declare-styleable> <!-- WARNING: If adding attributes to Preference, make sure it does not conflict with a View's attributes. Some subclasses (e.g., EditTextPreference) proxy all attributes to its EditText widget. --> <eat-comment /> <!-- Base attributes available to Preference. --> <declare-styleable name="Preference"> <!-- The key to store the Preference value. --> <attr name="key" format="string" /> <!-- The title for the Preference in a PreferenceActivity screen. --> <attr name="title" /> <!-- The summary for the Preference in a PreferenceActivity screen. --> <attr name="summary" format="string" /> <!-- The order for the Preference (lower values are to be ordered first). If this is not specified, the default orderin will be alphabetic. --> <attr name="order" format="integer" /> <!-- The layout for the Preference in a PreferenceActivity screen. This should rarely need to be changed, look at widgetLayout instead. --> <attr name="layout" /> <!-- 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. --> <attr name="widgetLayout" format="reference" /> <!-- Whether the Preference is enabled. --> <attr name="enabled" /> <!-- Whether the Preference is selectable. --> <attr name="selectable" format="boolean" /> <!-- 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. --> <attr name="dependency" format="string" /> <!-- Whether the Preference stores its value to the shared preferences. --> <attr name="persistent" /> <!-- 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. --> <attr name="defaultValue" format="string|boolean|integer|reference|float" /> <!-- Whether the view of this Preference should be disabled when this Preference is disabled. --> <attr name="shouldDisableView" format="boolean" /> </declare-styleable> <!-- Base attributes available to CheckBoxPreference. --> <declare-styleable name="CheckBoxPreference"> <!-- 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. --> <attr name="summaryOn" format="string" /> <!-- 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. --> <attr name="summaryOff" format="string" /> <!-- 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. --> <attr name="disableDependentsState" format="boolean" /> </declare-styleable> <!-- Base attributes available to DialogPreference. --> <declare-styleable name="DialogPreference"> <!-- The title in the dialog. --> <attr name="dialogTitle" format="string" /> <!-- 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. --> <attr name="dialogMessage" format="string" /> <!-- The icon for the dialog. --> <attr name="dialogIcon" format="reference" /> <!-- The positive button text for the dialog. Set to @null to hide the positive button. --> <attr name="positiveButtonText" format="string" /> <!-- The negative button text for the dialog. Set to @null to hide the negative button. --> <attr name="negativeButtonText" format="string" /> <!-- 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. --> <attr name="dialogLayout" format="reference" /> </declare-styleable> <!-- Base attributes available to ListPreference. --> <declare-styleable name="ListPreference"> <!-- The human-readable array to present as a list. Each entry must have a corresponding index in entryValues. --> <attr name="entries" /> <!-- The array to find the value to save for a preference when an entry from entries is selected. If a user clicks on the second item in entries, the second item in this array will be saved to the preference. --> <attr name="entryValues" format="reference" /> </declare-styleable> <!-- Base attributes available to RingtonePreference. --> <declare-styleable name="RingtonePreference"> <!-- Which ringtone type(s) to show in the picker. --> <attr name="ringtoneType"> <!-- Ringtones. --> <flag name="ringtone" value="1" /> <!-- Notification sounds. --> <flag name="notification" value="2" /> <!-- Alarm sounds. --> <flag name="alarm" value="4" /> <!-- All available ringtone sounds. --> <flag name="all" value="7" /> </attr> <!-- Whether to show an item for a default sound. --> <attr name="showDefault" format="boolean" /> <!-- Whether to show an item for 'Silent'. --> <attr name="showSilent" format="boolean" /> </declare-styleable> <!-- Base attributes available to VolumePreference. --> <declare-styleable name="VolumePreference"> <!-- Different audio stream types. --> <attr name="streamType"> <enum name="voice" value="0" /> <enum name="system" value="1" /> <enum name="ring" value="2" /> <enum name="music" value="3" /> <enum name="alarm" value="4" /> </attr> </declare-styleable> </resources>

Other Android examples (source code examples)

Here is a short list of links related to this Android attrs.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.