am 5fc71e67: am 00e44ef2: Merge change I54545dfd into eclair-sdk

Merge commit '5fc71e67498ed64ad2d41c23471b008f93cb580e' into eclair-mr2

* commit '5fc71e67498ed64ad2d41c23471b008f93cb580e':
  doc change: fix broken R.styleable formatting (caused by missing periods). Adjust table markup.
This commit is contained in:
Dirk Dougherty
2009-11-04 14:21:20 -08:00
committed by Android Git Automerger
4 changed files with 141 additions and 129 deletions

View File

@ -14,6 +14,11 @@
limitations under the License. limitations under the License.
--> -->
<!-- Formatting note: terminate all comments with a period, to avoid breaking
the documentation output. To suppress comment lines from the documentation
output, insert an eat-comment element after the comment lines.
-->
<resources> <resources>
<!-- These are the standard attributes that make up a complete theme. --> <!-- These are the standard attributes that make up a complete theme. -->
<declare-styleable name="Theme"> <declare-styleable name="Theme">
@ -47,27 +52,27 @@
<!-- =========== --> <!-- =========== -->
<eat-comment /> <eat-comment />
<!-- Default appearance of text: color, typeface, size, and style --> <!-- Default appearance of text: color, typeface, size, and style. -->
<attr name="textAppearance" format="reference" /> <attr name="textAppearance" format="reference" />
<!-- Default appearance of text against an inverted background: <!-- Default appearance of text against an inverted background:
color, typeface, size, and style --> color, typeface, size, and style. -->
<attr name="textAppearanceInverse" format="reference" /> <attr name="textAppearanceInverse" format="reference" />
<!-- The most prominent text color, for the --> <!-- The most prominent text color. -->
<attr name="textColorPrimary" format="reference|color" /> <attr name="textColorPrimary" format="reference|color" />
<!-- Secondary text color --> <!-- Secondary text color. -->
<attr name="textColorSecondary" format="reference|color" /> <attr name="textColorSecondary" format="reference|color" />
<!-- Tertiary text color --> <!-- Tertiary text color. -->
<attr name="textColorTertiary" format="reference|color" /> <attr name="textColorTertiary" format="reference|color" />
<!-- Primary inverse text color, useful for inverted backgrounds --> <!-- Primary inverse text color, useful for inverted backgrounds. -->
<attr name="textColorPrimaryInverse" format="reference|color" /> <attr name="textColorPrimaryInverse" format="reference|color" />
<!-- Secondary inverse text color, useful for inverted backgrounds --> <!-- Secondary inverse text color, useful for inverted backgrounds. -->
<attr name="textColorSecondaryInverse" format="reference|color" /> <attr name="textColorSecondaryInverse" format="reference|color" />
<!-- Tertiary inverse text color, useful for inverted backgrounds --> <!-- Tertiary inverse text color, useful for inverted backgrounds. -->
<attr name="textColorTertiaryInverse" format="reference|color" /> <attr name="textColorTertiaryInverse" format="reference|color" />
<!-- Inverse hint text color --> <!-- Inverse hint text color. -->
<attr name="textColorHintInverse" format="reference|color" /> <attr name="textColorHintInverse" format="reference|color" />
<!-- Bright text color. Only differentiates based on the disabled state. --> <!-- Bright text color. Only differentiates based on the disabled state. -->
@ -122,14 +127,14 @@
to the candidate text as it is edited. --> to the candidate text as it is edited. -->
<attr name="candidatesTextStyleSpans" format="reference|string" /> <attr name="candidatesTextStyleSpans" format="reference|string" />
<!-- Drawable to use for check marks --> <!-- Drawable to use for check marks. -->
<attr name="textCheckMark" format="reference" /> <attr name="textCheckMark" format="reference" />
<attr name="textCheckMarkInverse" format="reference" /> <attr name="textCheckMarkInverse" format="reference" />
<!-- Drawable to use for multiple choice indicators--> <!-- Drawable to use for multiple choice indicators. -->
<attr name="listChoiceIndicatorMultiple" format="reference" /> <attr name="listChoiceIndicatorMultiple" format="reference" />
<!-- Drawable to use for single choice indicators--> <!-- Drawable to use for single choice indicators. -->
<attr name="listChoiceIndicatorSingle" format="reference" /> <attr name="listChoiceIndicatorSingle" format="reference" />
<!-- ============= --> <!-- ============= -->
@ -163,9 +168,9 @@
<!-- =========== --> <!-- =========== -->
<eat-comment /> <eat-comment />
<!-- The preferred list item height --> <!-- The preferred list item height. -->
<attr name="listPreferredItemHeight" format="dimension" /> <attr name="listPreferredItemHeight" format="dimension" />
<!-- The drawable for the list divider --> <!-- The drawable for the list divider. -->
<!-- The list item height for search results. @hide --> <!-- The list item height for search results. @hide -->
<attr name="searchResultListItemHeight" format="dimension" /> <attr name="searchResultListItemHeight" format="dimension" />
<attr name="listDivider" format="reference" /> <attr name="listDivider" format="reference" />
@ -341,9 +346,9 @@
<attr name="gestureOverlayViewStyle" format="reference" /> <attr name="gestureOverlayViewStyle" format="reference" />
<!-- Default GridView style. --> <!-- Default GridView style. -->
<attr name="gridViewStyle" format="reference" /> <attr name="gridViewStyle" format="reference" />
<!-- The style resource to use for an ImageButton --> <!-- The style resource to use for an ImageButton. -->
<attr name="imageButtonStyle" format="reference" /> <attr name="imageButtonStyle" format="reference" />
<!-- The style resource to use for an ImageButton that is an image well --> <!-- The style resource to use for an ImageButton that is an image well. -->
<attr name="imageWellStyle" format="reference" /> <attr name="imageWellStyle" format="reference" />
<!-- Default ListView style. --> <!-- Default ListView style. -->
<attr name="listViewStyle" format="reference" /> <attr name="listViewStyle" format="reference" />
@ -747,21 +752,21 @@
automatically found and converted to clickable links. The default automatically found and converted to clickable links. The default
value is "none", disabling this feature. --> value is "none", disabling this feature. -->
<attr name="autoLink"> <attr name="autoLink">
<!-- Match no patterns (default) --> <!-- Match no patterns (default). -->
<flag name="none" value="0x00" /> <flag name="none" value="0x00" />
<!-- Match Web URLs --> <!-- Match Web URLs. -->
<flag name="web" value="0x01" /> <flag name="web" value="0x01" />
<!-- Match email addresses --> <!-- Match email addresses. -->
<flag name="email" value="0x02" /> <flag name="email" value="0x02" />
<!-- Match phone numbers --> <!-- Match phone numbers. -->
<flag name="phone" value="0x04" /> <flag name="phone" value="0x04" />
<!-- Match map addresses --> <!-- Match map addresses. -->
<flag name="map" value="0x08" /> <flag name="map" value="0x08" />
<!-- Match all patterns (equivalent to web|email|phone|map) --> <!-- Match all patterns (equivalent to web|email|phone|map). -->
<flag name="all" value="0x0f" /> <flag name="all" value="0x0f" />
</attr> </attr>
<!-- Reference to an array resource that will populate a list/adapter --> <!-- Reference to an array resource that will populate a list/adapter. -->
<attr name="entries" format="reference" /> <attr name="entries" format="reference" />
<!-- Standard gravity constant that a child can supply to its parent. <!-- Standard gravity constant that a child can supply to its parent.
@ -813,7 +818,7 @@
<eat-comment /> <eat-comment />
<!-- This enum provides the same keycode values as can be found in <!-- This enum provides the same keycode values as can be found in
{@link android.view.KeyEvent} --> {@link android.view.KeyEvent}. -->
<attr name="keycode"> <attr name="keycode">
<enum name="KEYCODE_UNKNOWN" value="0" /> <enum name="KEYCODE_UNKNOWN" value="0" />
<enum name="KEYCODE_SOFT_LEFT" value="1" /> <enum name="KEYCODE_SOFT_LEFT" value="1" />
@ -1185,7 +1190,7 @@
<attr name="scrollbarTrackVertical" format="reference" /> <attr name="scrollbarTrackVertical" format="reference" />
<!-- Defines whether the horizontal scrollbar track should always be drawn. --> <!-- Defines whether the horizontal scrollbar track should always be drawn. -->
<attr name="scrollbarAlwaysDrawHorizontalTrack" format="boolean" /> <attr name="scrollbarAlwaysDrawHorizontalTrack" format="boolean" />
<!-- Defines whether the vertical scrollbar track should always be drawn --> <!-- Defines whether the vertical scrollbar track should always be drawn. -->
<attr name="scrollbarAlwaysDrawVerticalTrack" format="boolean" /> <attr name="scrollbarAlwaysDrawVerticalTrack" format="boolean" />
<!-- Defines which edges should be fadeded on scrolling. --> <!-- Defines which edges should be fadeded on scrolling. -->
@ -1296,7 +1301,7 @@
exactly one parameter of type View. For instance, if you specify exactly one parameter of type View. For instance, if you specify
<code>android:onClick="sayHello"</code>, you must declare a <code>android:onClick="sayHello"</code>, you must declare a
<code>public void sayHello(View v)</code> method of your context <code>public void sayHello(View v)</code> method of your context
(typically, your Activity.)--> (typically, your Activity). -->
<attr name="onClick" format="string" /> <attr name="onClick" format="string" />
</declare-styleable> </declare-styleable>
@ -1467,7 +1472,7 @@
value is true. --> value is true. -->
<attr name="scrollingCache" format="boolean" /> <attr name="scrollingCache" format="boolean" />
<!-- When set to true, the list will filter results as the user types. The <!-- 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 --> List's adapter must support the Filterable interface for this to work. -->
<attr name="textFilterEnabled" format="boolean" /> <attr name="textFilterEnabled" format="boolean" />
<!-- Sets the transcript mode for the list. In transcript mode, the list <!-- 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. --> scrolls to the bottom to make new items visible when they are added. -->
@ -1519,15 +1524,15 @@
<attr name="format" format="string" localization="suggested" /> <attr name="format" format="string" localization="suggested" />
</declare-styleable> </declare-styleable>
<declare-styleable name="CompoundButton"> <declare-styleable name="CompoundButton">
<!-- Indicates the initial checked state of this button --> <!-- Indicates the initial checked state of this button. -->
<attr name="checked" format="boolean" /> <attr name="checked" format="boolean" />
<!-- Drawable used for the button graphic (e.g. checkbox, radio button, etc). --> <!-- Drawable used for the button graphic (e.g. checkbox, radio button, etc). -->
<attr name="button" format="reference"/> <attr name="button" format="reference"/>
</declare-styleable> </declare-styleable>
<declare-styleable name="CheckedTextView"> <declare-styleable name="CheckedTextView">
<!-- Indicates the initial checked state of this text --> <!-- Indicates the initial checked state of this text. -->
<attr name="checked" /> <attr name="checked" />
<!-- Drawable used for the check mark graphic --> <!-- Drawable used for the check mark graphic. -->
<attr name="checkMark" format="reference"/> <attr name="checkMark" format="reference"/>
</declare-styleable> </declare-styleable>
<declare-styleable name="EditText"> <declare-styleable name="EditText">
@ -1648,12 +1653,12 @@
<!-- An optional argument to supply a maximum height for this view. <!-- An optional argument to supply a maximum height for this view.
See {see android.widget.ImageView#setMaxHeight} for details. --> See {see android.widget.ImageView#setMaxHeight} for details. -->
<attr name="maxHeight" format="dimension" /> <attr name="maxHeight" format="dimension" />
<!-- Set a tinting color for the image --> <!-- Set a tinting color for the image. -->
<attr name="tint" format="color" /> <attr name="tint" format="color" />
<!-- If true, the image view will be baseline aligned with based on its <!-- If true, the image view will be baseline aligned with based on its
bottom edge --> bottom edge. -->
<attr name="baselineAlignBottom" format="boolean" /> <attr name="baselineAlignBottom" format="boolean" />
<!-- If true, the image will be cropped to fit within its padding --> <!-- If true, the image will be cropped to fit within its padding. -->
<attr name="cropToPadding" format="boolean" /> <attr name="cropToPadding" format="boolean" />
</declare-styleable> </declare-styleable>
<declare-styleable name="ToggleButton"> <declare-styleable name="ToggleButton">
@ -1681,7 +1686,7 @@
<attr name="baselineAligned" format="boolean" /> <attr name="baselineAligned" format="boolean" />
<!-- When a linear layout is part of another layout that is baseline <!-- When a linear layout is part of another layout that is baseline
aligned, it can specify which of its children to baseline align to aligned, it can specify which of its children to baseline align to
(i.e which child TextView).--> (that is, which child TextView).-->
<attr name="baselineAlignedChildIndex" format="integer" min="0"/> <attr name="baselineAlignedChildIndex" format="integer" min="0"/>
<!-- Defines the maximum weight sum. If unspecified, the sum is computed <!-- Defines the maximum weight sum. If unspecified, the sum is computed
by adding the layout_weight of all of the children. This can be by adding the layout_weight of all of the children. This can be
@ -1704,11 +1709,11 @@
allows up to one item to be in a chosen state. By setting the choiceMode to 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. --> multipleChoice, the list allows any number of items to be chosen. -->
<attr name="choiceMode"> <attr name="choiceMode">
<!-- Normal list that does not indicate choices --> <!-- Normal list that does not indicate choices. -->
<enum name="none" value="0" /> <enum name="none" value="0" />
<!-- The list allows up to one choice --> <!-- The list allows up to one choice. -->
<enum name="singleChoice" value="1" /> <enum name="singleChoice" value="1" />
<!-- The list allows multiple choices --> <!-- The list allows multiple choices. -->
<enum name="multipleChoice" value="2" /> <enum name="multipleChoice" value="2" />
</attr> </attr>
<!-- When set to false, the ListView will not draw the divider after each header view. <!-- When set to false, the ListView will not draw the divider after each header view.
@ -1729,7 +1734,7 @@
<attr name="headerBackground" format="color|reference" /> <attr name="headerBackground" format="color|reference" />
<!-- Default background for each menu item. --> <!-- Default background for each menu item. -->
<attr name="itemBackground" format="color|reference" /> <attr name="itemBackground" format="color|reference" />
<!-- Default animations for the menu --> <!-- Default animations for the menu. -->
<attr name="windowAnimationStyle" /> <attr name="windowAnimationStyle" />
<!-- Default disabled icon alpha for each menu item that shows an icon. --> <!-- Default disabled icon alpha for each menu item that shows an icon. -->
<attr name="itemIconDisabledAlpha" format="float" /> <attr name="itemIconDisabledAlpha" format="float" />
@ -1743,7 +1748,7 @@
<attr name="maxItemsPerRow" format="integer" /> <attr name="maxItemsPerRow" format="integer" />
<!-- Defines the maximum number of items to show. --> <!-- Defines the maximum number of items to show. -->
<attr name="maxItems" format="integer" /> <attr name="maxItems" format="integer" />
<!-- 'More' icon --> <!-- 'More' icon. -->
<attr name="moreIcon" format="reference" /> <attr name="moreIcon" format="reference" />
</declare-styleable> </declare-styleable>
@ -1783,7 +1788,7 @@
</declare-styleable> </declare-styleable>
<declare-styleable name="SeekBar"> <declare-styleable name="SeekBar">
<!-- Draws the thumb on a seekbar --> <!-- Draws the thumb on a seekbar. -->
<attr name="thumb" format="reference" /> <attr name="thumb" format="reference" />
<!-- An offset for the thumb that allows it to extend out of the range of the track. --> <!-- An offset for the thumb that allows it to extend out of the range of the track. -->
<attr name="thumbOffset" format="dimension" /> <attr name="thumbOffset" format="dimension" />
@ -1810,19 +1815,19 @@
<attr name="orientation" /> <attr name="orientation" />
</declare-styleable> </declare-styleable>
<declare-styleable name="TableLayout"> <declare-styleable name="TableLayout">
<!-- The 0 based index of the columns to stretch. The column indices <!-- The zero-based index of the columns to stretch. The column indices
must be separated by a comma: 1, 2, 5. Illegal and duplicate must be separated by a comma: 1, 2, 5. Illegal and duplicate
indices are ignored. You can stretch all columns by using the indices are ignored. You can stretch all columns by using the
value "*" instead. Note that a column can be marked stretchable value "*" instead. Note that a column can be marked stretchable
and shrinkable at the same time. --> and shrinkable at the same time. -->
<attr name="stretchColumns" format="string" /> <attr name="stretchColumns" format="string" />
<!-- The 0 based index of the columns to shrink. The column indices <!-- The zero-based index of the columns to shrink. The column indices
must be separated by a comma: 1, 2, 5. Illegal and duplicate must be separated by a comma: 1, 2, 5. Illegal and duplicate
indices are ignored. You can shrink all columns by using the indices are ignored. You can shrink all columns by using the
value "*" instead. Note that a column can be marked stretchable value "*" instead. Note that a column can be marked stretchable
and shrinkable at the same time. --> and shrinkable at the same time. -->
<attr name="shrinkColumns" format="string" /> <attr name="shrinkColumns" format="string" />
<!-- The 0 based index of the columns to collapse. The column indices <!-- The zero-based index of the columns to collapse. The column indices
must be separated by a comma: 1, 2, 5. Illegal and duplicate must be separated by a comma: 1, 2, 5. Illegal and duplicate
indices are ignored. --> indices are ignored. -->
<attr name="collapseColumns" format="string" /> <attr name="collapseColumns" format="string" />
@ -1884,7 +1889,7 @@
<attr name="textAppearance" /> <attr name="textAppearance" />
<!-- Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). --> <!-- Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). -->
<attr name="textSize" /> <attr name="textSize" />
<!-- Sets the horizontal scaling factor for the text --> <!-- Sets the horizontal scaling factor for the text. -->
<attr name="textScaleX" format="float" /> <attr name="textScaleX" format="float" />
<!-- Typeface (normal, sans, serif, monospace) for the text. --> <!-- Typeface (normal, sans, serif, monospace) for the text. -->
<attr name="typeface" /> <attr name="typeface" />
@ -1892,35 +1897,35 @@
<attr name="textStyle" /> <attr name="textStyle" />
<!-- Text color for links. --> <!-- Text color for links. -->
<attr name="textColorLink" /> <attr name="textColorLink" />
<!-- Makes the cursor visible (the default) or invisible --> <!-- Makes the cursor visible (the default) or invisible. -->
<attr name="cursorVisible" format="boolean" /> <attr name="cursorVisible" format="boolean" />
<!-- Makes the TextView be at most this many lines tall --> <!-- Makes the TextView be at most this many lines tall. -->
<attr name="maxLines" format="integer" min="0" /> <attr name="maxLines" format="integer" min="0" />
<!-- Makes the TextView be at most this many pixels tall --> <!-- Makes the TextView be at most this many pixels tall. -->
<attr name="maxHeight" /> <attr name="maxHeight" />
<!-- Makes the TextView be exactly this many lines tall --> <!-- Makes the TextView be exactly this many lines tall. -->
<attr name="lines" format="integer" min="0" /> <attr name="lines" format="integer" min="0" />
<!-- Makes the TextView be exactly this many pixels tall. <!-- Makes the TextView be exactly this many pixels tall.
You could get the same effect by specifying this number in the You could get the same effect by specifying this number in the
layout parameters. --> layout parameters. -->
<attr name="height" format="dimension" /> <attr name="height" format="dimension" />
<!-- Makes the TextView be at least this many lines tall --> <!-- Makes the TextView be at least this many lines tall. -->
<attr name="minLines" format="integer" min="0" /> <attr name="minLines" format="integer" min="0" />
<!-- Makes the TextView be at least this many pixels tall --> <!-- Makes the TextView be at least this many pixels tall. -->
<attr name="minHeight" /> <attr name="minHeight" />
<!-- Makes the TextView be at most this many ems wide --> <!-- Makes the TextView be at most this many ems wide. -->
<attr name="maxEms" format="integer" min="0" /> <attr name="maxEms" format="integer" min="0" />
<!-- Makes the TextView be at most this many pixels wide --> <!-- Makes the TextView be at most this many pixels wide. -->
<attr name="maxWidth" /> <attr name="maxWidth" />
<!-- Makes the TextView be exactly this many ems wide --> <!-- Makes the TextView be exactly this many ems wide. -->
<attr name="ems" format="integer" min="0" /> <attr name="ems" format="integer" min="0" />
<!-- Makes the TextView be exactly this many pixels wide. <!-- Makes the TextView be exactly this many pixels wide.
You could get the same effect by specifying this number in the You could get the same effect by specifying this number in the
layout parameters. --> layout parameters. -->
<attr name="width" format="dimension" /> <attr name="width" format="dimension" />
<!-- Makes the TextView be at least this many ems wide --> <!-- Makes the TextView be at least this many ems wide. -->
<attr name="minEms" format="integer" min="0" /> <attr name="minEms" format="integer" min="0" />
<!-- Makes the TextView be at least this many pixels wide --> <!-- Makes the TextView be at least this many pixels wide. -->
<attr name="minWidth" /> <attr name="minWidth" />
<!-- Specifies how to align the text by the view's x- and/or y-axis <!-- Specifies how to align the text by the view's x- and/or y-axis
when the text is smaller than the view. --> when the text is smaller than the view. -->
@ -1946,7 +1951,7 @@
inputType attributes are found, the inputType flags will override the value of inputType attributes are found, the inputType flags will override the value of
singleLine.) } --> singleLine.) } -->
<attr name="singleLine" format="boolean" /> <attr name="singleLine" format="boolean" />
<!-- {@deprecated Use state_enabled instead.} --> <!-- Specifies whether the TextView is enabled or not. {@deprecated Use state_enabled instead}. -->
<attr name="enabled" format="boolean" /> <attr name="enabled" format="boolean" />
<!-- If the text is selectable, select it all when the view takes <!-- If the text is selectable, select it all when the view takes
focus instead of moving the cursor to the start or end. --> focus instead of moving the cursor to the start or end. -->
@ -2050,7 +2055,7 @@
<!-- The number of times to repeat the marquee animation. Only applied if the <!-- The number of times to repeat the marquee animation. Only applied if the
TextView has marquee enabled. --> TextView has marquee enabled. -->
<attr name="marqueeRepeatLimit" format="integer"> <attr name="marqueeRepeatLimit" format="integer">
<!-- Indicates that marquee should repeat indefinitely --> <!-- Indicates that marquee should repeat indefinitely. -->
<enum name="marquee_forever" value="-1" /> <enum name="marquee_forever" value="-1" />
</attr> </attr>
<attr name="inputType" /> <attr name="inputType" />
@ -2149,9 +2154,9 @@
<attr name="prompt" format="reference" /> <attr name="prompt" format="reference" />
</declare-styleable> </declare-styleable>
<declare-styleable name="DatePicker"> <declare-styleable name="DatePicker">
<!-- The first year (inclusive) i.e. 1940 --> <!-- The first year (inclusive), for example "1940". -->
<attr name="startYear" format="integer" /> <attr name="startYear" format="integer" />
<!-- The last year (inclusive) i.e. 2010 --> <!-- The last year (inclusive), for example "2010". -->
<attr name="endYear" format="integer" /> <attr name="endYear" format="integer" />
</declare-styleable> </declare-styleable>
@ -2160,7 +2165,7 @@
<!-- Always show only the first line. --> <!-- Always show only the first line. -->
<enum name="oneLine" value="1" /> <enum name="oneLine" value="1" />
<!-- When selected show both lines, otherwise show only the first line. <!-- When selected show both lines, otherwise show only the first line.
This is the default mode--> This is the default mode. -->
<enum name="collapsing" value="2" /> <enum name="collapsing" value="2" />
<!-- Always show both lines. --> <!-- Always show both lines. -->
<enum name="twoLine" value="3" /> <enum name="twoLine" value="3" />
@ -2323,7 +2328,7 @@
<declare-styleable name="Drawable"> <declare-styleable name="Drawable">
<!-- Provides initial visibility state of the drawable; the default <!-- Provides initial visibility state of the drawable; the default
value is false. See value is false. See
{@link android.graphics.drawable.Drawable#setVisible} --> {@link android.graphics.drawable.Drawable#setVisible}. -->
<attr name="visible" format="boolean" /> <attr name="visible" format="boolean" />
</declare-styleable> </declare-styleable>
@ -2343,7 +2348,7 @@
<attr name="constantSize" format="boolean" /> <attr name="constantSize" format="boolean" />
<!-- Enables or disables dithering of the bitmap if the bitmap does not have the <!-- 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 same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with
an RGB 565 screen.) --> an RGB 565 screen). -->
<attr name="dither" format="boolean" /> <attr name="dither" format="boolean" />
</declare-styleable> </declare-styleable>
@ -2490,7 +2495,7 @@
<attr name="filter" format="boolean" /> <attr name="filter" format="boolean" />
<!-- Enables or disables dithering of the bitmap if the bitmap does not have the <!-- 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 same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with
an RGB 565 screen.) --> an RGB 565 screen). -->
<attr name="dither" /> <attr name="dither" />
<!-- Defines the gravity for the bitmap. The gravity indicates where to position <!-- 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. --> the drawable in its container if the bitmap is smaller than the container. -->
@ -2516,7 +2521,7 @@
<attr name="src" /> <attr name="src" />
<!-- Enables or disables dithering of the bitmap if the bitmap does not have the <!-- 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 same pixel configuration as the screen (for instance: a ARGB 8888 bitmap with
an RGB 565 screen.) --> an RGB 565 screen). -->
<attr name="dither" /> <attr name="dither" />
</declare-styleable> </declare-styleable>
@ -3350,7 +3355,7 @@
<!-- Size of the text for custom keys with some text and no icon. --> <!-- Size of the text for custom keys with some text and no icon. -->
<attr name="labelTextSize" format="dimension" /> <attr name="labelTextSize" format="dimension" />
<!-- Color to use for the label in a key --> <!-- Color to use for the label in a key. -->
<attr name="keyTextColor" format="color" /> <attr name="keyTextColor" format="color" />
<!-- Layout resource for key press feedback.--> <!-- Layout resource for key press feedback.-->
@ -3365,7 +3370,7 @@
<!-- Amount to offset the touch Y coordinate by, for bias correction. --> <!-- Amount to offset the touch Y coordinate by, for bias correction. -->
<attr name="verticalCorrection" format="dimension" /> <attr name="verticalCorrection" format="dimension" />
<!-- Layout resource for popup keyboards --> <!-- Layout resource for popup keyboards. -->
<attr name="popupLayout" format="reference" /> <attr name="popupLayout" format="reference" />
<attr name="shadowColor" /> <attr name="shadowColor" />
@ -3374,74 +3379,75 @@
<declare-styleable name="KeyboardViewPreviewState"> <declare-styleable name="KeyboardViewPreviewState">
<!-- State for {@link android.inputmethodservice.KeyboardView KeyboardView} <!-- State for {@link android.inputmethodservice.KeyboardView KeyboardView}
key preview background --> key preview background. -->
<attr name="state_long_pressable" format="boolean" /> <attr name="state_long_pressable" format="boolean" />
</declare-styleable> </declare-styleable>
<declare-styleable name="Keyboard"> <declare-styleable name="Keyboard">
<!-- Default width of a key, in pixels or percentage of display width --> <!-- Default width of a key, in pixels or percentage of display width. -->
<attr name="keyWidth" format="dimension|fraction" /> <attr name="keyWidth" format="dimension|fraction" />
<!-- Default height of a key, in pixels or percentage of display width --> <!-- Default height of a key, in pixels or percentage of display width. -->
<attr name="keyHeight" format="dimension|fraction" /> <attr name="keyHeight" format="dimension|fraction" />
<!-- Default horizontal gap between keys --> <!-- Default horizontal gap between keys. -->
<attr name="horizontalGap" format="dimension|fraction" /> <attr name="horizontalGap" format="dimension|fraction" />
<!-- Default vertical gap between rows of keys --> <!-- Default vertical gap between rows of keys. -->
<attr name="verticalGap" format="dimension|fraction" /> <attr name="verticalGap" format="dimension|fraction" />
</declare-styleable> </declare-styleable>
<declare-styleable name="Keyboard_Row"> <declare-styleable name="Keyboard_Row">
<!-- Row edge flags--> <!-- Row edge flags. -->
<attr name="rowEdgeFlags"> <attr name="rowEdgeFlags">
<!-- Row is anchored to the top of the keyboard --> <!-- Row is anchored to the top of the keyboard. -->
<flag name="top" value="4" /> <flag name="top" value="4" />
<!-- Row is anchored to the bottom of the keyboard --> <!-- Row is anchored to the bottom of the keyboard. -->
<flag name="bottom" value="8" /> <flag name="bottom" value="8" />
</attr> </attr>
<!-- Mode of the keyboard. If the mode doesn't match the <!-- Mode of the keyboard. If the mode doesn't match the
requested keyboard mode, the row will be skipped --> requested keyboard mode, the row will be skipped. -->
<attr name="keyboardMode" format="reference" /> <attr name="keyboardMode" format="reference" />
</declare-styleable> </declare-styleable>
<declare-styleable name="Keyboard_Key"> <declare-styleable name="Keyboard_Key">
<!-- The unicode value or comma-separated values that this key outputs --> <!-- The unicode value or comma-separated values that this key outputs. -->
<attr name="codes" format="integer|string" /> <attr name="codes" format="integer|string" />
<!-- The XML keyboard layout of any popup keyboard --> <!-- The XML keyboard layout of any popup keyboard. -->
<attr name="popupKeyboard" format="reference" /> <attr name="popupKeyboard" format="reference" />
<!-- The characters to display in the popup keyboard --> <!-- The characters to display in the popup keyboard. -->
<attr name="popupCharacters" format="string" /> <attr name="popupCharacters" format="string" />
<!-- Key edge flags --> <!-- Key edge flags. -->
<attr name="keyEdgeFlags"> <attr name="keyEdgeFlags">
<!-- Key is anchored to the left of the keyboard --> <!-- Key is anchored to the left of the keyboard. -->
<flag name="left" value="1" /> <flag name="left" value="1" />
<!-- Key is anchored to the right of the keyboard --> <!-- Key is anchored to the right of the keyboard. -->
<flag name="right" value="2" /> <flag name="right" value="2" />
</attr> </attr>
<!-- Whether this is a modifier key such as Alt or Shift --> <!-- Whether this is a modifier key such as Alt or Shift. -->
<attr name="isModifier" format="boolean" /> <attr name="isModifier" format="boolean" />
<!-- Whether this is a toggle key --> <!-- Whether this is a toggle key. -->
<attr name="isSticky" format="boolean" /> <attr name="isSticky" format="boolean" />
<!-- Whether long-pressing on this key will make it repeat --> <!-- Whether long-pressing on this key will make it repeat. -->
<attr name="isRepeatable" format="boolean" /> <attr name="isRepeatable" format="boolean" />
<!-- The icon to show in the popup preview --> <!-- The icon to show in the popup preview. -->
<attr name="iconPreview" format="reference" /> <attr name="iconPreview" format="reference" />
<!-- The string of characters to output when this key is pressed --> <!-- The string of characters to output when this key is pressed. -->
<attr name="keyOutputText" format="string" /> <attr name="keyOutputText" format="string" />
<!-- The label to display on the key --> <!-- The label to display on the key. -->
<attr name="keyLabel" format="string" /> <attr name="keyLabel" format="string" />
<!-- The icon to display on the key instead of the label --> <!-- The icon to display on the key instead of the label. -->
<attr name="keyIcon" format="reference" /> <attr name="keyIcon" format="reference" />
<!-- Mode of the keyboard. If the mode doesn't match the <!-- Mode of the keyboard. If the mode doesn't match the
requested keyboard mode, the key will be skipped --> requested keyboard mode, the key will be skipped. -->
<attr name="keyboardMode" /> <attr name="keyboardMode" />
</declare-styleable> </declare-styleable>
<!-- =============================== --> <!-- =============================== -->
<!-- AppWidget package class attributes --> <!-- AppWidget package class attributes -->
<!-- =============================== --> <!-- =============================== -->
<eat-comment />
<!-- Use <code>appwidget-provider</code> as the root tag of the XML resource that <!-- Use <code>appwidget-provider</code> as the root tag of the XML resource that
describes an AppWidget provider. See TODO android.appwidget package describes an AppWidget provider. See {@link android.appwidget android.appwidget}
for more info. package for more info.
--> -->
<declare-styleable name="AppWidgetProviderInfo"> <declare-styleable name="AppWidgetProviderInfo">
<!-- Minimum width of the AppWidget. --> <!-- Minimum width of the AppWidget. -->
@ -3460,6 +3466,7 @@
<!-- =============================== --> <!-- =============================== -->
<!-- App package class attributes --> <!-- App package class attributes -->
<!-- =============================== --> <!-- =============================== -->
<eat-comment />
<!-- Use <code>wallpaper</code> as the root tag of the XML resource that <!-- Use <code>wallpaper</code> as the root tag of the XML resource that
describes an describes an
@ -3481,26 +3488,28 @@
<!-- =============================== --> <!-- =============================== -->
<!-- Accounts package class attributes --> <!-- Accounts package class attributes -->
<!-- =============================== --> <!-- =============================== -->
<eat-comment />
<!-- Use <code>account-authenticator</code> as the root tag of the XML resource that <!-- Use <code>account-authenticator</code> as the root tag of the XML resource that
describes an account authenticator. describes an account authenticator.
--> -->
<declare-styleable name="AccountAuthenticator"> <declare-styleable name="AccountAuthenticator">
<!-- the account type this authenticator handles. --> <!-- The account type this authenticator handles. -->
<attr name="accountType" format="string"/> <attr name="accountType" format="string"/>
<!-- the user-visible name of the authenticator. --> <!-- The user-visible name of the authenticator. -->
<attr name="label"/> <attr name="label"/>
<!-- the icon of the authenticator. --> <!-- The icon of the authenticator. -->
<attr name="icon"/> <attr name="icon"/>
<!-- smaller icon of the authenticator --> <!-- Smaller icon of the authenticator. -->
<attr name="smallIcon" format="reference"/> <attr name="smallIcon" format="reference"/>
<!-- a preferences.xml file for authenticator-specific settings --> <!-- A preferences.xml file for authenticator-specific settings. -->
<attr name="accountPreferences" format="reference"/> <attr name="accountPreferences" format="reference"/>
</declare-styleable> </declare-styleable>
<!-- =============================== --> <!-- =============================== -->
<!-- Accounts package class attributes --> <!-- Accounts package class attributes -->
<!-- =============================== --> <!-- =============================== -->
<eat-comment />
<!-- Use <code>account-authenticator</code> as the root tag of the XML resource that <!-- Use <code>account-authenticator</code> as the root tag of the XML resource that
describes an account authenticator. describes an account authenticator.
@ -3516,29 +3525,32 @@
<!-- =============================== --> <!-- =============================== -->
<!-- Contacts meta-data attributes --> <!-- Contacts meta-data attributes -->
<!-- =============================== --> <!-- =============================== -->
<eat-comment />
<!-- TODO: remove this deprecated styleable --> <!-- TODO: remove this deprecated styleable. -->
<eat-comment />
<declare-styleable name="Icon"> <declare-styleable name="Icon">
<attr name="icon" /> <attr name="icon" />
<attr name="mimeType" /> <attr name="mimeType" />
</declare-styleable> </declare-styleable>
<!-- TODO: remove this deprecated styleable --> <!-- TODO: remove this deprecated styleable -->
<eat-comment />
<declare-styleable name="IconDefault"> <declare-styleable name="IconDefault">
<attr name="icon" /> <attr name="icon" />
</declare-styleable> </declare-styleable>
<!-- Maps a specific contact data MIME-type to styling information --> <!-- Maps a specific contact data MIME-type to styling information. -->
<declare-styleable name="ContactsDataKind"> <declare-styleable name="ContactsDataKind">
<!-- Mime-type handled by this mapping --> <!-- Mime-type handled by this mapping. -->
<attr name="mimeType" /> <attr name="mimeType" />
<!-- Icon used to represent data of this kind --> <!-- Icon used to represent data of this kind. -->
<attr name="icon" /> <attr name="icon" />
<!-- Column in data table that summarizes this data --> <!-- Column in data table that summarizes this data. -->
<attr name="summaryColumn" format="string" /> <attr name="summaryColumn" format="string" />
<!-- Column in data table that contains details for this data --> <!-- Column in data table that contains details for this data. -->
<attr name="detailColumn" format="string" /> <attr name="detailColumn" format="string" />
<!-- Flag indicating that detail should be built from SocialProvider --> <!-- Flag indicating that detail should be built from SocialProvider. -->
<attr name="detailSocialSummary" format="boolean" /> <attr name="detailSocialSummary" format="boolean" />
</declare-styleable> </declare-styleable>

