attrs.xml revision 13ab4aa8a1d337c414c887a81b9829f2286cdd37
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 <!-- ============= --> 311 <!-- Color palette --> 312 <!-- ============= --> 313 <eat-comment /> 314 315 <!-- The primary branding color for the app. By default, this is the color applied to the 316 action bar background. --> 317 <attr name="colorPrimary" format="color" /> 318 319 <!-- Dark variant of the primary branding color. By default, this is the color applied to 320 the status bar (via statusBarColor) and navigation bar (via navigationBarColor). --> 321 <attr name="colorPrimaryDark" format="color" /> 322 323 <!-- Bright complement to the primary branding color. By default, this is the color applied 324 to framework controls (via colorControlActivated). --> 325 <attr name="colorAccent" format="color" /> 326 327 <!-- The color applied to framework controls in their normal state. --> 328 <attr name="colorControlNormal" format="color" /> 329 330 <!-- The color applied to framework controls in their activated (ex. checked) state. --> 331 <attr name="colorControlActivated" format="color" /> 332 333 <!-- The color applied to framework control highlights (ex. ripples, list selectors). --> 334 <attr name="colorControlHighlight" format="color" /> 335 336 <!-- The color applied to framework buttons in their normal state. --> 337 <attr name="colorButtonNormal" format="color" /> 338 339 </declare-styleable> 340 341 <declare-styleable name="MenuView"> 342 <!-- Default appearance of menu item text. --> 343 <attr name="android:itemTextAppearance"/> 344 <!-- Default horizontal divider between rows of menu items. --> 345 <attr name="android:horizontalDivider"/> 346 <!-- Default vertical divider between menu items. --> 347 <attr name="android:verticalDivider"/> 348 <!-- Default background for the menu header. --> 349 <attr name="android:headerBackground"/> 350 <!-- Default background for each menu item. --> 351 <attr name="android:itemBackground"/> 352 <!-- Default animations for the menu. --> 353 <attr name="android:windowAnimationStyle"/> 354 <!-- Default disabled icon alpha for each menu item that shows an icon. --> 355 <attr name="android:itemIconDisabledAlpha"/> 356 <!-- Whether space should be reserved in layout when an icon is missing. --> 357 <attr name="android:preserveIconSpacing"/> 358 </declare-styleable> 359 <declare-styleable name="ActionMenuView"> 360 <!-- Size of padding on either end of a divider. --> 361 </declare-styleable> 362 363 <!-- Base attributes that are available to all groups. --> 364 <declare-styleable name="MenuGroup"> 365 366 <!-- The ID of the group. --> 367 <attr name="android:id" /> 368 369 <!-- The category applied to all items within this group. 370 (This will be or'ed with the orderInCategory attribute.) --> 371 <attr name="android:menuCategory" /> 372 373 <!-- The order within the category applied to all items within this group. 374 (This will be or'ed with the category attribute.) --> 375 <attr name="android:orderInCategory" /> 376 377 <!-- Whether the items are capable of displaying a check mark. --> 378 <attr name="android:checkableBehavior" /> 379 380 <!-- Whether the items are shown/visible. --> 381 <attr name="android:visible" /> 382 383 <!-- Whether the items are enabled. --> 384 <attr name="android:enabled" /> 385 386 </declare-styleable> 387 388 <!-- Base attributes that are available to all Item objects. --> 389 <declare-styleable name="MenuItem"> 390 391 <!-- The ID of the item. --> 392 <attr name="android:id" /> 393 394 <!-- The category applied to the item. 395 (This will be or'ed with the orderInCategory attribute.) --> 396 <attr name="android:menuCategory" /> 397 398 <!-- The order within the category applied to the item. 399 (This will be or'ed with the category attribute.) --> 400 <attr name="android:orderInCategory" /> 401 402 <!-- The title associated with the item. --> 403 <attr name="android:title" /> 404 405 <!-- The condensed title associated with the item. This is used in situations where the 406 normal title may be too long to be displayed. --> 407 <attr name="android:titleCondensed" /> 408 409 <!-- The icon associated with this item. This icon will not always be shown, so 410 the title should be sufficient in describing this item. --> 411 <attr name="android:icon" /> 412 413 <!-- The alphabetic shortcut key. This is the shortcut when using a keyboard 414 with alphabetic keys. --> 415 <attr name="android:alphabeticShortcut" /> 416 417 <!-- The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key) 418 keyboard. --> 419 <attr name="android:numericShortcut" /> 420 421 <!-- Whether the item is capable of displaying a check mark. --> 422 <attr name="android:checkable" /> 423 424 <!-- Whether the item is checked. Note that you must first have enabled checking with 425 the checkable attribute or else the check mark will not appear. --> 426 <attr name="android:checked" /> 427 428 <!-- Whether the item is shown/visible. --> 429 <attr name="android:visible" /> 430 431 <!-- Whether the item is enabled. --> 432 <attr name="android:enabled" /> 433 434 <!-- Name of a method on the Context used to inflate the menu that will be 435 called when the item is clicked. --> 436 <attr name="android:onClick" /> 437 438 <!-- How this item should display in the Action Bar, if present. --> 439 <attr name="showAsAction"> 440 <!-- Never show this item in an action bar, show it in the overflow menu instead. 441 Mutually exclusive with "ifRoom" and "always". --> 442 <flag name="never" value="0" /> 443 <!-- Show this item in an action bar if there is room for it as determined 444 by the system. Favor this option over "always" where possible. 445 Mutually exclusive with "never" and "always". --> 446 <flag name="ifRoom" value="1" /> 447 <!-- Always show this item in an actionbar, even if it would override 448 the system's limits of how much stuff to put there. This may make 449 your action bar look bad on some screens. In most cases you should 450 use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". --> 451 <flag name="always" value="2" /> 452 <!-- When this item is shown as an action in the action bar, show a text 453 label with it even if it has an icon representation. --> 454 <flag name="withText" value="4" /> 455 <!-- This item's action view collapses to a normal menu 456 item. When expanded, the action view takes over a 457 larger segment of its container. --> 458 <flag name="collapseActionView" value="8" /> 459 </attr> 460 461 <!-- An optional layout to be used as an action view. 462 See {@link android.view.MenuItem#setActionView(android.view.View)} 463 for more info. --> 464 <attr name="actionLayout" format="reference" /> 465 466 <!-- The name of an optional View class to instantiate and use as an 467 action view. See {@link android.view.MenuItem#setActionView(android.view.View)} 468 for more info. --> 469 <attr name="actionViewClass" format="string" /> 470 471 <!-- The name of an optional ActionProvider class to instantiate an action view 472 and perform operations such as default action for that menu item. 473 See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)} 474 for more info. --> 475 <attr name="actionProviderClass" format="string" /> 476 477 </declare-styleable> 478 479 <declare-styleable name="Spinner"> 480 <!-- The prompt to display when the spinner's dialog is shown. --> 481 <attr name="prompt" format="reference" /> 482 <!-- Display mode for spinner options. --> 483 <attr name="spinnerMode" format="enum"> 484 <!-- Spinner options will be presented to the user as a dialog window. --> 485 <enum name="dialog" value="0" /> 486 <!-- Spinner options will be presented to the user as an inline dropdown 487 anchored to the spinner widget itself. --> 488 <enum name="dropdown" value="1" /> 489 </attr> 490 <!-- List selector to use for spinnerMode="dropdown" display. --> 491 <attr name="android:dropDownSelector" /> 492 <!-- Background drawable to use for the dropdown in spinnerMode="dropdown". --> 493 <attr name="android:popupBackground" /> 494 <!-- Vertical offset from the spinner widget for positioning the dropdown in 495 spinnerMode="dropdown". --> 496 <attr name="android:dropDownVerticalOffset" /> 497 <!-- Horizontal offset from the spinner widget for positioning the dropdown 498 in spinnerMode="dropdown". --> 499 <attr name="android:dropDownHorizontalOffset" /> 500 <!-- Width of the dropdown in spinnerMode="dropdown". --> 501 <attr name="android:dropDownWidth" /> 502 <!-- Reference to a layout to use for displaying a prompt in the dropdown for 503 spinnerMode="dropdown". This layout must contain a TextView with the id 504 {@code @android:id/text1} to be populated with the prompt text. --> 505 <attr name="popupPromptView" format="reference" /> 506 <!-- Gravity setting for positioning the currently selected item. --> 507 <attr name="android:gravity" /> 508 <!-- Whether this spinner should mark child views as enabled/disabled when 509 the spinner itself is enabled/disabled. --> 510 <attr name="disableChildrenWhenDisabled" format="boolean" /> 511 </declare-styleable> 512 513 <declare-styleable name="LinearLayoutICS"> 514 <!-- Drawable to use as a vertical divider between buttons. --> 515 <attr name="divider" /> 516 <!-- Setting for which dividers to show. --> 517 <attr name="showDividers"> 518 <flag name="none" value="0" /> 519 <flag name="beginning" value="1" /> 520 <flag name="middle" value="2" /> 521 <flag name="end" value="4" /> 522 </attr> 523 <!-- Size of padding on either end of a divider. --> 524 <attr name="dividerPadding" format="dimension" /> 525 </declare-styleable> 526 527 <!-- Default Spinner style. --> 528 <attr name="spinnerStyle" format="reference" /> 529 530 <!-- Default Spinner style. --> 531 <attr name="spinnerDropDownItemStyle" format="reference" /> 532 533 <!-- Specifies whether the theme is light, otherwise it is dark. --> 534 <attr name="isLightTheme" format="boolean" /> 535 536 <declare-styleable name="SearchView"> 537 <!-- The default state of the SearchView. If true, it will be iconified when not in 538 use and expanded when clicked. --> 539 <attr name="iconifiedByDefault" format="boolean"/> 540 <!-- An optional maximum width of the SearchView. --> 541 <attr name="android:maxWidth" /> 542 <!-- An optional query hint string to be displayed in the empty query field. --> 543 <attr name="queryHint" format="string" /> 544 <!-- The IME options to set on the query text field. --> 545 <attr name="android:imeOptions" /> 546 <!-- The input type to set on the query text field. --> 547 <attr name="android:inputType" /> 548 </declare-styleable> 549 550 <!-- ============================ --> 551 <!-- SearchView styles and assets --> 552 <!-- ============================ --> 553 <eat-comment /> 554 <!-- SearchView dropdown background --> 555 <attr name="searchDropdownBackground" format="reference" /> 556 <!-- SearchView close button icon --> 557 <attr name="searchViewCloseIcon" format="reference" /> 558 <!-- SearchView Go button icon --> 559 <attr name="searchViewGoIcon" format="reference" /> 560 <!-- SearchView Search icon --> 561 <attr name="searchViewSearchIcon" format="reference" /> 562 <!-- SearchView Voice button icon --> 563 <attr name="searchViewVoiceIcon" format="reference" /> 564 <!-- SearchView query refinement icon --> 565 <attr name="searchViewEditQuery" format="reference" /> 566 <!-- SearchView query refinement icon background --> 567 <attr name="searchViewEditQueryBackground" format="reference" /> 568 <!-- SearchView text field background for the left section --> 569 <attr name="searchViewTextField" format="reference" /> 570 <!-- SearchView text field background for the right section --> 571 <attr name="searchViewTextFieldRight" format="reference" /> 572 <!-- The list item height for search results. @hide --> 573 <attr name="searchResultListItemHeight" format="dimension" /> 574 <!-- Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. --> 575 <attr name="textAppearanceSearchResultTitle" format="reference" /> 576 <!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. --> 577 <attr name="textAppearanceSearchResultSubtitle" format="reference" /> 578 <!-- Text color for urls in search suggestions, used by things like global search --> 579 <attr name="textColorSearchUrl" format="reference|color" /> 580 <!-- SearchView AutoCompleteTextView style --> 581 <attr name="searchViewAutoCompleteTextView" format="reference" /> 582 583 <!-- Attrbitutes for a ActivityChooserView. --> 584 <declare-styleable name="ActivityChooserView"> 585 <!-- The maximal number of items initially shown in the activity list. --> 586 <attr name="initialActivityCount" format="string" /> 587 <!-- The drawable to show in the button for expanding the activities overflow popup. 588 <strong>Note:</strong> Clients would like to set this drawable 589 as a clue about the action the chosen activity will perform. For 590 example, if share activity is to be chosen the drawable should 591 give a clue that sharing is to be performed. 592 --> 593 <attr name="expandActivityOverflowButtonDrawable" format="reference" /> 594 </declare-styleable> 595 596 <!-- Default ActivityChooserView style. --> 597 <attr name="activityChooserViewStyle" format="reference" /> 598 599 <declare-styleable name="CompatTextView"> 600 <!-- Present the text in ALL CAPS. This may use a small-caps form when available. --> 601 <attr name="textAllCaps" format="reference|boolean" /> 602 </declare-styleable> 603 604</resources> 605