checkey / libs / appcompat / res / values / attrs.xml @ 44e720f7
History | View | Annotate | Download (28.6 KB)
| 1 |
<?xml version="1.0" encoding="utf-8"?>
|
|---|---|
| 2 |
<!-- Copyright (C) 2012 The Android Open Source Project
|
| 3 |
|
| 4 |
Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
you may not use this file except in compliance with the License.
|
| 6 |
You may obtain a copy of the License at
|
| 7 |
|
| 8 |
http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
|
| 10 |
Unless required by applicable law or agreed to in writing, software
|
| 11 |
distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
See the License for the specific language governing permissions and
|
| 14 |
limitations under the License.
|
| 15 |
-->
|
| 16 |
|
| 17 |
<resources>
|
| 18 |
<!-- Many app-specific attributes are declared in this file.
|
| 19 |
Unless otherwise specified, they are intended to be set within
|
| 20 |
the context of a theme declaration.
|
| 21 |
|
| 22 |
Each cluster of attributes below states whether it is meant to
|
| 23 |
be set by the app and read by the system, or set by the system and
|
| 24 |
read by the app. -->
|
| 25 |
<eat-comment/> |
| 26 |
|
| 27 |
<!-- These attributes are meant to be specified and customized by the app.
|
| 28 |
The system will read and apply them as needed. These attributes control
|
| 29 |
properties of the activity window, such as whether an action bar should
|
| 30 |
be present and whether it should overlay content. -->
|
| 31 |
<declare-styleable name="ActionBarWindow"> |
| 32 |
<attr name="windowActionBar" format="boolean"/> |
| 33 |
<attr name="windowActionBarOverlay" format="boolean"/> |
| 34 |
<attr name="windowSplitActionBar" format="boolean" /> |
| 35 |
|
| 36 |
<!-- A fixed width for the window along the major axis of the screen,
|
| 37 |
that is, when in landscape. Can be either an absolute dimension
|
| 38 |
or a fraction of the screen size in that dimension. -->
|
| 39 |
<attr name="windowFixedWidthMajor" format="dimension|fraction" /> |
| 40 |
<!-- A fixed height for the window along the minor axis of the screen,
|
| 41 |
that is, when in landscape. Can be either an absolute dimension
|
| 42 |
or a fraction of the screen size in that dimension. -->
|
| 43 |
<attr name="windowFixedHeightMinor" format="dimension|fraction" /> |
| 44 |
|
| 45 |
<!-- A fixed width for the window along the minor axis of the screen,
|
| 46 |
that is, when in portrait. Can be either an absolute dimension
|
| 47 |
or a fraction of the screen size in that dimension. -->
|
| 48 |
<attr name="windowFixedWidthMinor" format="dimension|fraction" /> |
| 49 |
<!-- A fixed height for the window along the major axis of the screen,
|
| 50 |
that is, when in portrait. Can be either an absolute dimension
|
| 51 |
or a fraction of the screen size in that dimension. -->
|
| 52 |
<attr name="windowFixedHeightMajor" format="dimension|fraction" /> |
| 53 |
|
| 54 |
</declare-styleable>
|
| 55 |
|
| 56 |
<!-- ============================================ -->
|
| 57 |
|
| 58 |
<!-- Action bar appearance and styling attributes.
|
| 59 |
These attributes are meant to be specified and customized by the
|
| 60 |
app. The system will read and apply them as needed. -->
|
| 61 |
<eat-comment/> |
| 62 |
|
| 63 |
<!-- Default style for tabs within an action bar -->
|
| 64 |
<attr name="actionBarTabStyle" format="reference"/> |
| 65 |
<attr name="actionBarTabBarStyle" format="reference"/> |
| 66 |
<attr name="actionBarTabTextStyle" format="reference"/> |
| 67 |
<attr name="actionOverflowButtonStyle" format="reference"/> |
| 68 |
<!-- Reference to a style for the Action Bar -->
|
| 69 |
<attr name="actionBarStyle" format="reference"/> |
| 70 |
<!-- Reference to a theme that should be used to inflate widgets
|
| 71 |
and layouts destined for the action bar. Most of the time
|
| 72 |
this will be a reference to the current theme, but when
|
| 73 |
the action bar has a significantly different contrast
|
| 74 |
profile than the rest of the activity the difference
|
| 75 |
can become important. If this is set to @null the current
|
| 76 |
theme will be used.-->
|
| 77 |
<attr name="actionBarSplitStyle" format="reference"/> |
| 78 |
<!-- Reference to a theme that should be used to inflate widgets
|
| 79 |
and layouts destined for the action bar. Most of the time
|
| 80 |
this will be a reference to the current theme, but when
|
| 81 |
the action bar has a significantly different contrast
|
| 82 |
profile than the rest of the activity the difference
|
| 83 |
can become important. If this is set to @null the current
|
| 84 |
theme will be used.-->
|
| 85 |
<attr name="actionBarWidgetTheme" format="reference"/> |
| 86 |
<!-- Size of the Action Bar, including the contextual
|
| 87 |
bar used to present Action Modes. -->
|
| 88 |
<attr name="actionBarSize" format="dimension"/> |
| 89 |
<!-- Custom divider drawable to use for elements in the action bar. -->
|
| 90 |
<attr name="actionBarDivider" format="reference"/> |
| 91 |
<!-- Custom item state list drawable background for action bar items. -->
|
| 92 |
<attr name="actionBarItemBackground" format="reference"/> |
| 93 |
<!-- TextAppearance style that will be applied to text that
|
| 94 |
appears within action menu items. -->
|
| 95 |
<attr name="actionMenuTextAppearance" format="reference"/> |
| 96 |
<!-- Color for text that appears within action menu items. -->
|
| 97 |
<attr name="actionMenuTextColor" format="color|reference"/> |
| 98 |
<!-- Specifies a drawable to use for the 'home as up' indicator. -->
|
| 99 |
<attr name="homeAsUpIndicator" format="reference"/> |
| 100 |
<!-- Text color, typeface, size, and style for the text inside of a popup menu. -->
|
| 101 |
<attr name="textAppearanceLargePopupMenu" format="reference"/> |
| 102 |
<!-- Text color, typeface, size, and style for small text inside of a popup menu. -->
|
| 103 |
<attr name="textAppearanceSmallPopupMenu" format="reference"/> |
| 104 |
<!-- Default action button style. -->
|
| 105 |
<attr name="actionButtonStyle" format="reference"/> |
| 106 |
|
| 107 |
<!-- ============================================ -->
|
| 108 |
|
| 109 |
<!-- Assorted theme compatibility attributes.
|
| 110 |
These attributes are meant to be set by the system and read by apps
|
| 111 |
for use in layouts or other style declarations. -->
|
| 112 |
<eat-comment/> |
| 113 |
<!-- A style that may be applied to horizontal LinearLayouts
|
| 114 |
to form a button bar. -->
|
| 115 |
<attr name="buttonBarStyle" format="reference"/> |
| 116 |
<!-- A style that may be applied to Buttons placed within a
|
| 117 |
LinearLayout with the style buttonBarStyle to form a button bar. -->
|
| 118 |
<attr name="buttonBarButtonStyle" format="reference"/> |
| 119 |
<!-- A style that may be applied to buttons or other selectable items
|
| 120 |
that should react to pressed and focus states, but that do not
|
| 121 |
have a clear visual border along the edges. -->
|
| 122 |
<attr name="selectableItemBackground" format="reference"/> |
| 123 |
<!-- A drawable that may be used as a vertical divider between visual elements. -->
|
| 124 |
<attr name="dividerVertical" format="reference"/> |
| 125 |
<!-- A drawable that may be used as a horizontal divider between visual elements. -->
|
| 126 |
<attr name="dividerHorizontal" format="reference"/> |
| 127 |
|
| 128 |
<!-- The preferred list item height. -->
|
| 129 |
<attr name="listPreferredItemHeight" format="dimension"/> |
| 130 |
<!-- A smaller, sleeker list item height. -->
|
| 131 |
<attr name="listPreferredItemHeightSmall" format="dimension"/> |
| 132 |
<!-- A larger, more robust list item height. -->
|
| 133 |
<attr name="listPreferredItemHeightLarge" format="dimension"/> |
| 134 |
|
| 135 |
<!-- The preferred padding along the left edge of list items. -->
|
| 136 |
<attr name="listPreferredItemPaddingLeft" format="dimension"/> |
| 137 |
<!-- The preferred padding along the right edge of list items. -->
|
| 138 |
<attr name="listPreferredItemPaddingRight" format="dimension"/> |
| 139 |
|
| 140 |
<!-- ListPopupWindow comaptibility -->
|
| 141 |
<attr name="dropDownListViewStyle" format="reference"/> |
| 142 |
<attr name="listPopupWindowStyle" format="reference"/> |
| 143 |
|
| 144 |
|
| 145 |
<!-- The preferred TextAppearance for the primary text of list items. -->
|
| 146 |
<attr name="textAppearanceListItem" format="reference"/> |
| 147 |
<!-- The preferred TextAppearance for the primary text of small list items. -->
|
| 148 |
<attr name="textAppearanceListItemSmall" format="reference"/> |
| 149 |
|
| 150 |
<attr name="title" format="string"/> |
| 151 |
<attr name="height" format="dimension"/> |
| 152 |
|
| 153 |
|
| 154 |
<!-- ============================================ -->
|
| 155 |
|
| 156 |
<!-- Attributes used to style the Action Bar.
|
| 157 |
These should be set on your theme; the default actionBarStyle will
|
| 158 |
propagate them to the correct elements as needed.
|
| 159 |
|
| 160 |
Please Note: when overriding attributes for an ActionBar style
|
| 161 |
you must specify each attribute twice: once with the "android:"
|
| 162 |
namespace prefix and once without. -->
|
| 163 |
<declare-styleable name="ActionBar"> |
| 164 |
<!-- The type of navigation to use. -->
|
| 165 |
<attr name="navigationMode"> |
| 166 |
<!-- Normal static title text -->
|
| 167 |
<enum name="normal" value="0"/> |
| 168 |
<!-- The action bar will use a selection list for navigation. -->
|
| 169 |
<enum name="listMode" value="1"/> |
| 170 |
<!-- The action bar will use a series of horizontal tabs for navigation. -->
|
| 171 |
<enum name="tabMode" value="2"/> |
| 172 |
</attr>
|
| 173 |
<!-- Options affecting how the action bar is displayed. -->
|
| 174 |
<attr name="displayOptions"> |
| 175 |
<flag name="useLogo" value="0x1"/> |
| 176 |
<flag name="showHome" value="0x2"/> |
| 177 |
<flag name="homeAsUp" value="0x4"/> |
| 178 |
<flag name="showTitle" value="0x8"/> |
| 179 |
<flag name="showCustom" value="0x10"/> |
| 180 |
<flag name="disableHome" value="0x20"/> |
| 181 |
</attr>
|
| 182 |
<!-- Specifies title text used for navigationMode="normal" -->
|
| 183 |
<attr name="title"/> |
| 184 |
<!-- Specifies subtitle text used for navigationMode="normal" -->
|
| 185 |
<attr name="subtitle" format="string"/> |
| 186 |
<!-- Specifies a style to use for title text. -->
|
| 187 |
<attr name="titleTextStyle" format="reference"/> |
| 188 |
<!-- Specifies a style to use for subtitle text. -->
|
| 189 |
<attr name="subtitleTextStyle" format="reference"/> |
| 190 |
<!-- Specifies the drawable used for the application icon. -->
|
| 191 |
<attr name="icon" format="reference"/> |
| 192 |
<!-- Specifies the drawable used for the application logo. -->
|
| 193 |
<attr name="logo" format="reference"/> |
| 194 |
<!-- Specifies the drawable used for item dividers. -->
|
| 195 |
<attr name="divider" format="reference"/> |
| 196 |
<!-- Specifies a background drawable for the action bar. -->
|
| 197 |
<attr name="background" format="reference"/> |
| 198 |
<!-- Specifies a background drawable for a second stacked row of the action bar. -->
|
| 199 |
<attr name="backgroundStacked" format="reference|color"/> |
| 200 |
<!-- Specifies a background drawable for the bottom component of a split action bar. -->
|
| 201 |
<attr name="backgroundSplit" format="reference|color"/> |
| 202 |
<!-- Specifies a layout for custom navigation. Overrides navigationMode. -->
|
| 203 |
<attr name="customNavigationLayout" format="reference"/> |
| 204 |
<!-- Specifies a fixed height. -->
|
| 205 |
<attr name="height"/> |
| 206 |
<!-- Specifies a layout to use for the "home" section of the action bar. -->
|
| 207 |
<attr name="homeLayout" format="reference"/> |
| 208 |
<!-- Specifies a style resource to use for an embedded progress bar. -->
|
| 209 |
<attr name="progressBarStyle" format="reference"/> |
| 210 |
<!-- Specifies a style resource to use for an indeterminate progress spinner. -->
|
| 211 |
<attr name="indeterminateProgressStyle" format="reference"/> |
| 212 |
<!-- Specifies the horizontal padding on either end for an embedded progress bar. -->
|
| 213 |
<attr name="progressBarPadding" format="dimension"/> |
| 214 |
<!-- Specifies padding that should be applied to the left and right sides of
|
| 215 |
system-provided items in the bar. -->
|
| 216 |
<attr name="itemPadding" format="dimension"/> |
| 217 |
</declare-styleable>
|
| 218 |
|
| 219 |
<!-- Valid LayoutParams for views placed in the action bar as custom views. -->
|
| 220 |
<declare-styleable name="ActionBarLayout"> |
| 221 |
<attr name="android:layout_gravity"/> |
| 222 |
</declare-styleable>
|
| 223 |
|
| 224 |
<declare-styleable name="ActionMenuItemView"> |
| 225 |
<attr name="android:minWidth"/> |
| 226 |
</declare-styleable>
|
| 227 |
|
| 228 |
<declare-styleable name="ActionMode"> |
| 229 |
<!-- Specifies a style to use for title text. -->
|
| 230 |
<attr name="titleTextStyle"/> |
| 231 |
<!-- Specifies a style to use for subtitle text. -->
|
| 232 |
<attr name="subtitleTextStyle"/> |
| 233 |
<!-- Specifies a background for the action mode bar. -->
|
| 234 |
<attr name="background"/> |
| 235 |
<!-- Specifies a background for the split action mode bar. -->
|
| 236 |
<attr name="backgroundSplit"/> |
| 237 |
<!-- Specifies a fixed height for the action mode bar. -->
|
| 238 |
<attr name="height"/> |
| 239 |
</declare-styleable>
|
| 240 |
|
| 241 |
<declare-styleable name="View"> |
| 242 |
<!-- Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. -->
|
| 243 |
<attr name="paddingStart" format="dimension"/> |
| 244 |
<!-- Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. -->
|
| 245 |
<attr name="paddingEnd" format="dimension"/> |
| 246 |
|
| 247 |
<!-- Boolean that controls whether a view can take focus. By default the user can not
|
| 248 |
move focus to a view; by setting this attribute to true the view is
|
| 249 |
allowed to take focus. This value does not impact the behavior of
|
| 250 |
directly calling {@link android.view.View#requestFocus}, which will
|
| 251 |
always request focus regardless of this view. It only impacts where
|
| 252 |
focus navigation will try to move focus. -->
|
| 253 |
<attr name="android:focusable" /> |
| 254 |
</declare-styleable>
|
| 255 |
|
| 256 |
<!-- =================== -->
|
| 257 |
<!-- Action mode styles -->
|
| 258 |
<!-- =================== -->
|
| 259 |
<eat-comment/> |
| 260 |
<attr name="actionModeStyle" format="reference"/> |
| 261 |
<attr name="actionModeCloseButtonStyle" format="reference"/> |
| 262 |
<!-- Background drawable to use for action mode UI -->
|
| 263 |
<attr name="actionModeBackground" format="reference"/> |
| 264 |
<!-- Background drawable to use for action mode UI in the lower split bar -->
|
| 265 |
<attr name="actionModeSplitBackground" format="reference"/> |
| 266 |
<!-- Drawable to use for the close action mode button -->
|
| 267 |
<attr name="actionModeCloseDrawable" format="reference"/> |
| 268 |
|
| 269 |
<!-- Drawable to use for the Cut action button in Contextual Action Bar -->
|
| 270 |
<attr name="actionModeCutDrawable" format="reference"/> |
| 271 |
<!-- Drawable to use for the Copy action button in Contextual Action Bar -->
|
| 272 |
<attr name="actionModeCopyDrawable" format="reference"/> |
| 273 |
<!-- Drawable to use for the Paste action button in Contextual Action Bar -->
|
| 274 |
<attr name="actionModePasteDrawable" format="reference"/> |
| 275 |
<!-- Drawable to use for the Select all action button in Contextual Action Bar -->
|
| 276 |
<attr name="actionModeSelectAllDrawable" format="reference"/> |
| 277 |
<!-- Drawable to use for the Share action button in WebView selection action modes -->
|
| 278 |
<attr name="actionModeShareDrawable" format="reference"/> |
| 279 |
<!-- Drawable to use for the Find action button in WebView selection action modes -->
|
| 280 |
<attr name="actionModeFindDrawable" format="reference"/> |
| 281 |
<!-- Drawable to use for the Web Search action button in WebView selection action modes -->
|
| 282 |
<attr name="actionModeWebSearchDrawable" format="reference"/> |
| 283 |
|
| 284 |
<!-- PopupWindow style to use for action modes when showing as a window overlay. -->
|
| 285 |
<attr name="actionModePopupWindowStyle" format="reference"/> |
| 286 |
|
| 287 |
<!-- These are the standard attributes that make up a complete theme. -->
|
| 288 |
<declare-styleable name="Theme"> |
| 289 |
<!-- Default ActionBar dropdown style. -->
|
| 290 |
<attr name="actionDropDownStyle" format="reference"/> |
| 291 |
<!-- The preferred item height for dropdown lists. -->
|
| 292 |
<attr name="dropdownListPreferredItemHeight" format="dimension"/> |
| 293 |
<!-- Default PopupMenu style. -->
|
| 294 |
<attr name="popupMenuStyle" format="reference"/> |
| 295 |
|
| 296 |
<!-- ============ -->
|
| 297 |
<!-- Panel styles -->
|
| 298 |
<!-- ============ -->
|
| 299 |
<eat-comment /> |
| 300 |
|
| 301 |
<!-- Default Panel Menu width. -->
|
| 302 |
<attr name="panelMenuListWidth" format="dimension" /> |
| 303 |
|
| 304 |
<!-- Default Panel Menu style. -->
|
| 305 |
<attr name="panelMenuListTheme" format="reference" /> |
| 306 |
|
| 307 |
<!-- Drawable used as a background for selected list items. -->
|
| 308 |
<attr name="listChoiceBackgroundIndicator" format="reference" /> |
| 309 |
|
| 310 |
</declare-styleable>
|
| 311 |
|
| 312 |
<declare-styleable name="MenuView"> |
| 313 |
<!-- Default appearance of menu item text. -->
|
| 314 |
<attr name="android:itemTextAppearance"/> |
| 315 |
<!-- Default horizontal divider between rows of menu items. -->
|
| 316 |
<attr name="android:horizontalDivider"/> |
| 317 |
<!-- Default vertical divider between menu items. -->
|
| 318 |
<attr name="android:verticalDivider"/> |
| 319 |
<!-- Default background for the menu header. -->
|
| 320 |
<attr name="android:headerBackground"/> |
| 321 |
<!-- Default background for each menu item. -->
|
| 322 |
<attr name="android:itemBackground"/> |
| 323 |
<!-- Default animations for the menu. -->
|
| 324 |
<attr name="android:windowAnimationStyle"/> |
| 325 |
<!-- Default disabled icon alpha for each menu item that shows an icon. -->
|
| 326 |
<attr name="android:itemIconDisabledAlpha"/> |
| 327 |
<!-- Whether space should be reserved in layout when an icon is missing. -->
|
| 328 |
<attr name="android:preserveIconSpacing"/> |
| 329 |
</declare-styleable>
|
| 330 |
<declare-styleable name="ActionMenuView"> |
| 331 |
<!-- Size of padding on either end of a divider. -->
|
| 332 |
</declare-styleable>
|
| 333 |
|
| 334 |
<!-- Base attributes that are available to all groups. -->
|
| 335 |
<declare-styleable name="MenuGroup"> |
| 336 |
|
| 337 |
<!-- The ID of the group. -->
|
| 338 |
<attr name="android:id" /> |
| 339 |
|
| 340 |
<!-- The category applied to all items within this group.
|
| 341 |
(This will be or'ed with the orderInCategory attribute.) -->
|
| 342 |
<attr name="android:menuCategory" /> |
| 343 |
|
| 344 |
<!-- The order within the category applied to all items within this group.
|
| 345 |
(This will be or'ed with the category attribute.) -->
|
| 346 |
<attr name="android:orderInCategory" /> |
| 347 |
|
| 348 |
<!-- Whether the items are capable of displaying a check mark. -->
|
| 349 |
<attr name="android:checkableBehavior" /> |
| 350 |
|
| 351 |
<!-- Whether the items are shown/visible. -->
|
| 352 |
<attr name="android:visible" /> |
| 353 |
|
| 354 |
<!-- Whether the items are enabled. -->
|
| 355 |
<attr name="android:enabled" /> |
| 356 |
|
| 357 |
</declare-styleable>
|
| 358 |
|
| 359 |
<!-- Base attributes that are available to all Item objects. -->
|
| 360 |
<declare-styleable name="MenuItem"> |
| 361 |
|
| 362 |
<!-- The ID of the item. -->
|
| 363 |
<attr name="android:id" /> |
| 364 |
|
| 365 |
<!-- The category applied to the item.
|
| 366 |
(This will be or'ed with the orderInCategory attribute.) -->
|
| 367 |
<attr name="android:menuCategory" /> |
| 368 |
|
| 369 |
<!-- The order within the category applied to the item.
|
| 370 |
(This will be or'ed with the category attribute.) -->
|
| 371 |
<attr name="android:orderInCategory" /> |
| 372 |
|
| 373 |
<!-- The title associated with the item. -->
|
| 374 |
<attr name="android:title" /> |
| 375 |
|
| 376 |
<!-- The condensed title associated with the item. This is used in situations where the
|
| 377 |
normal title may be too long to be displayed. -->
|
| 378 |
<attr name="android:titleCondensed" /> |
| 379 |
|
| 380 |
<!-- The icon associated with this item. This icon will not always be shown, so
|
| 381 |
the title should be sufficient in describing this item. -->
|
| 382 |
<attr name="android:icon" /> |
| 383 |
|
| 384 |
<!-- The alphabetic shortcut key. This is the shortcut when using a keyboard
|
| 385 |
with alphabetic keys. -->
|
| 386 |
<attr name="android:alphabeticShortcut" /> |
| 387 |
|
| 388 |
<!-- The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key)
|
| 389 |
keyboard. -->
|
| 390 |
<attr name="android:numericShortcut" /> |
| 391 |
|
| 392 |
<!-- Whether the item is capable of displaying a check mark. -->
|
| 393 |
<attr name="android:checkable" /> |
| 394 |
|
| 395 |
<!-- Whether the item is checked. Note that you must first have enabled checking with
|
| 396 |
the checkable attribute or else the check mark will not appear. -->
|
| 397 |
<attr name="android:checked" /> |
| 398 |
|
| 399 |
<!-- Whether the item is shown/visible. -->
|
| 400 |
<attr name="android:visible" /> |
| 401 |
|
| 402 |
<!-- Whether the item is enabled. -->
|
| 403 |
<attr name="android:enabled" /> |
| 404 |
|
| 405 |
<!-- Name of a method on the Context used to inflate the menu that will be
|
| 406 |
called when the item is clicked. -->
|
| 407 |
<attr name="android:onClick" /> |
| 408 |
|
| 409 |
<!-- How this item should display in the Action Bar, if present. -->
|
| 410 |
<attr name="showAsAction"> |
| 411 |
<!-- Never show this item in an action bar, show it in the overflow menu instead.
|
| 412 |
Mutually exclusive with "ifRoom" and "always". -->
|
| 413 |
<flag name="never" value="0" /> |
| 414 |
<!-- Show this item in an action bar if there is room for it as determined
|
| 415 |
by the system. Favor this option over "always" where possible.
|
| 416 |
Mutually exclusive with "never" and "always". -->
|
| 417 |
<flag name="ifRoom" value="1" /> |
| 418 |
<!-- Always show this item in an actionbar, even if it would override
|
| 419 |
the system's limits of how much stuff to put there. This may make
|
| 420 |
your action bar look bad on some screens. In most cases you should
|
| 421 |
use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". -->
|
| 422 |
<flag name="always" value="2" /> |
| 423 |
<!-- When this item is shown as an action in the action bar, show a text
|
| 424 |
label with it even if it has an icon representation. -->
|
| 425 |
<flag name="withText" value="4" /> |
| 426 |
<!-- This item's action view collapses to a normal menu
|
| 427 |
item. When expanded, the action view takes over a
|
| 428 |
larger segment of its container. -->
|
| 429 |
<flag name="collapseActionView" value="8" /> |
| 430 |
</attr>
|
| 431 |
|
| 432 |
<!-- An optional layout to be used as an action view.
|
| 433 |
See {@link android.view.MenuItem#setActionView(android.view.View)}
|
| 434 |
for more info. -->
|
| 435 |
<attr name="actionLayout" format="reference" /> |
| 436 |
|
| 437 |
<!-- The name of an optional View class to instantiate and use as an
|
| 438 |
action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
|
| 439 |
for more info. -->
|
| 440 |
<attr name="actionViewClass" format="string" /> |
| 441 |
|
| 442 |
<!-- The name of an optional ActionProvider class to instantiate an action view
|
| 443 |
and perform operations such as default action for that menu item.
|
| 444 |
See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
|
| 445 |
for more info. -->
|
| 446 |
<attr name="actionProviderClass" format="string" /> |
| 447 |
|
| 448 |
</declare-styleable>
|
| 449 |
|
| 450 |
<declare-styleable name="Spinner"> |
| 451 |
<!-- The prompt to display when the spinner's dialog is shown. -->
|
| 452 |
<attr name="prompt" format="reference" /> |
| 453 |
<!-- Display mode for spinner options. -->
|
| 454 |
<attr name="spinnerMode" format="enum"> |
| 455 |
<!-- Spinner options will be presented to the user as a dialog window. -->
|
| 456 |
<enum name="dialog" value="0" /> |
| 457 |
<!-- Spinner options will be presented to the user as an inline dropdown
|
| 458 |
anchored to the spinner widget itself. -->
|
| 459 |
<enum name="dropdown" value="1" /> |
| 460 |
</attr>
|
| 461 |
<!-- List selector to use for spinnerMode="dropdown" display. -->
|
| 462 |
<attr name="android:dropDownSelector" /> |
| 463 |
<!-- Background drawable to use for the dropdown in spinnerMode="dropdown". -->
|
| 464 |
<attr name="android:popupBackground" /> |
| 465 |
<!-- Vertical offset from the spinner widget for positioning the dropdown in
|
| 466 |
spinnerMode="dropdown". -->
|
| 467 |
<attr name="android:dropDownVerticalOffset" /> |
| 468 |
<!-- Horizontal offset from the spinner widget for positioning the dropdown
|
| 469 |
in spinnerMode="dropdown". -->
|
| 470 |
<attr name="android:dropDownHorizontalOffset" /> |
| 471 |
<!-- Width of the dropdown in spinnerMode="dropdown". -->
|
| 472 |
<attr name="android:dropDownWidth" /> |
| 473 |
<!-- Reference to a layout to use for displaying a prompt in the dropdown for
|
| 474 |
spinnerMode="dropdown". This layout must contain a TextView with the id
|
| 475 |
{@code @android:id/text1} to be populated with the prompt text. -->
|
| 476 |
<attr name="popupPromptView" format="reference" /> |
| 477 |
<!-- Gravity setting for positioning the currently selected item. -->
|
| 478 |
<attr name="android:gravity" /> |
| 479 |
<!-- Whether this spinner should mark child views as enabled/disabled when
|
| 480 |
the spinner itself is enabled/disabled. -->
|
| 481 |
<attr name="disableChildrenWhenDisabled" format="boolean" /> |
| 482 |
</declare-styleable>
|
| 483 |
|
| 484 |
<declare-styleable name="LinearLayoutICS"> |
| 485 |
<!-- Drawable to use as a vertical divider between buttons. -->
|
| 486 |
<attr name="divider" /> |
| 487 |
<!-- Setting for which dividers to show. -->
|
| 488 |
<attr name="showDividers"> |
| 489 |
<flag name="none" value="0" /> |
| 490 |
<flag name="beginning" value="1" /> |
| 491 |
<flag name="middle" value="2" /> |
| 492 |
<flag name="end" value="4" /> |
| 493 |
</attr>
|
| 494 |
<!-- Size of padding on either end of a divider. -->
|
| 495 |
<attr name="dividerPadding" format="dimension" /> |
| 496 |
</declare-styleable>
|
| 497 |
|
| 498 |
<!-- Default Spinner style. -->
|
| 499 |
<attr name="spinnerStyle" format="reference" /> |
| 500 |
|
| 501 |
<!-- Default Spinner style. -->
|
| 502 |
<attr name="spinnerDropDownItemStyle" format="reference" /> |
| 503 |
|
| 504 |
<!-- Specifies whether the theme is light, otherwise it is dark. -->
|
| 505 |
<attr name="isLightTheme" format="boolean" /> |
| 506 |
|
| 507 |
<declare-styleable name="SearchView"> |
| 508 |
<!-- The default state of the SearchView. If true, it will be iconified when not in
|
| 509 |
use and expanded when clicked. -->
|
| 510 |
<attr name="iconifiedByDefault" format="boolean"/> |
| 511 |
<!-- An optional maximum width of the SearchView. -->
|
| 512 |
<attr name="android:maxWidth" /> |
| 513 |
<!-- An optional query hint string to be displayed in the empty query field. -->
|
| 514 |
<attr name="queryHint" format="string" /> |
| 515 |
<!-- The IME options to set on the query text field. -->
|
| 516 |
<attr name="android:imeOptions" /> |
| 517 |
<!-- The input type to set on the query text field. -->
|
| 518 |
<attr name="android:inputType" /> |
| 519 |
</declare-styleable>
|
| 520 |
|
| 521 |
<!-- ============================ -->
|
| 522 |
<!-- SearchView styles and assets -->
|
| 523 |
<!-- ============================ -->
|
| 524 |
<eat-comment /> |
| 525 |
<!-- SearchView dropdown background -->
|
| 526 |
<attr name="searchDropdownBackground" format="reference" /> |
| 527 |
<!-- SearchView close button icon -->
|
| 528 |
<attr name="searchViewCloseIcon" format="reference" /> |
| 529 |
<!-- SearchView Go button icon -->
|
| 530 |
<attr name="searchViewGoIcon" format="reference" /> |
| 531 |
<!-- SearchView Search icon -->
|
| 532 |
<attr name="searchViewSearchIcon" format="reference" /> |
| 533 |
<!-- SearchView Voice button icon -->
|
| 534 |
<attr name="searchViewVoiceIcon" format="reference" /> |
| 535 |
<!-- SearchView query refinement icon -->
|
| 536 |
<attr name="searchViewEditQuery" format="reference" /> |
| 537 |
<!-- SearchView query refinement icon background -->
|
| 538 |
<attr name="searchViewEditQueryBackground" format="reference" /> |
| 539 |
<!-- SearchView text field background for the left section -->
|
| 540 |
<attr name="searchViewTextField" format="reference" /> |
| 541 |
<!-- SearchView text field background for the right section -->
|
| 542 |
<attr name="searchViewTextFieldRight" format="reference" /> |
| 543 |
<!-- The list item height for search results. @hide -->
|
| 544 |
<attr name="searchResultListItemHeight" format="dimension" /> |
| 545 |
<!-- Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. -->
|
| 546 |
<attr name="textAppearanceSearchResultTitle" format="reference" /> |
| 547 |
<!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. -->
|
| 548 |
<attr name="textAppearanceSearchResultSubtitle" format="reference" /> |
| 549 |
<!-- Text color for urls in search suggestions, used by things like global search -->
|
| 550 |
<attr name="textColorSearchUrl" format="reference|color" /> |
| 551 |
<!-- SearchView AutoCompleteTextView style -->
|
| 552 |
<attr name="searchViewAutoCompleteTextView" format="reference" /> |
| 553 |
|
| 554 |
<!-- Attrbitutes for a ActivityChooserView. -->
|
| 555 |
<declare-styleable name="ActivityChooserView"> |
| 556 |
<!-- The maximal number of items initially shown in the activity list. -->
|
| 557 |
<attr name="initialActivityCount" format="string" /> |
| 558 |
<!-- The drawable to show in the button for expanding the activities overflow popup.
|
| 559 |
<strong>Note:</strong> Clients would like to set this drawable
|
| 560 |
as a clue about the action the chosen activity will perform. For
|
| 561 |
example, if share activity is to be chosen the drawable should
|
| 562 |
give a clue that sharing is to be performed.
|
| 563 |
-->
|
| 564 |
<attr name="expandActivityOverflowButtonDrawable" format="reference" /> |
| 565 |
</declare-styleable>
|
| 566 |
|
| 567 |
<!-- Default ActivityChooserView style. -->
|
| 568 |
<attr name="activityChooserViewStyle" format="reference" /> |
| 569 |
|
| 570 |
<declare-styleable name="CompatTextView"> |
| 571 |
<!-- Present the text in ALL CAPS. This may use a small-caps form when available. -->
|
| 572 |
<attr name="textAllCaps" format="reference|boolean" /> |
| 573 |
</declare-styleable>
|
| 574 |
|
| 575 |
</resources>
|