View File

@ -661,7 +661,7 @@
for normal behavior. --> for normal behavior. -->
<attr name="hasCode" format="boolean" /> <attr name="hasCode" format="boolean" />
<attr name="persistent" /> <attr name="persistent" />
<!-- Specify whether the components in this application are enabled or not (i.e. can be <!-- Specify whether the components in this application are enabled or not (that is, can be
instantiated by the system). instantiated by the system).
If "false", it overrides any component specific values (a value of "true" will not If "false", it overrides any component specific values (a value of "true" will not
override the component specific values). --> override the component specific values). -->
@ -929,7 +929,7 @@
<declare-styleable name="AndroidManifestProvider" parent="AndroidManifestApplication"> <declare-styleable name="AndroidManifestProvider" parent="AndroidManifestApplication">
<!-- Required name of the class implementing the provider, deriving from <!-- Required name of the class implementing the provider, deriving from
{@link android.content.ContentProvider}. This is a fully {@link android.content.ContentProvider}. This is a fully
qualified class name (i.e., com.mycompany.myapp.MyProvider); as a qualified class name (for example, com.mycompany.myapp.MyProvider); as a
short-hand if the first character of the class short-hand if the first character of the class
is a period then it is appended to your package name. --> is a period then it is appended to your package name. -->
<attr name="name" /> <attr name="name" />
@ -944,7 +944,7 @@
<attr name="permission" /> <attr name="permission" />
<attr name="multiprocess" /> <attr name="multiprocess" />
<attr name="initOrder" /> <attr name="initOrder" />
<!-- Specify whether this provider is enabled or not (i.e. can be instantiated by the system). <!-- Specify whether this provider is enabled or not (that is, can be instantiated by the system).
It can also be specified for an application as a whole, in which case a value of "false" It can also be specified for an application as a whole, in which case a value of "false"
will override any component specific values (a value of "true" will not override the will override any component specific values (a value of "true" will not override the
component specific values). --> component specific values). -->
@ -1007,7 +1007,7 @@
<declare-styleable name="AndroidManifestService" parent="AndroidManifestApplication"> <declare-styleable name="AndroidManifestService" parent="AndroidManifestApplication">
<!-- Required name of the class implementing the service, deriving from <!-- Required name of the class implementing the service, deriving from
{@link android.app.Service}. This is a fully {@link android.app.Service}. This is a fully
qualified class name (i.e., com.mycompany.myapp.MyService); as a qualified class name (for example, com.mycompany.myapp.MyService); as a
short-hand if the first character of the class short-hand if the first character of the class
is a period then it is appended to your package name. --> is a period then it is appended to your package name. -->
<attr name="name" /> <attr name="name" />
@ -1015,7 +1015,7 @@
<attr name="icon" /> <attr name="icon" />
<attr name="permission" /> <attr name="permission" />
<attr name="process" /> <attr name="process" />
<!-- Specify whether the service is enabled or not (i.e. can be instantiated by the system). <!-- Specify whether the service is enabled or not (that is, can be instantiated by the system).
It can also be specified for an application as a whole, in which case a value of "false" It can also be specified for an application as a whole, in which case a value of "false"
will override any component specific values (a value of "true" will not override the will override any component specific values (a value of "true" will not override the
component specific values). --> component specific values). -->
@ -1038,7 +1038,7 @@
<declare-styleable name="AndroidManifestReceiver" parent="AndroidManifestApplication"> <declare-styleable name="AndroidManifestReceiver" parent="AndroidManifestApplication">
<!-- Required name of the class implementing the receiver, deriving from <!-- Required name of the class implementing the receiver, deriving from
{@link android.content.BroadcastReceiver}. This is a fully {@link android.content.BroadcastReceiver}. This is a fully
qualified class name (i.e., com.mycompany.myapp.MyReceiver); as a qualified class name (for example, com.mycompany.myapp.MyReceiver); as a
short-hand if the first character of the class short-hand if the first character of the class
is a period then it is appended to your package name. --> is a period then it is appended to your package name. -->
<attr name="name" /> <attr name="name" />
@ -1046,7 +1046,7 @@
<attr name="icon" /> <attr name="icon" />
<attr name="permission" /> <attr name="permission" />
<attr name="process" /> <attr name="process" />
<!-- Specify whether the receiver is enabled or not (i.e. can be instantiated by the system). <!-- Specify whether the receiver is enabled or not (that is, can be instantiated by the system).
It can also be specified for an application as a whole, in which case a value of "false" It can also be specified for an application as a whole, in which case a value of "false"
will override any component specific values (a value of "true" will not override the will override any component specific values (a value of "true" will not override the
component specific values). --> component specific values). -->
@ -1068,7 +1068,7 @@
<declare-styleable name="AndroidManifestActivity" parent="AndroidManifestApplication"> <declare-styleable name="AndroidManifestActivity" parent="AndroidManifestApplication">
<!-- Required name of the class implementing the activity, deriving from <!-- Required name of the class implementing the activity, deriving from
{@link android.app.Activity}. This is a fully {@link android.app.Activity}. This is a fully
qualified class name (i.e., com.mycompany.myapp.MyActivity); as a qualified class name (for example, com.mycompany.myapp.MyActivity); as a
short-hand if the first character of the class short-hand if the first character of the class
is a period then it is appended to your package name. --> is a period then it is appended to your package name. -->
<attr name="name" /> <attr name="name" />
@ -1090,7 +1090,7 @@
<attr name="alwaysRetainTaskState" /> <attr name="alwaysRetainTaskState" />
<attr name="stateNotNeeded" /> <attr name="stateNotNeeded" />
<attr name="excludeFromRecents" /> <attr name="excludeFromRecents" />
<!-- Specify whether the activity is enabled or not (i.e. can be instantiated by the system). <!-- Specify whether the activity is enabled or not (that is, can be instantiated by the system).
It can also be specified for an application as a whole, in which case a value of "false" It can also be specified for an application as a whole, in which case a value of "false"
will override any component specific values (a value of "true" will not override the will override any component specific values (a value of "true" will not override the
component specific values). --> component specific values). -->
@ -1115,7 +1115,7 @@
<declare-styleable name="AndroidManifestActivityAlias" parent="AndroidManifestApplication"> <declare-styleable name="AndroidManifestActivityAlias" parent="AndroidManifestApplication">
<!-- Required name of the class implementing the activity, deriving from <!-- Required name of the class implementing the activity, deriving from
{@link android.app.Activity}. This is a fully {@link android.app.Activity}. This is a fully
qualified class name (i.e., com.mycompany.myapp.MyActivity); as a qualified class name (for example, com.mycompany.myapp.MyActivity); as a
short-hand if the first character of the class short-hand if the first character of the class
is a period then it is appended to your package name. --> is a period then it is appended to your package name. -->
<attr name="name" /> <attr name="name" />
@ -1128,7 +1128,7 @@
<attr name="label" /> <attr name="label" />
<attr name="icon" /> <attr name="icon" />
<attr name="permission" /> <attr name="permission" />
<!-- Specify whether the activity-alias is enabled or not (i.e. can be instantiated by the system). <!-- Specify whether the activity-alias is enabled or not (that is, can be instantiated by the system).
It can also be specified for an application as a whole, in which case a value of "false" It can also be specified for an application as a whole, in which case a value of "false"
will override any component specific values (a value of "true" will not override the will override any component specific values (a value of "true" will not override the
component specific values). --> component specific values). -->
@ -1295,7 +1295,7 @@
<declare-styleable name="AndroidManifestInstrumentation" parent="AndroidManifest"> <declare-styleable name="AndroidManifestInstrumentation" parent="AndroidManifest">
<!-- Required name of the class implementing the instrumentation, deriving from <!-- Required name of the class implementing the instrumentation, deriving from
{@link android.app.Instrumentation}. This is a fully {@link android.app.Instrumentation}. This is a fully
qualified class name (i.e., com.mycompany.myapp.MyActivity); as a qualified class name (for example, com.mycompany.myapp.MyActivity); as a
short-hand if the first character of the class short-hand if the first character of the class
is a period then it is appended to your package name. --> is a period then it is appended to your package name. -->
<attr name="name" /> <attr name="name" />

