Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 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 | |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 27 | |
| 28 | <attr name="title" format="string"/> |
| 29 | <attr name="height" format="dimension"/> |
| 30 | <!-- Specifies whether the theme is light, otherwise it is dark. --> |
| 31 | <attr name="isLightTheme" format="boolean" /> |
| 32 | |
| 33 | <!-- These are the standard attributes that make up a complete theme. --> |
| 34 | <declare-styleable name="Theme"> |
| 35 | |
| 36 | <!-- ============= --> |
| 37 | <!-- Window styles --> |
| 38 | <!-- ============= --> |
| 39 | <eat-comment /> |
| 40 | |
| 41 | <!-- Flag indicating whether this window should have an Action Bar |
| 42 | in place of the usual title bar. --> |
| 43 | <attr name="windowActionBar" format="boolean" /> |
| 44 | |
Qiwen Zhao | 03c19ce | 2015-03-09 12:01:13 -0700 | [diff] [blame] | 45 | <!-- Flag indicating whether there should be no title on this window. --> |
| 46 | <attr name="windowNoTitle" format="boolean" /> |
| 47 | |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 48 | <!-- Flag indicating whether this window's Action Bar should overlay |
| 49 | application content. Does nothing if the window would not |
| 50 | have an Action Bar. --> |
| 51 | <attr name="windowActionBarOverlay" format="boolean" /> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 52 | |
Yao Chen | 8269d93 | 2014-08-11 14:04:58 -0700 | [diff] [blame] | 53 | <!-- Flag indicating whether action modes should overlay window content |
| 54 | when there is not reserved space for their UI (such as an Action Bar). --> |
| 55 | <attr name="windowActionModeOverlay" format="boolean" /> |
| 56 | |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 57 | <!-- A fixed width for the window along the major axis of the screen, |
| 58 | that is, when in landscape. Can be either an absolute dimension |
| 59 | or a fraction of the screen size in that dimension. --> |
| 60 | <attr name="windowFixedWidthMajor" format="dimension|fraction" /> |
| 61 | <!-- A fixed height for the window along the minor axis of the screen, |
| 62 | that is, when in landscape. Can be either an absolute dimension |
| 63 | or a fraction of the screen size in that dimension. --> |
| 64 | <attr name="windowFixedHeightMinor" format="dimension|fraction" /> |
| 65 | |
| 66 | <!-- A fixed width for the window along the minor axis of the screen, |
| 67 | that is, when in portrait. Can be either an absolute dimension |
| 68 | or a fraction of the screen size in that dimension. --> |
| 69 | <attr name="windowFixedWidthMinor" format="dimension|fraction" /> |
| 70 | <!-- A fixed height for the window along the major axis of the screen, |
| 71 | that is, when in portrait. Can be either an absolute dimension |
| 72 | or a fraction of the screen size in that dimension. --> |
| 73 | <attr name="windowFixedHeightMajor" format="dimension|fraction" /> |
| 74 | |
Qiwen Zhao | 03c19ce | 2015-03-09 12:01:13 -0700 | [diff] [blame] | 75 | <!-- The minimum width the window is allowed to be, along the major |
| 76 | axis of the screen. That is, when in landscape. Can be either |
| 77 | an absolute dimension or a fraction of the screen size in that |
| 78 | dimension. --> |
| 79 | <attr name="windowMinWidthMajor" format="dimension|fraction" /> |
| 80 | <!-- The minimum width the window is allowed to be, along the minor |
| 81 | axis of the screen. That is, when in portrait. Can be either |
| 82 | an absolute dimension or a fraction of the screen size in that |
| 83 | dimension. --> |
| 84 | <attr name="windowMinWidthMinor" format="dimension|fraction" /> |
| 85 | |
Ying Wang | bb09c25 | 2014-08-05 14:40:52 -0700 | [diff] [blame] | 86 | <attr name="android:windowIsFloating" /> |
Ben Lemmon | d026352 | 2014-11-10 10:49:53 -0800 | [diff] [blame] | 87 | <attr name="android:windowAnimationStyle" /> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 88 | |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 89 | <!-- =================== --> |
| 90 | <!-- Action bar styles --> |
| 91 | <!-- =================== --> |
| 92 | <eat-comment /> |
| 93 | <!-- Default style for tabs within an action bar --> |
| 94 | <attr name="actionBarTabStyle" format="reference" /> |
| 95 | <attr name="actionBarTabBarStyle" format="reference" /> |
| 96 | <attr name="actionBarTabTextStyle" format="reference" /> |
| 97 | <attr name="actionOverflowButtonStyle" format="reference" /> |
| 98 | <attr name="actionOverflowMenuStyle" format="reference" /> |
| 99 | <!-- Reference to a theme that should be used to inflate popups |
| 100 | shown by widgets in the action bar. --> |
| 101 | <attr name="actionBarPopupTheme" format="reference" /> |
| 102 | <!-- Reference to a style for the Action Bar --> |
| 103 | <attr name="actionBarStyle" format="reference" /> |
| 104 | <!-- Reference to a style for the split Action Bar. This style |
| 105 | controls the split component that holds the menu/action |
| 106 | buttons. actionBarStyle is still used for the primary |
| 107 | bar. --> |
| 108 | <attr name="actionBarSplitStyle" format="reference" /> |
| 109 | <!-- Reference to a theme that should be used to inflate the |
| 110 | action bar. This will be inherited by any widget inflated |
| 111 | into the action bar. --> |
| 112 | <attr name="actionBarTheme" format="reference" /> |
| 113 | <!-- Reference to a theme that should be used to inflate widgets |
| 114 | and layouts destined for the action bar. Most of the time |
| 115 | this will be a reference to the current theme, but when |
| 116 | the action bar has a significantly different contrast |
| 117 | profile than the rest of the activity the difference |
| 118 | can become important. If this is set to @null the current |
| 119 | theme will be used.--> |
| 120 | <attr name="actionBarWidgetTheme" format="reference" /> |
| 121 | <!-- Size of the Action Bar, including the contextual |
| 122 | bar used to present Action Modes. --> |
| 123 | <attr name="actionBarSize" format="dimension" > |
| 124 | <enum name="wrap_content" value="0" /> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 125 | </attr> |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 126 | <!-- Custom divider drawable to use for elements in the action bar. --> |
| 127 | <attr name="actionBarDivider" format="reference" /> |
| 128 | <!-- Custom item state list drawable background for action bar items. --> |
| 129 | <attr name="actionBarItemBackground" format="reference" /> |
| 130 | <!-- TextAppearance style that will be applied to text that |
| 131 | appears within action menu items. --> |
| 132 | <attr name="actionMenuTextAppearance" format="reference" /> |
| 133 | <!-- Color for text that appears within action menu items. --> |
| 134 | <!-- Color for text that appears within action menu items. --> |
| 135 | <attr name="actionMenuTextColor" format="color|reference"/> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 136 | |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 137 | |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 138 | <!-- =================== --> |
| 139 | <!-- Action mode styles --> |
| 140 | <!-- =================== --> |
| 141 | <eat-comment/> |
| 142 | <attr name="actionModeStyle" format="reference"/> |
| 143 | <attr name="actionModeCloseButtonStyle" format="reference"/> |
| 144 | <!-- Background drawable to use for action mode UI --> |
| 145 | <attr name="actionModeBackground" format="reference"/> |
| 146 | <!-- Background drawable to use for action mode UI in the lower split bar --> |
| 147 | <attr name="actionModeSplitBackground" format="reference"/> |
| 148 | <!-- Drawable to use for the close action mode button --> |
| 149 | <attr name="actionModeCloseDrawable" format="reference"/> |
| 150 | <!-- Drawable to use for the Cut action button in Contextual Action Bar --> |
| 151 | <attr name="actionModeCutDrawable" format="reference"/> |
| 152 | <!-- Drawable to use for the Copy action button in Contextual Action Bar --> |
| 153 | <attr name="actionModeCopyDrawable" format="reference"/> |
| 154 | <!-- Drawable to use for the Paste action button in Contextual Action Bar --> |
| 155 | <attr name="actionModePasteDrawable" format="reference"/> |
| 156 | <!-- Drawable to use for the Select all action button in Contextual Action Bar --> |
| 157 | <attr name="actionModeSelectAllDrawable" format="reference"/> |
| 158 | <!-- Drawable to use for the Share action button in WebView selection action modes --> |
| 159 | <attr name="actionModeShareDrawable" format="reference"/> |
| 160 | <!-- Drawable to use for the Find action button in WebView selection action modes --> |
| 161 | <attr name="actionModeFindDrawable" format="reference"/> |
| 162 | <!-- Drawable to use for the Web Search action button in WebView selection action modes --> |
| 163 | <attr name="actionModeWebSearchDrawable" format="reference"/> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 164 | |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 165 | <!-- PopupWindow style to use for action modes when showing as a window overlay. --> |
| 166 | <attr name="actionModePopupWindowStyle" format="reference"/> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 167 | |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 168 | |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 169 | <!-- =================== --> |
| 170 | <!-- Text styles --> |
| 171 | <!-- =================== --> |
| 172 | <eat-comment /> |
| 173 | <!-- Text color, typeface, size, and style for the text inside of a popup menu. --> |
| 174 | <attr name="textAppearanceLargePopupMenu" format="reference"/> |
| 175 | <!-- Text color, typeface, size, and style for small text inside of a popup menu. --> |
| 176 | <attr name="textAppearanceSmallPopupMenu" format="reference"/> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 177 | |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 178 | |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 179 | <!-- =================== --> |
Kirill Grouchnikov | 3f66992 | 2015-01-26 15:10:45 -0500 | [diff] [blame] | 180 | <!-- Dialog styles --> |
| 181 | <!-- =================== --> |
| 182 | <eat-comment /> |
| 183 | |
| 184 | <!-- Theme to use for dialogs spawned from this theme. --> |
| 185 | <attr name="dialogTheme" format="reference" /> |
| 186 | <!-- Preferred padding for dialog content. --> |
| 187 | <attr name="dialogPreferredPadding" format="dimension" /> |
Qiwen Zhao | 03c19ce | 2015-03-09 12:01:13 -0700 | [diff] [blame] | 188 | <!-- The list divider used in alert dialogs. --> |
| 189 | <attr name="listDividerAlertDialog" format="reference" /> |
Kirill Grouchnikov | 3f66992 | 2015-01-26 15:10:45 -0500 | [diff] [blame] | 190 | |
| 191 | <!-- =================== --> |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 192 | <!-- Other widget styles --> |
| 193 | <!-- =================== --> |
| 194 | <eat-comment /> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 195 | |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 196 | <!-- Default ActionBar dropdown style. --> |
| 197 | <attr name="actionDropDownStyle" format="reference"/> |
| 198 | <!-- The preferred item height for dropdown lists. --> |
| 199 | <attr name="dropdownListPreferredItemHeight" format="dimension"/> |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 200 | <!-- Default Spinner style. --> |
| 201 | <attr name="spinnerDropDownItemStyle" format="reference" /> |
| 202 | <!-- Specifies a drawable to use for the 'home as up' indicator. --> |
| 203 | <attr name="homeAsUpIndicator" format="reference"/> |
| 204 | |
| 205 | <!-- Default action button style. --> |
| 206 | <attr name="actionButtonStyle" format="reference"/> |
| 207 | |
Kirill Grouchnikov | da36c5c | 2015-01-29 17:46:51 -0500 | [diff] [blame] | 208 | <!-- Style for button bars --> |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 209 | <attr name="buttonBarStyle" format="reference"/> |
Kirill Grouchnikov | da36c5c | 2015-01-29 17:46:51 -0500 | [diff] [blame] | 210 | <!-- Style for buttons within button bars --> |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 211 | <attr name="buttonBarButtonStyle" format="reference"/> |
| 212 | <!-- A style that may be applied to buttons or other selectable items |
| 213 | that should react to pressed and focus states, but that do not |
| 214 | have a clear visual border along the edges. --> |
| 215 | <attr name="selectableItemBackground" format="reference"/> |
Dharmesh Mokani | 5bef9fe | 2014-08-13 10:10:24 -0700 | [diff] [blame] | 216 | <!-- Background drawable for borderless standalone items that need focus/pressed states. --> |
| 217 | <attr name="selectableItemBackgroundBorderless" format="reference" /> |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 218 | <!-- A drawable that may be used as a vertical divider between visual elements. --> |
| 219 | <attr name="dividerVertical" format="reference"/> |
| 220 | <!-- A drawable that may be used as a horizontal divider between visual elements. --> |
| 221 | <attr name="dividerHorizontal" format="reference"/> |
| 222 | <!-- Default ActivityChooserView style. --> |
| 223 | <attr name="activityChooserViewStyle" format="reference" /> |
| 224 | |
| 225 | <!-- Default Toolbar style. --> |
| 226 | <attr name="toolbarStyle" format="reference" /> |
| 227 | <!-- Default Toolar NavigationButtonStyle --> |
| 228 | <attr name="toolbarNavigationButtonStyle" format="reference" /> |
| 229 | |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 230 | <!-- Default PopupMenu style. --> |
| 231 | <attr name="popupMenuStyle" format="reference"/> |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 232 | <!-- Default PopupWindow style. --> |
| 233 | <attr name="popupWindowStyle" format="reference" /> |
| 234 | |
Dharmesh Mokani | 371b2b6 | 2014-08-07 22:07:03 -0700 | [diff] [blame] | 235 | <!-- EditText text foreground color. --> |
| 236 | <attr name="editTextColor" format="reference|color" /> |
| 237 | <!-- EditText background drawable. --> |
| 238 | <attr name="editTextBackground" format="reference" /> |
| 239 | |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 240 | <!-- ============================ --> |
| 241 | <!-- SearchView styles and assets --> |
| 242 | <!-- ============================ --> |
| 243 | <eat-comment /> |
| 244 | <!-- Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. --> |
| 245 | <attr name="textAppearanceSearchResultTitle" format="reference" /> |
| 246 | <!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. --> |
| 247 | <attr name="textAppearanceSearchResultSubtitle" format="reference" /> |
| 248 | <!-- Text color for urls in search suggestions, used by things like global search --> |
| 249 | <attr name="textColorSearchUrl" format="reference|color" /> |
| 250 | <!-- Style for the search query widget. --> |
| 251 | <attr name="searchViewStyle" format="reference" /> |
| 252 | |
| 253 | <!-- =========== --> |
| 254 | <!-- List styles --> |
| 255 | <!-- =========== --> |
| 256 | <eat-comment /> |
| 257 | |
| 258 | <!-- The preferred list item height. --> |
| 259 | <attr name="listPreferredItemHeight" format="dimension"/> |
| 260 | <!-- A smaller, sleeker list item height. --> |
| 261 | <attr name="listPreferredItemHeightSmall" format="dimension"/> |
| 262 | <!-- A larger, more robust list item height. --> |
| 263 | <attr name="listPreferredItemHeightLarge" format="dimension"/> |
| 264 | |
| 265 | <!-- The preferred padding along the left edge of list items. --> |
| 266 | <attr name="listPreferredItemPaddingLeft" format="dimension"/> |
| 267 | <!-- The preferred padding along the right edge of list items. --> |
| 268 | <attr name="listPreferredItemPaddingRight" format="dimension"/> |
| 269 | |
| 270 | <!-- ListPopupWindow compatibility --> |
| 271 | <attr name="dropDownListViewStyle" format="reference"/> |
| 272 | <attr name="listPopupWindowStyle" format="reference"/> |
| 273 | |
| 274 | <!-- The preferred TextAppearance for the primary text of list items. --> |
| 275 | <attr name="textAppearanceListItem" format="reference"/> |
| 276 | <!-- The preferred TextAppearance for the primary text of small list items. --> |
| 277 | <attr name="textAppearanceListItemSmall" format="reference"/> |
| 278 | |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 279 | |
| 280 | <!-- ============ --> |
| 281 | <!-- Panel styles --> |
| 282 | <!-- ============ --> |
| 283 | <eat-comment /> |
| 284 | |
Qiwen Zhao | e081e30 | 2014-09-19 17:49:39 -0700 | [diff] [blame] | 285 | <!-- The background of a panel when it is inset from the left and right edges of the screen. --> |
| 286 | <attr name="panelBackground" format="reference" /> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 287 | <!-- Default Panel Menu width. --> |
| 288 | <attr name="panelMenuListWidth" format="dimension" /> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 289 | <!-- Default Panel Menu style. --> |
| 290 | <attr name="panelMenuListTheme" format="reference" /> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 291 | <!-- Drawable used as a background for selected list items. --> |
| 292 | <attr name="listChoiceBackgroundIndicator" format="reference" /> |
| 293 | |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 294 | <!-- ============= --> |
| 295 | <!-- Color palette --> |
| 296 | <!-- ============= --> |
| 297 | <eat-comment /> |
| 298 | |
| 299 | <!-- The primary branding color for the app. By default, this is the color applied to the |
| 300 | action bar background. --> |
| 301 | <attr name="colorPrimary" format="color" /> |
| 302 | |
| 303 | <!-- Dark variant of the primary branding color. By default, this is the color applied to |
| 304 | the status bar (via statusBarColor) and navigation bar (via navigationBarColor). --> |
| 305 | <attr name="colorPrimaryDark" format="color" /> |
| 306 | |
| 307 | <!-- Bright complement to the primary branding color. By default, this is the color applied |
| 308 | to framework controls (via colorControlActivated). --> |
| 309 | <attr name="colorAccent" format="color" /> |
| 310 | |
| 311 | <!-- The color applied to framework controls in their normal state. --> |
| 312 | <attr name="colorControlNormal" format="color" /> |
| 313 | |
| 314 | <!-- The color applied to framework controls in their activated (ex. checked) state. --> |
| 315 | <attr name="colorControlActivated" format="color" /> |
| 316 | |
| 317 | <!-- The color applied to framework control highlights (ex. ripples, list selectors). --> |
| 318 | <attr name="colorControlHighlight" format="color" /> |
| 319 | |
| 320 | <!-- The color applied to framework buttons in their normal state. --> |
| 321 | <attr name="colorButtonNormal" format="color" /> |
| 322 | |
Kaikai Wang | 0bdd58a | 2014-10-29 10:19:47 -0700 | [diff] [blame] | 323 | <!-- The color applied to framework switch thumbs in their normal state. --> |
| 324 | <attr name="colorSwitchThumbNormal" format="color" /> |
| 325 | |
Qiwen Zhao | 03c19ce | 2015-03-09 12:01:13 -0700 | [diff] [blame] | 326 | <!-- ============ --> |
| 327 | <!-- Alert Dialog styles --> |
| 328 | <!-- ============ --> |
| 329 | <eat-comment /> |
| 330 | <attr name="alertDialogStyle" format="reference" /> |
| 331 | <attr name="alertDialogButtonGroupStyle" format="reference" /> |
| 332 | <attr name="alertDialogCenterButtons" format="boolean" /> |
| 333 | <!-- Theme to use for alert dialogs spawned from this theme. --> |
| 334 | <attr name="alertDialogTheme" format="reference" /> |
| 335 | |
| 336 | <!-- Color of list item text in alert dialogs. --> |
| 337 | <attr name="textColorAlertDialogListItem" format="reference|color" /> |
| 338 | |
| 339 | <!-- Style for the "positive" buttons within button bars --> |
| 340 | <attr name="buttonBarPositiveButtonStyle" format="reference" /> |
| 341 | |
| 342 | <!-- Style for the "negative" buttons within button bars --> |
| 343 | <attr name="buttonBarNegativeButtonStyle" format="reference" /> |
| 344 | |
| 345 | <!-- Style for the "neutral" buttons within button bars --> |
| 346 | <attr name="buttonBarNeutralButtonStyle" format="reference" /> |
| 347 | |
| 348 | <!-- ===================== --> |
| 349 | <!-- Default widget styles --> |
| 350 | <!-- ===================== --> |
| 351 | <eat-comment /> |
| 352 | |
| 353 | <!-- Default AutoCompleteTextView style. --> |
| 354 | <attr name="autoCompleteTextViewStyle" format="reference" /> |
| 355 | <!-- Normal Button style. --> |
| 356 | <attr name="buttonStyle" format="reference" /> |
| 357 | <!-- Small Button style. --> |
| 358 | <attr name="buttonStyleSmall" format="reference" /> |
| 359 | <!-- Default Checkbox style. --> |
| 360 | <attr name="checkboxStyle" format="reference" /> |
| 361 | <!-- Default CheckedTextView style. --> |
| 362 | <attr name="checkedTextViewStyle" format="reference" /> |
| 363 | <!-- Default EditText style. --> |
| 364 | <attr name="editTextStyle" format="reference" /> |
| 365 | <!-- Default RadioButton style. --> |
| 366 | <attr name="radioButtonStyle" format="reference" /> |
| 367 | <!-- Default RatingBar style. --> |
| 368 | <attr name="ratingBarStyle" format="reference" /> |
| 369 | <!-- Default Spinner style. --> |
| 370 | <attr name="spinnerStyle" format="reference" /> |
| 371 | <!-- Default style for the Switch widget. --> |
| 372 | <attr name="switchStyle" format="reference" /> |
| 373 | |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 374 | </declare-styleable> |
| 375 | |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 376 | |
| 377 | <!-- ============================================ --> |
| 378 | |
| 379 | <!-- Attributes used to style the Action Bar. |
| 380 | These should be set on your theme; the default actionBarStyle will |
| 381 | propagate them to the correct elements as needed. |
| 382 | |
| 383 | Please Note: when overriding attributes for an ActionBar style |
| 384 | you must specify each attribute twice: once with the "android:" |
| 385 | namespace prefix and once without. --> |
| 386 | <declare-styleable name="ActionBar"> |
| 387 | <!-- The type of navigation to use. --> |
| 388 | <attr name="navigationMode"> |
| 389 | <!-- Normal static title text --> |
| 390 | <enum name="normal" value="0"/> |
| 391 | <!-- The action bar will use a selection list for navigation. --> |
| 392 | <enum name="listMode" value="1"/> |
| 393 | <!-- The action bar will use a series of horizontal tabs for navigation. --> |
| 394 | <enum name="tabMode" value="2"/> |
| 395 | </attr> |
| 396 | <!-- Options affecting how the action bar is displayed. --> |
| 397 | <attr name="displayOptions"> |
| 398 | <flag name="none" value="0" /> |
| 399 | <flag name="useLogo" value="0x1"/> |
| 400 | <flag name="showHome" value="0x2"/> |
| 401 | <flag name="homeAsUp" value="0x4"/> |
| 402 | <flag name="showTitle" value="0x8"/> |
| 403 | <flag name="showCustom" value="0x10"/> |
| 404 | <flag name="disableHome" value="0x20"/> |
| 405 | </attr> |
| 406 | <!-- Specifies title text used for navigationMode="normal" --> |
| 407 | <attr name="title"/> |
| 408 | <!-- Specifies subtitle text used for navigationMode="normal" --> |
| 409 | <attr name="subtitle" format="string"/> |
| 410 | <!-- Specifies a style to use for title text. --> |
| 411 | <attr name="titleTextStyle" format="reference"/> |
| 412 | <!-- Specifies a style to use for subtitle text. --> |
| 413 | <attr name="subtitleTextStyle" format="reference"/> |
| 414 | <!-- Specifies the drawable used for the application icon. --> |
| 415 | <attr name="icon" format="reference"/> |
| 416 | <!-- Specifies the drawable used for the application logo. --> |
| 417 | <attr name="logo" format="reference"/> |
| 418 | <!-- Specifies the drawable used for item dividers. --> |
| 419 | <attr name="divider" format="reference"/> |
| 420 | <!-- Specifies a background drawable for the action bar. --> |
| 421 | <attr name="background" format="reference"/> |
| 422 | <!-- Specifies a background drawable for a second stacked row of the action bar. --> |
| 423 | <attr name="backgroundStacked" format="reference|color"/> |
| 424 | <!-- Specifies a background drawable for the bottom component of a split action bar. --> |
| 425 | <attr name="backgroundSplit" format="reference|color"/> |
| 426 | <!-- Specifies a layout for custom navigation. Overrides navigationMode. --> |
| 427 | <attr name="customNavigationLayout" format="reference"/> |
| 428 | <!-- Specifies a fixed height. --> |
| 429 | <attr name="height"/> |
| 430 | <!-- Specifies a layout to use for the "home" section of the action bar. --> |
| 431 | <attr name="homeLayout" format="reference"/> |
| 432 | <!-- Specifies a style resource to use for an embedded progress bar. --> |
| 433 | <attr name="progressBarStyle" format="reference"/> |
| 434 | <!-- Specifies a style resource to use for an indeterminate progress spinner. --> |
| 435 | <attr name="indeterminateProgressStyle" format="reference"/> |
| 436 | <!-- Specifies the horizontal padding on either end for an embedded progress bar. --> |
| 437 | <attr name="progressBarPadding" format="dimension"/> |
| 438 | <!-- Up navigation glyph --> |
| 439 | <attr name="homeAsUpIndicator" /> |
| 440 | <!-- Specifies padding that should be applied to the left and right sides of |
| 441 | system-provided items in the bar. --> |
| 442 | <attr name="itemPadding" format="dimension"/> |
| 443 | <!-- Set true to hide the action bar on a vertical nested scroll of content. --> |
| 444 | <attr name="hideOnContentScroll" format="boolean"/> |
| 445 | <!-- Minimum inset for content views within a bar. Navigation buttons and |
| 446 | menu views are excepted. Only valid for some themes and configurations. --> |
| 447 | <attr name="contentInsetStart" format="dimension"/> |
| 448 | <!-- Minimum inset for content views within a bar. Navigation buttons and |
| 449 | menu views are excepted. Only valid for some themes and configurations. --> |
| 450 | <attr name="contentInsetEnd" format="dimension"/> |
| 451 | <!-- Minimum inset for content views within a bar. Navigation buttons and |
| 452 | menu views are excepted. Only valid for some themes and configurations. --> |
| 453 | <attr name="contentInsetLeft" format="dimension"/> |
| 454 | <!-- Minimum inset for content views within a bar. Navigation buttons and |
| 455 | menu views are excepted. Only valid for some themes and configurations. --> |
| 456 | <attr name="contentInsetRight" format="dimension"/> |
| 457 | <!-- Elevation for the action bar itself --> |
| 458 | <attr name="elevation" format="dimension" /> |
Ying Wang | bb09c25 | 2014-08-05 14:40:52 -0700 | [diff] [blame] | 459 | <!-- Reference to a theme that should be used to inflate popups |
| 460 | shown by widgets in the action bar. --> |
| 461 | <attr name="popupTheme" format="reference" /> |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 462 | </declare-styleable> |
| 463 | |
| 464 | <!-- Valid LayoutParams for views placed in the action bar as custom views. --> |
| 465 | <declare-styleable name="ActionBarLayout"> |
| 466 | <attr name="android:layout_gravity"/> |
| 467 | </declare-styleable> |
| 468 | |
| 469 | <declare-styleable name="ActionMenuItemView"> |
| 470 | <attr name="android:minWidth"/> |
| 471 | </declare-styleable> |
| 472 | |
| 473 | <declare-styleable name="ActionMode"> |
| 474 | <!-- Specifies a style to use for title text. --> |
| 475 | <attr name="titleTextStyle"/> |
| 476 | <!-- Specifies a style to use for subtitle text. --> |
| 477 | <attr name="subtitleTextStyle"/> |
| 478 | <!-- Specifies a background for the action mode bar. --> |
| 479 | <attr name="background"/> |
| 480 | <!-- Specifies a background for the split action mode bar. --> |
| 481 | <attr name="backgroundSplit"/> |
| 482 | <!-- Specifies a fixed height for the action mode bar. --> |
| 483 | <attr name="height"/> |
Qiwen Zhao | 2e532df | 2014-09-05 10:52:43 -0700 | [diff] [blame] | 484 | <!-- Specifies a layout to use for the "close" item at the starting edge. --> |
| 485 | <attr name="closeItemLayout" format="reference" /> |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 486 | </declare-styleable> |
| 487 | |
| 488 | <declare-styleable name="View"> |
| 489 | <!-- Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. --> |
| 490 | <attr name="paddingStart" format="dimension"/> |
| 491 | <!-- Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. --> |
| 492 | <attr name="paddingEnd" format="dimension"/> |
| 493 | |
| 494 | <!-- Boolean that controls whether a view can take focus. By default the user can not |
| 495 | move focus to a view; by setting this attribute to true the view is |
| 496 | allowed to take focus. This value does not impact the behavior of |
| 497 | directly calling {@link android.view.View#requestFocus}, which will |
| 498 | always request focus regardless of this view. It only impacts where |
| 499 | focus navigation will try to move focus. --> |
| 500 | <attr name="android:focusable" /> |
Kirill Grouchnikov | 3f66992 | 2015-01-26 15:10:45 -0500 | [diff] [blame] | 501 | |
| 502 | <!-- Deprecated. --> |
| 503 | <attr name="theme" format="reference" /> |
| 504 | |
| 505 | <!-- Specifies a theme override for a view. When a theme override is set, the |
| 506 | view will be inflated using a {@link android.content.Context} themed with |
| 507 | the specified resource. --> |
| 508 | <attr name="android:theme" /> |
| 509 | |
| 510 | <!-- Tint to apply to the background. --> |
| 511 | <attr name="backgroundTint" format="color" /> |
| 512 | |
| 513 | <!-- Blending mode used to apply the background tint. --> |
| 514 | <attr name="backgroundTintMode"> |
| 515 | <!-- The tint is drawn on top of the drawable. |
| 516 | [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> |
| 517 | <enum name="src_over" value="3" /> |
| 518 | <!-- The tint is masked by the alpha channel of the drawable. The drawable’s |
| 519 | color channels are thrown out. [Sa * Da, Sc * Da] --> |
| 520 | <enum name="src_in" value="5" /> |
| 521 | <!-- The tint is drawn above the drawable, but with the drawable’s alpha |
| 522 | channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> |
| 523 | <enum name="src_atop" value="9" /> |
| 524 | <!-- Multiplies the color and alpha channels of the drawable with those of |
| 525 | the tint. [Sa * Da, Sc * Dc] --> |
| 526 | <enum name="multiply" value="14" /> |
| 527 | <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> |
| 528 | <enum name="screen" value="15" /> |
| 529 | </attr> |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 530 | </declare-styleable> |
| 531 | |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 532 | <declare-styleable name="MenuView"> |
| 533 | <!-- Default appearance of menu item text. --> |
| 534 | <attr name="android:itemTextAppearance"/> |
| 535 | <!-- Default horizontal divider between rows of menu items. --> |
| 536 | <attr name="android:horizontalDivider"/> |
| 537 | <!-- Default vertical divider between menu items. --> |
| 538 | <attr name="android:verticalDivider"/> |
| 539 | <!-- Default background for the menu header. --> |
| 540 | <attr name="android:headerBackground"/> |
| 541 | <!-- Default background for each menu item. --> |
| 542 | <attr name="android:itemBackground"/> |
| 543 | <!-- Default animations for the menu. --> |
| 544 | <attr name="android:windowAnimationStyle"/> |
| 545 | <!-- Default disabled icon alpha for each menu item that shows an icon. --> |
| 546 | <attr name="android:itemIconDisabledAlpha"/> |
| 547 | <!-- Whether space should be reserved in layout when an icon is missing. --> |
Qiwen Zhao | fc52e9b | 2014-09-18 12:35:05 -0700 | [diff] [blame] | 548 | <attr name="preserveIconSpacing" format="boolean" /> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 549 | </declare-styleable> |
| 550 | <declare-styleable name="ActionMenuView"> |
| 551 | <!-- Size of padding on either end of a divider. --> |
| 552 | </declare-styleable> |
| 553 | |
| 554 | <!-- Base attributes that are available to all groups. --> |
| 555 | <declare-styleable name="MenuGroup"> |
| 556 | |
| 557 | <!-- The ID of the group. --> |
| 558 | <attr name="android:id" /> |
| 559 | |
| 560 | <!-- The category applied to all items within this group. |
| 561 | (This will be or'ed with the orderInCategory attribute.) --> |
| 562 | <attr name="android:menuCategory" /> |
| 563 | |
| 564 | <!-- The order within the category applied to all items within this group. |
| 565 | (This will be or'ed with the category attribute.) --> |
| 566 | <attr name="android:orderInCategory" /> |
| 567 | |
| 568 | <!-- Whether the items are capable of displaying a check mark. --> |
| 569 | <attr name="android:checkableBehavior" /> |
| 570 | |
| 571 | <!-- Whether the items are shown/visible. --> |
| 572 | <attr name="android:visible" /> |
| 573 | |
| 574 | <!-- Whether the items are enabled. --> |
| 575 | <attr name="android:enabled" /> |
| 576 | |
| 577 | </declare-styleable> |
| 578 | |
| 579 | <!-- Base attributes that are available to all Item objects. --> |
| 580 | <declare-styleable name="MenuItem"> |
| 581 | |
| 582 | <!-- The ID of the item. --> |
| 583 | <attr name="android:id" /> |
| 584 | |
| 585 | <!-- The category applied to the item. |
| 586 | (This will be or'ed with the orderInCategory attribute.) --> |
| 587 | <attr name="android:menuCategory" /> |
| 588 | |
| 589 | <!-- The order within the category applied to the item. |
| 590 | (This will be or'ed with the category attribute.) --> |
| 591 | <attr name="android:orderInCategory" /> |
| 592 | |
| 593 | <!-- The title associated with the item. --> |
| 594 | <attr name="android:title" /> |
| 595 | |
| 596 | <!-- The condensed title associated with the item. This is used in situations where the |
| 597 | normal title may be too long to be displayed. --> |
| 598 | <attr name="android:titleCondensed" /> |
| 599 | |
| 600 | <!-- The icon associated with this item. This icon will not always be shown, so |
| 601 | the title should be sufficient in describing this item. --> |
| 602 | <attr name="android:icon" /> |
| 603 | |
| 604 | <!-- The alphabetic shortcut key. This is the shortcut when using a keyboard |
| 605 | with alphabetic keys. --> |
| 606 | <attr name="android:alphabeticShortcut" /> |
| 607 | |
| 608 | <!-- The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key) |
| 609 | keyboard. --> |
| 610 | <attr name="android:numericShortcut" /> |
| 611 | |
| 612 | <!-- Whether the item is capable of displaying a check mark. --> |
| 613 | <attr name="android:checkable" /> |
| 614 | |
| 615 | <!-- Whether the item is checked. Note that you must first have enabled checking with |
| 616 | the checkable attribute or else the check mark will not appear. --> |
| 617 | <attr name="android:checked" /> |
| 618 | |
| 619 | <!-- Whether the item is shown/visible. --> |
| 620 | <attr name="android:visible" /> |
| 621 | |
| 622 | <!-- Whether the item is enabled. --> |
| 623 | <attr name="android:enabled" /> |
| 624 | |
| 625 | <!-- Name of a method on the Context used to inflate the menu that will be |
| 626 | called when the item is clicked. --> |
| 627 | <attr name="android:onClick" /> |
| 628 | |
| 629 | <!-- How this item should display in the Action Bar, if present. --> |
| 630 | <attr name="showAsAction"> |
| 631 | <!-- Never show this item in an action bar, show it in the overflow menu instead. |
| 632 | Mutually exclusive with "ifRoom" and "always". --> |
| 633 | <flag name="never" value="0" /> |
| 634 | <!-- Show this item in an action bar if there is room for it as determined |
| 635 | by the system. Favor this option over "always" where possible. |
| 636 | Mutually exclusive with "never" and "always". --> |
| 637 | <flag name="ifRoom" value="1" /> |
| 638 | <!-- Always show this item in an actionbar, even if it would override |
| 639 | the system's limits of how much stuff to put there. This may make |
| 640 | your action bar look bad on some screens. In most cases you should |
| 641 | use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". --> |
| 642 | <flag name="always" value="2" /> |
| 643 | <!-- When this item is shown as an action in the action bar, show a text |
| 644 | label with it even if it has an icon representation. --> |
| 645 | <flag name="withText" value="4" /> |
| 646 | <!-- This item's action view collapses to a normal menu |
| 647 | item. When expanded, the action view takes over a |
| 648 | larger segment of its container. --> |
| 649 | <flag name="collapseActionView" value="8" /> |
| 650 | </attr> |
| 651 | |
| 652 | <!-- An optional layout to be used as an action view. |
| 653 | See {@link android.view.MenuItem#setActionView(android.view.View)} |
| 654 | for more info. --> |
| 655 | <attr name="actionLayout" format="reference" /> |
| 656 | |
| 657 | <!-- The name of an optional View class to instantiate and use as an |
| 658 | action view. See {@link android.view.MenuItem#setActionView(android.view.View)} |
| 659 | for more info. --> |
| 660 | <attr name="actionViewClass" format="string" /> |
| 661 | |
| 662 | <!-- The name of an optional ActionProvider class to instantiate an action view |
| 663 | and perform operations such as default action for that menu item. |
| 664 | See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)} |
| 665 | for more info. --> |
| 666 | <attr name="actionProviderClass" format="string" /> |
| 667 | |
| 668 | </declare-styleable> |
| 669 | |
| 670 | <declare-styleable name="Spinner"> |
| 671 | <!-- The prompt to display when the spinner's dialog is shown. --> |
| 672 | <attr name="prompt" format="reference" /> |
| 673 | <!-- Display mode for spinner options. --> |
| 674 | <attr name="spinnerMode" format="enum"> |
| 675 | <!-- Spinner options will be presented to the user as a dialog window. --> |
| 676 | <enum name="dialog" value="0" /> |
| 677 | <!-- Spinner options will be presented to the user as an inline dropdown |
| 678 | anchored to the spinner widget itself. --> |
| 679 | <enum name="dropdown" value="1" /> |
| 680 | </attr> |
| 681 | <!-- List selector to use for spinnerMode="dropdown" display. --> |
| 682 | <attr name="android:dropDownSelector" /> |
| 683 | <!-- Background drawable to use for the dropdown in spinnerMode="dropdown". --> |
| 684 | <attr name="android:popupBackground" /> |
| 685 | <!-- Vertical offset from the spinner widget for positioning the dropdown in |
| 686 | spinnerMode="dropdown". --> |
| 687 | <attr name="android:dropDownVerticalOffset" /> |
| 688 | <!-- Horizontal offset from the spinner widget for positioning the dropdown |
| 689 | in spinnerMode="dropdown". --> |
| 690 | <attr name="android:dropDownHorizontalOffset" /> |
| 691 | <!-- Width of the dropdown in spinnerMode="dropdown". --> |
| 692 | <attr name="android:dropDownWidth" /> |
| 693 | <!-- Reference to a layout to use for displaying a prompt in the dropdown for |
| 694 | spinnerMode="dropdown". This layout must contain a TextView with the id |
| 695 | {@code @android:id/text1} to be populated with the prompt text. --> |
| 696 | <attr name="popupPromptView" format="reference" /> |
| 697 | <!-- Gravity setting for positioning the currently selected item. --> |
| 698 | <attr name="android:gravity" /> |
| 699 | <!-- Whether this spinner should mark child views as enabled/disabled when |
| 700 | the spinner itself is enabled/disabled. --> |
| 701 | <attr name="disableChildrenWhenDisabled" format="boolean" /> |
Qiwen Zhao | 464b41e | 2014-09-10 08:12:21 -0700 | [diff] [blame] | 702 | <attr name="android:background" /> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 703 | </declare-styleable> |
| 704 | |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 705 | <declare-styleable name="SearchView"> |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 706 | <!-- The layout to use for the search view. --> |
| 707 | <attr name="layout" format="reference" /> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 708 | <!-- The default state of the SearchView. If true, it will be iconified when not in |
| 709 | use and expanded when clicked. --> |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 710 | <attr name="iconifiedByDefault" format="boolean" /> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 711 | <!-- An optional maximum width of the SearchView. --> |
| 712 | <attr name="android:maxWidth" /> |
Qiwen Zhao | 1a874e2 | 2015-06-24 20:38:22 +0000 | [diff] [blame^] | 713 | <!-- An optional query hint string to be displayed in the empty query field. --> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 714 | <attr name="queryHint" format="string" /> |
| 715 | <!-- The IME options to set on the query text field. --> |
| 716 | <attr name="android:imeOptions" /> |
| 717 | <!-- The input type to set on the query text field. --> |
| 718 | <attr name="android:inputType" /> |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 719 | <!-- Close button icon --> |
| 720 | <attr name="closeIcon" format="reference" /> |
| 721 | <!-- Go button icon --> |
| 722 | <attr name="goIcon" format="reference" /> |
| 723 | <!-- Search icon --> |
| 724 | <attr name="searchIcon" format="reference" /> |
Kirill Grouchnikov | 3f66992 | 2015-01-26 15:10:45 -0500 | [diff] [blame] | 725 | <!-- Search icon displayed as a text field hint --> |
| 726 | <attr name="searchHintIcon" format="reference" /> |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 727 | <!-- Voice button icon --> |
| 728 | <attr name="voiceIcon" format="reference" /> |
| 729 | <!-- Commit icon shown in the query suggestion row --> |
| 730 | <attr name="commitIcon" format="reference" /> |
| 731 | <!-- Layout for query suggestion rows --> |
| 732 | <attr name="suggestionRowLayout" format="reference" /> |
| 733 | <!-- Background for the section containing the search query --> |
| 734 | <attr name="queryBackground" format="reference" /> |
| 735 | <!-- Background for the section containing the action (e.g. voice search) --> |
| 736 | <attr name="submitBackground" format="reference" /> |
Qiwen Zhao | 0ccdf35 | 2014-09-04 14:35:18 -0700 | [diff] [blame] | 737 | <attr name="android:focusable" /> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 738 | </declare-styleable> |
| 739 | |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 740 | <!-- Attrbitutes for a ActivityChooserView. --> |
| 741 | <declare-styleable name="ActivityChooserView"> |
| 742 | <!-- The maximal number of items initially shown in the activity list. --> |
| 743 | <attr name="initialActivityCount" format="string" /> |
| 744 | <!-- The drawable to show in the button for expanding the activities overflow popup. |
| 745 | <strong>Note:</strong> Clients would like to set this drawable |
| 746 | as a clue about the action the chosen activity will perform. For |
| 747 | example, if share activity is to be chosen the drawable should |
| 748 | give a clue that sharing is to be performed. |
| 749 | --> |
| 750 | <attr name="expandActivityOverflowButtonDrawable" format="reference" /> |
| 751 | </declare-styleable> |
| 752 | |
Qiwen Zhao | 03c19ce | 2015-03-09 12:01:13 -0700 | [diff] [blame] | 753 | <declare-styleable name="AppCompatTextView"> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 754 | <!-- Present the text in ALL CAPS. This may use a small-caps form when available. --> |
| 755 | <attr name="textAllCaps" format="reference|boolean" /> |
Qiwen Zhao | 03c19ce | 2015-03-09 12:01:13 -0700 | [diff] [blame] | 756 | <attr name="android:textAppearance" /> |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 757 | </declare-styleable> |
| 758 | |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 759 | <declare-styleable name="LinearLayoutCompat"> |
| 760 | <!-- Should the layout be a column or a row? Use "horizontal" |
| 761 | for a row, "vertical" for a column. The default is |
| 762 | horizontal. --> |
| 763 | <attr name="android:orientation" /> |
| 764 | <attr name="android:gravity" /> |
| 765 | <!-- When set to false, prevents the layout from aligning its children's |
| 766 | baselines. This attribute is particularly useful when the children |
| 767 | use different values for gravity. The default value is true. --> |
| 768 | <attr name="android:baselineAligned" /> |
| 769 | <!-- When a linear layout is part of another layout that is baseline |
| 770 | aligned, it can specify which of its children to baseline align to |
| 771 | (that is, which child TextView).--> |
| 772 | <attr name="android:baselineAlignedChildIndex" /> |
| 773 | <!-- Defines the maximum weight sum. If unspecified, the sum is computed |
| 774 | by adding the layout_weight of all of the children. This can be |
| 775 | used for instance to give a single child 50% of the total available |
| 776 | space by giving it a layout_weight of 0.5 and setting the weightSum |
| 777 | to 1.0. --> |
| 778 | <attr name="android:weightSum" /> |
| 779 | <!-- When set to true, all children with a weight will be considered having |
| 780 | the minimum size of the largest child. If false, all children are |
| 781 | measured normally. --> |
| 782 | <attr name="measureWithLargestChild" format="boolean" /> |
| 783 | <!-- Drawable to use as a vertical divider between buttons. --> |
| 784 | <attr name="divider" /> |
| 785 | <!-- Setting for which dividers to show. --> |
| 786 | <attr name="showDividers"> |
| 787 | <flag name="none" value="0" /> |
| 788 | <flag name="beginning" value="1" /> |
| 789 | <flag name="middle" value="2" /> |
| 790 | <flag name="end" value="4" /> |
| 791 | </attr> |
| 792 | <!-- Size of padding on either end of a divider. --> |
| 793 | <attr name="dividerPadding" format="dimension" /> |
| 794 | </declare-styleable> |
| 795 | |
| 796 | <declare-styleable name="LinearLayoutCompat_Layout"> |
| 797 | <attr name="android:layout_width" /> |
| 798 | <attr name="android:layout_height" /> |
| 799 | <attr name="android:layout_weight" /> |
| 800 | <attr name="android:layout_gravity" /> |
| 801 | </declare-styleable> |
| 802 | |
| 803 | <declare-styleable name="Toolbar"> |
| 804 | <attr name="titleTextAppearance" format="reference" /> |
| 805 | <attr name="subtitleTextAppearance" format="reference" /> |
| 806 | <attr name="title" /> |
| 807 | <attr name="subtitle" /> |
| 808 | <attr name="android:gravity" /> |
| 809 | <attr name="titleMargins" format="dimension" /> |
| 810 | <attr name="titleMarginStart" format="dimension" /> |
| 811 | <attr name="titleMarginEnd" format="dimension" /> |
| 812 | <attr name="titleMarginTop" format="dimension" /> |
| 813 | <attr name="titleMarginBottom" format="dimension" /> |
| 814 | <attr name="contentInsetStart" /> |
| 815 | <attr name="contentInsetEnd" /> |
| 816 | <attr name="contentInsetLeft" /> |
| 817 | <attr name="contentInsetRight" /> |
| 818 | <attr name="maxButtonHeight" format="dimension" /> |
| 819 | |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 820 | <attr name="collapseIcon" format="reference" /> |
Kaikai Wang | 0bdd58a | 2014-10-29 10:19:47 -0700 | [diff] [blame] | 821 | <!-- Text to set as the content description for the collapse button. --> |
| 822 | <attr name="collapseContentDescription" format="string" /> |
Ying Wang | bb09c25 | 2014-08-05 14:40:52 -0700 | [diff] [blame] | 823 | <!-- Reference to a theme that should be used to inflate popups |
| 824 | shown by widgets in the toolbar. --> |
| 825 | <attr name="popupTheme" /> |
Bryan Mawhinney | 191b2af | 2014-09-03 14:24:53 +0100 | [diff] [blame] | 826 | <!-- Icon drawable to use for the navigation button located at |
| 827 | the start of the toolbar. --> |
| 828 | <attr name="navigationIcon" format="reference" /> |
| 829 | <!-- Text to set as the content description for the navigation button |
| 830 | located at the start of the toolbar. --> |
| 831 | <attr name="navigationContentDescription" format="string" /> |
Qiwen Zhao | fc52e9b | 2014-09-18 12:35:05 -0700 | [diff] [blame] | 832 | |
| 833 | <!-- Allows us to read in the minHeight attr pre-v16 --> |
| 834 | <attr name="android:minHeight" /> |
Sailesh Nepal | 08fd817 | 2014-07-28 06:37:53 -0700 | [diff] [blame] | 835 | </declare-styleable> |
| 836 | |
| 837 | <declare-styleable name="PopupWindowBackgroundState"> |
| 838 | <!-- State identifier indicating the popup will be above the anchor. --> |
| 839 | <attr name="state_above_anchor" format="boolean" /> |
| 840 | </declare-styleable> |
| 841 | |
Bryan Mawhinney | 191b2af | 2014-09-03 14:24:53 +0100 | [diff] [blame] | 842 | <declare-styleable name="ListPopupWindow"> |
| 843 | <!-- Amount of pixels by which the drop down should be offset vertically. --> |
| 844 | <attr name="android:dropDownVerticalOffset" /> |
| 845 | <!-- Amount of pixels by which the drop down should be offset horizontally. --> |
| 846 | <attr name="android:dropDownHorizontalOffset" /> |
| 847 | </declare-styleable> |
| 848 | |
Qiwen Zhao | 2e532df | 2014-09-05 10:52:43 -0700 | [diff] [blame] | 849 | <declare-styleable name="PopupWindow"> |
| 850 | <!-- Whether the popup window should overlap its anchor view. --> |
| 851 | <attr name="overlapAnchor" format="boolean" /> |
Qiwen Zhao | 464b41e | 2014-09-10 08:12:21 -0700 | [diff] [blame] | 852 | <attr name="android:popupBackground" /> |
Qiwen Zhao | 2e532df | 2014-09-05 10:52:43 -0700 | [diff] [blame] | 853 | </declare-styleable> |
| 854 | |
Qiwen Zhao | 0ccdf35 | 2014-09-04 14:35:18 -0700 | [diff] [blame] | 855 | <declare-styleable name="DrawerArrowToggle"> |
| 856 | <!-- The drawing color for the bars --> |
| 857 | <attr name="color" format="color"/> |
| 858 | <!-- Whether bars should rotate or not during transition --> |
| 859 | <attr name="spinBars" format="boolean"/> |
| 860 | <!-- The total size of the drawable --> |
| 861 | <attr name="drawableSize" format="dimension"/> |
| 862 | <!-- The max gap between the bars when they are parallel to each other --> |
| 863 | <attr name="gapBetweenBars" format="dimension"/> |
| 864 | <!-- The size of the top and bottom bars when they merge to the middle bar to form an arrow --> |
| 865 | <attr name="topBottomBarArrowSize" format="dimension"/> |
| 866 | <!-- The size of the middle bar when top and bottom bars merge into middle bar to form an arrow --> |
| 867 | <attr name="middleBarArrowSize" format="dimension"/> |
| 868 | <!-- The size of the bars when they are parallel to each other --> |
| 869 | <attr name="barSize" format="dimension"/> |
| 870 | <!-- The thickness (stroke size) for the bar paint --> |
| 871 | <attr name="thickness" format="dimension"/> |
| 872 | </declare-styleable> |
| 873 | |
| 874 | <attr name="drawerArrowStyle" format="reference" /> |
| 875 | |
Qiwen Zhao | dd1e888 | 2014-09-17 08:32:09 -0700 | [diff] [blame] | 876 | <declare-styleable name="ViewStubCompat"> |
| 877 | <!-- Supply an identifier for the layout resource to inflate when the ViewStub |
| 878 | becomes visible or when forced to do so. The layout resource must be a |
| 879 | valid reference to a layout. --> |
| 880 | <attr name="android:layout" /> |
| 881 | <!-- Overrides the id of the inflated View with this value. --> |
| 882 | <attr name="android:inflatedId" /> |
| 883 | <attr name="android:id" /> |
| 884 | </declare-styleable> |
| 885 | |
Kaikai Wang | 0bdd58a | 2014-10-29 10:19:47 -0700 | [diff] [blame] | 886 | <declare-styleable name="SwitchCompat"> |
| 887 | <!-- Drawable to use as the "thumb" that switches back and forth. --> |
| 888 | <attr name="android:thumb" /> |
| 889 | <!-- Drawable to use as the "track" that the switch thumb slides within. --> |
| 890 | <attr name="track" format="reference" /> |
| 891 | <!-- Text to use when the switch is in the checked/"on" state. --> |
| 892 | <attr name="android:textOn" /> |
| 893 | <!-- Text to use when the switch is in the unchecked/"off" state. --> |
| 894 | <attr name="android:textOff" /> |
| 895 | <!-- Amount of padding on either side of text within the switch thumb. --> |
| 896 | <attr name="thumbTextPadding" format="dimension" /> |
| 897 | <!-- TextAppearance style for text displayed on the switch thumb. --> |
| 898 | <attr name="switchTextAppearance" format="reference" /> |
| 899 | <!-- Minimum width for the switch component --> |
| 900 | <attr name="switchMinWidth" format="dimension" /> |
| 901 | <!-- Minimum space between the switch and caption text --> |
| 902 | <attr name="switchPadding" format="dimension" /> |
| 903 | <!-- Whether to split the track and leave a gap for the thumb drawable. --> |
| 904 | <attr name="splitTrack" format="boolean" /> |
| 905 | <!-- Whether to draw on/off text. --> |
| 906 | <attr name="showText" format="boolean" /> |
| 907 | </declare-styleable> |
| 908 | |
Qiwen Zhao | 03c19ce | 2015-03-09 12:01:13 -0700 | [diff] [blame] | 909 | <declare-styleable name="TextAppearance"> |
Kaikai Wang | 0bdd58a | 2014-10-29 10:19:47 -0700 | [diff] [blame] | 910 | <attr name="android:textSize" /> |
| 911 | <attr name="android:textColor" /> |
Kirill Grouchnikov | 3f66992 | 2015-01-26 15:10:45 -0500 | [diff] [blame] | 912 | <attr name="android:textStyle" /> |
| 913 | <attr name="android:typeface" /> |
Kaikai Wang | 0bdd58a | 2014-10-29 10:19:47 -0700 | [diff] [blame] | 914 | <attr name="textAllCaps" /> |
| 915 | </declare-styleable> |
| 916 | |
Qiwen Zhao | 03c19ce | 2015-03-09 12:01:13 -0700 | [diff] [blame] | 917 | <!-- The set of attributes that describe a AlertDialog's theme. --> |
| 918 | <declare-styleable name="AlertDialog"> |
| 919 | <attr name="android:layout" /> |
| 920 | <attr name="buttonPanelSideLayout" format="reference" /> |
| 921 | <attr name="listLayout" format="reference" /> |
| 922 | <attr name="multiChoiceItemLayout" format="reference" /> |
| 923 | <attr name="singleChoiceItemLayout" format="reference" /> |
| 924 | <attr name="listItemLayout" format="reference" /> |
| 925 | </declare-styleable> |
| 926 | |
Ying Wang | 1ee37af | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 927 | </resources> |