View File

@ -1285,10 +1285,10 @@ static status_t writeLayoutClasses(
hasTable = true; hasTable = true;
fprintf(fp, fprintf(fp,
"%s <p>Includes the following attributes:</p>\n" "%s <p>Includes the following attributes:</p>\n"
"%s <table border=\"2\" width=\"85%%\" align=\"center\" frame=\"hsides\" rules=\"all\" cellpadding=\"5\">\n" "%s <table>\n"
"%s <colgroup align=\"left\" />\n" "%s <colgroup align=\"left\" />\n"
"%s <colgroup align=\"left\" />\n" "%s <colgroup align=\"left\" />\n"
"%s <tr><th>Attribute<th>Summary</tr>\n", "%s <tr><th>Attribute</th><th>Description</th></tr>\n",
indentStr, indentStr,
indentStr, indentStr,
indentStr, indentStr,
@ -1322,7 +1322,7 @@ static status_t writeLayoutClasses(
} }
String16 name(name8); String16 name(name8);
fixupSymbol(&name); fixupSymbol(&name);
fprintf(fp, "%s <tr><th><code>{@link #%s_%s %s:%s}</code><td>%s</tr>\n", fprintf(fp, "%s <tr><td><code>{@link #%s_%s %s:%s}</code></td><td>%s</td></tr>\n",
indentStr, nclassName.string(), indentStr, nclassName.string(),
String8(name).string(), String8(name).string(),
assets->getPackage().string(), assets->getPackage().string(),

View File

@ -480,22 +480,22 @@ static status_t compileAttribute(const sp<AaptFile>& in,
enumOrFlagsComment.append((attr.type&ResTable_map::TYPE_ENUM) enumOrFlagsComment.append((attr.type&ResTable_map::TYPE_ENUM)
? String16(" be one of the following constant values.") ? String16(" be one of the following constant values.")
: String16(" be one or more (separated by '|') of the following constant values.")); : String16(" be one or more (separated by '|') of the following constant values."));
enumOrFlagsComment.append(String16("</p>\n<table border=\"2\" width=\"85%\" align=\"center\" frame=\"hsides\" rules=\"all\" cellpadding=\"5\">\n" enumOrFlagsComment.append(String16("</p>\n<table>\n"
"<colgroup align=\"left\" />\n" "<colgroup align=\"left\" />\n"
"<colgroup align=\"left\" />\n" "<colgroup align=\"left\" />\n"
"<colgroup align=\"left\" />\n" "<colgroup align=\"left\" />\n"
"<tr><th>Constant<th>Value<th>Description</tr>")); "<tr><th>Constant</th><th>Value</th><th>Description</th></tr>"));
} }
enumOrFlagsComment.append(String16("\n<tr><th><code>")); enumOrFlagsComment.append(String16("\n<tr><td><code>"));
enumOrFlagsComment.append(itemIdent); enumOrFlagsComment.append(itemIdent);
enumOrFlagsComment.append(String16("</code><td>")); enumOrFlagsComment.append(String16("</code></td><td>"));
enumOrFlagsComment.append(value); enumOrFlagsComment.append(value);
enumOrFlagsComment.append(String16("<td>")); enumOrFlagsComment.append(String16("</td><td>"));
if (block.getComment(&len)) { if (block.getComment(&len)) {
enumOrFlagsComment.append(String16(block.getComment(&len))); enumOrFlagsComment.append(String16(block.getComment(&len)));
} }
enumOrFlagsComment.append(String16("</tr>")); enumOrFlagsComment.append(String16("</td></tr>"));
err = outTable->addBag(SourcePos(in->getPrintableSource(), block.getLineNumber()), err = outTable->addBag(SourcePos(in->getPrintableSource(), block.getLineNumber()),
myPackage, myPackage,