Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -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. --> |
Trevor Johns | 20ac724 | 2012-12-06 13:18:15 -0800 | [diff] [blame] | 25 | <eat-comment/> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 26 | |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [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. --> |
Chris Banes | a777694 | 2016-02-09 15:30:16 -0800 | [diff] [blame] | 34 | <declare-styleable name="AppCompatTheme"> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 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 | |
Chris Banes | 0f58401 | 2015-02-04 01:30:24 +0000 | [diff] [blame] | 45 | <!-- Flag indicating whether there should be no title on this window. --> |
| 46 | <attr name="windowNoTitle" format="boolean" /> |
| 47 | |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [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" /> |
Chris Banes | 56fd501 | 2013-11-06 15:24:22 +0000 | [diff] [blame] | 52 | |
Chris Banes | de9f38c | 2014-08-07 17:36:09 +0100 | [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 | |
Chris Banes | 56fd501 | 2013-11-06 15:24:22 +0000 | [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 | |
Chris Banes | 19eaf14 | 2015-02-04 23:39:54 +0000 | [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 | |
Chris Banes | 4c2a959 | 2014-08-01 15:26:43 +0100 | [diff] [blame] | 86 | <attr name="android:windowIsFloating" /> |
Chris Banes | 46dfe0c | 2014-11-03 10:47:19 +0000 | [diff] [blame] | 87 | <attr name="android:windowAnimationStyle" /> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 88 | |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [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" /> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 125 | </attr> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [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"/> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 136 | |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 137 | |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [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"/> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 164 | |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 165 | <!-- PopupWindow style to use for action modes when showing as a window overlay. --> |
| 166 | <attr name="actionModePopupWindowStyle" format="reference"/> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 167 | |
Chris Banes | 8180414 | 2013-05-22 09:55:42 +0100 | [diff] [blame] | 168 | |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [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"/> |
Chris Banes | 6142a54 | 2016-01-27 13:05:29 +0000 | [diff] [blame] | 177 | <!-- Text color, typeface, size, and style for header text inside of a popup menu. --> |
| 178 | <attr name="textAppearancePopupMenuHeader" format="reference" /> |
Trevor Johns | 2334427 | 2012-10-05 20:13:05 -0700 | [diff] [blame] | 179 | |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 180 | |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 181 | <!-- =================== --> |
Chris Banes | 16e8d4d | 2014-12-23 10:10:20 +0000 | [diff] [blame] | 182 | <!-- Dialog styles --> |
| 183 | <!-- =================== --> |
| 184 | <eat-comment /> |
| 185 | |
| 186 | <!-- Theme to use for dialogs spawned from this theme. --> |
| 187 | <attr name="dialogTheme" format="reference" /> |
| 188 | <!-- Preferred padding for dialog content. --> |
| 189 | <attr name="dialogPreferredPadding" format="dimension" /> |
Chris Banes | 19eaf14 | 2015-02-04 23:39:54 +0000 | [diff] [blame] | 190 | <!-- The list divider used in alert dialogs. --> |
| 191 | <attr name="listDividerAlertDialog" format="reference" /> |
Lucas Dupin | dd47d23 | 2017-11-17 11:34:34 -0800 | [diff] [blame] | 192 | <!-- Preferred corner radius of dialogs. --> |
| 193 | <attr name="dialogCornerRadius" format="dimension" /> |
Chris Banes | 16e8d4d | 2014-12-23 10:10:20 +0000 | [diff] [blame] | 194 | |
| 195 | <!-- =================== --> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 196 | <!-- Other widget styles --> |
| 197 | <!-- =================== --> |
| 198 | <eat-comment /> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 199 | |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 200 | <!-- Default ActionBar dropdown style. --> |
Chris Banes | 79e7a9e | 2013-03-01 14:48:09 +0000 | [diff] [blame] | 201 | <attr name="actionDropDownStyle" format="reference"/> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 202 | <!-- The preferred item height for dropdown lists. --> |
Trevor Johns | 20ac724 | 2012-12-06 13:18:15 -0800 | [diff] [blame] | 203 | <attr name="dropdownListPreferredItemHeight" format="dimension"/> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 204 | <!-- Default Spinner style. --> |
| 205 | <attr name="spinnerDropDownItemStyle" format="reference" /> |
| 206 | <!-- Specifies a drawable to use for the 'home as up' indicator. --> |
| 207 | <attr name="homeAsUpIndicator" format="reference"/> |
| 208 | |
| 209 | <!-- Default action button style. --> |
| 210 | <attr name="actionButtonStyle" format="reference"/> |
| 211 | |
Chris Banes | 6b80dd6 | 2015-01-29 17:35:09 +0000 | [diff] [blame] | 212 | <!-- Style for button bars --> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 213 | <attr name="buttonBarStyle" format="reference"/> |
Chris Banes | 6b80dd6 | 2015-01-29 17:35:09 +0000 | [diff] [blame] | 214 | <!-- Style for buttons within button bars --> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 215 | <attr name="buttonBarButtonStyle" format="reference"/> |
| 216 | <!-- A style that may be applied to buttons or other selectable items |
| 217 | that should react to pressed and focus states, but that do not |
| 218 | have a clear visual border along the edges. --> |
| 219 | <attr name="selectableItemBackground" format="reference"/> |
Chris Banes | d167dc4 | 2014-08-13 13:39:52 +0100 | [diff] [blame] | 220 | <!-- Background drawable for borderless standalone items that need focus/pressed states. --> |
| 221 | <attr name="selectableItemBackgroundBorderless" format="reference" /> |
Chris Banes | 1192454 | 2015-05-13 13:38:02 +0100 | [diff] [blame] | 222 | <!-- Style for buttons without an explicit border, often used in groups. --> |
| 223 | <attr name="borderlessButtonStyle" format="reference" /> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 224 | <!-- A drawable that may be used as a vertical divider between visual elements. --> |
| 225 | <attr name="dividerVertical" format="reference"/> |
| 226 | <!-- A drawable that may be used as a horizontal divider between visual elements. --> |
| 227 | <attr name="dividerHorizontal" format="reference"/> |
| 228 | <!-- Default ActivityChooserView style. --> |
| 229 | <attr name="activityChooserViewStyle" format="reference" /> |
| 230 | |
| 231 | <!-- Default Toolbar style. --> |
| 232 | <attr name="toolbarStyle" format="reference" /> |
| 233 | <!-- Default Toolar NavigationButtonStyle --> |
| 234 | <attr name="toolbarNavigationButtonStyle" format="reference" /> |
| 235 | |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 236 | <!-- Default PopupMenu style. --> |
Trevor Johns | 20ac724 | 2012-12-06 13:18:15 -0800 | [diff] [blame] | 237 | <attr name="popupMenuStyle" format="reference"/> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 238 | <!-- Default PopupWindow style. --> |
| 239 | <attr name="popupWindowStyle" format="reference" /> |
| 240 | |
Chris Banes | 968c593 | 2014-07-27 11:23:58 +0100 | [diff] [blame] | 241 | <!-- EditText text foreground color. --> |
| 242 | <attr name="editTextColor" format="reference|color" /> |
| 243 | <!-- EditText background drawable. --> |
| 244 | <attr name="editTextBackground" format="reference" /> |
| 245 | |
Chris Banes | e687450 | 2015-09-25 10:52:30 +0100 | [diff] [blame] | 246 | <!-- ImageButton background drawable. --> |
| 247 | <attr name="imageButtonStyle" format="reference" /> |
| 248 | |
Chris Banes | 1b01ce2 | 2014-07-24 16:45:25 +0100 | [diff] [blame] | 249 | <!-- ============================ --> |
| 250 | <!-- SearchView styles and assets --> |
| 251 | <!-- ============================ --> |
| 252 | <eat-comment /> |
Chris Banes | 1b01ce2 | 2014-07-24 16:45:25 +0100 | [diff] [blame] | 253 | <!-- Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. --> |
| 254 | <attr name="textAppearanceSearchResultTitle" format="reference" /> |
| 255 | <!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. --> |
| 256 | <attr name="textAppearanceSearchResultSubtitle" format="reference" /> |
| 257 | <!-- Text color for urls in search suggestions, used by things like global search --> |
| 258 | <attr name="textColorSearchUrl" format="reference|color" /> |
| 259 | <!-- Style for the search query widget. --> |
| 260 | <attr name="searchViewStyle" format="reference" /> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 261 | |
Chris Banes | 1b01ce2 | 2014-07-24 16:45:25 +0100 | [diff] [blame] | 262 | <!-- =========== --> |
| 263 | <!-- List styles --> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 264 | <!-- =========== --> |
| 265 | <eat-comment /> |
| 266 | |
| 267 | <!-- The preferred list item height. --> |
| 268 | <attr name="listPreferredItemHeight" format="dimension"/> |
| 269 | <!-- A smaller, sleeker list item height. --> |
| 270 | <attr name="listPreferredItemHeightSmall" format="dimension"/> |
| 271 | <!-- A larger, more robust list item height. --> |
| 272 | <attr name="listPreferredItemHeightLarge" format="dimension"/> |
| 273 | |
| 274 | <!-- The preferred padding along the left edge of list items. --> |
| 275 | <attr name="listPreferredItemPaddingLeft" format="dimension"/> |
| 276 | <!-- The preferred padding along the right edge of list items. --> |
| 277 | <attr name="listPreferredItemPaddingRight" format="dimension"/> |
| 278 | |
| 279 | <!-- ListPopupWindow compatibility --> |
| 280 | <attr name="dropDownListViewStyle" format="reference"/> |
| 281 | <attr name="listPopupWindowStyle" format="reference"/> |
| 282 | |
| 283 | <!-- The preferred TextAppearance for the primary text of list items. --> |
| 284 | <attr name="textAppearanceListItem" format="reference"/> |
Kirill Grouchnikov | 826d08e | 2017-03-16 16:29:20 -0400 | [diff] [blame] | 285 | <!-- The preferred TextAppearance for the secondary text of list items. --> |
| 286 | <attr name="textAppearanceListItemSecondary" format="reference" /> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 287 | <!-- The preferred TextAppearance for the primary text of small list items. --> |
| 288 | <attr name="textAppearanceListItemSmall" format="reference"/> |
| 289 | |
Chris Banes | eb686f8 | 2013-02-25 16:15:44 +0000 | [diff] [blame] | 290 | <!-- ============ --> |
| 291 | <!-- Panel styles --> |
| 292 | <!-- ============ --> |
| 293 | <eat-comment /> |
| 294 | |
Chris Banes | 57c6de9 | 2014-09-19 11:33:22 +0100 | [diff] [blame] | 295 | <!-- The background of a panel when it is inset from the left and right edges of the screen. --> |
| 296 | <attr name="panelBackground" format="reference" /> |
Chris Banes | d900fe0 | 2013-04-08 18:00:57 +0100 | [diff] [blame] | 297 | <!-- Default Panel Menu width. --> |
Chris Banes | eb686f8 | 2013-02-25 16:15:44 +0000 | [diff] [blame] | 298 | <attr name="panelMenuListWidth" format="dimension" /> |
Chris Banes | eb686f8 | 2013-02-25 16:15:44 +0000 | [diff] [blame] | 299 | <!-- Default Panel Menu style. --> |
| 300 | <attr name="panelMenuListTheme" format="reference" /> |
Chris Banes | 61cb91b | 2013-04-15 12:41:53 +0100 | [diff] [blame] | 301 | <!-- Drawable used as a background for selected list items. --> |
| 302 | <attr name="listChoiceBackgroundIndicator" format="reference" /> |
| 303 | |
Chris Banes | 13ab4aa | 2014-07-08 08:37:35 +0100 | [diff] [blame] | 304 | <!-- ============= --> |
| 305 | <!-- Color palette --> |
| 306 | <!-- ============= --> |
| 307 | <eat-comment /> |
| 308 | |
| 309 | <!-- The primary branding color for the app. By default, this is the color applied to the |
| 310 | action bar background. --> |
| 311 | <attr name="colorPrimary" format="color" /> |
| 312 | |
| 313 | <!-- Dark variant of the primary branding color. By default, this is the color applied to |
| 314 | the status bar (via statusBarColor) and navigation bar (via navigationBarColor). --> |
| 315 | <attr name="colorPrimaryDark" format="color" /> |
| 316 | |
| 317 | <!-- Bright complement to the primary branding color. By default, this is the color applied |
| 318 | to framework controls (via colorControlActivated). --> |
| 319 | <attr name="colorAccent" format="color" /> |
| 320 | |
| 321 | <!-- The color applied to framework controls in their normal state. --> |
| 322 | <attr name="colorControlNormal" format="color" /> |
| 323 | |
| 324 | <!-- The color applied to framework controls in their activated (ex. checked) state. --> |
| 325 | <attr name="colorControlActivated" format="color" /> |
| 326 | |
| 327 | <!-- The color applied to framework control highlights (ex. ripples, list selectors). --> |
| 328 | <attr name="colorControlHighlight" format="color" /> |
| 329 | |
| 330 | <!-- The color applied to framework buttons in their normal state. --> |
| 331 | <attr name="colorButtonNormal" format="color" /> |
| 332 | |
Chris Banes | 415f740 | 2014-09-22 11:49:54 +0100 | [diff] [blame] | 333 | <!-- The color applied to framework switch thumbs in their normal state. --> |
| 334 | <attr name="colorSwitchThumbNormal" format="color" /> |
| 335 | |
Chris Banes | b1131c6 | 2015-05-08 15:00:39 +0100 | [diff] [blame] | 336 | <!-- The background used by framework controls. --> |
| 337 | <attr name="controlBackground" format="reference" /> |
| 338 | |
Chris Banes | 593d8bc | 2016-02-22 17:04:33 +0000 | [diff] [blame] | 339 | <!-- Default color of background imagery for floating components, ex. dialogs, popups, and cards. --> |
| 340 | <attr name="colorBackgroundFloating" format="color" /> |
| 341 | |
Chris Banes | 19eaf14 | 2015-02-04 23:39:54 +0000 | [diff] [blame] | 342 | <!-- ============ --> |
| 343 | <!-- Alert Dialog styles --> |
| 344 | <!-- ============ --> |
| 345 | <eat-comment /> |
| 346 | <attr name="alertDialogStyle" format="reference" /> |
| 347 | <attr name="alertDialogButtonGroupStyle" format="reference" /> |
| 348 | <attr name="alertDialogCenterButtons" format="boolean" /> |
| 349 | <!-- Theme to use for alert dialogs spawned from this theme. --> |
| 350 | <attr name="alertDialogTheme" format="reference" /> |
| 351 | |
| 352 | <!-- Color of list item text in alert dialogs. --> |
| 353 | <attr name="textColorAlertDialogListItem" format="reference|color" /> |
| 354 | |
| 355 | <!-- Style for the "positive" buttons within button bars --> |
| 356 | <attr name="buttonBarPositiveButtonStyle" format="reference" /> |
| 357 | |
| 358 | <!-- Style for the "negative" buttons within button bars --> |
| 359 | <attr name="buttonBarNegativeButtonStyle" format="reference" /> |
| 360 | |
| 361 | <!-- Style for the "neutral" buttons within button bars --> |
| 362 | <attr name="buttonBarNeutralButtonStyle" format="reference" /> |
| 363 | |
Chris Banes | 2cccf60 | 2015-02-18 12:32:08 +0000 | [diff] [blame] | 364 | <!-- ===================== --> |
| 365 | <!-- Default widget styles --> |
| 366 | <!-- ===================== --> |
| 367 | <eat-comment /> |
| 368 | |
| 369 | <!-- Default AutoCompleteTextView style. --> |
| 370 | <attr name="autoCompleteTextViewStyle" format="reference" /> |
| 371 | <!-- Normal Button style. --> |
| 372 | <attr name="buttonStyle" format="reference" /> |
| 373 | <!-- Small Button style. --> |
| 374 | <attr name="buttonStyleSmall" format="reference" /> |
| 375 | <!-- Default Checkbox style. --> |
| 376 | <attr name="checkboxStyle" format="reference" /> |
| 377 | <!-- Default CheckedTextView style. --> |
| 378 | <attr name="checkedTextViewStyle" format="reference" /> |
| 379 | <!-- Default EditText style. --> |
| 380 | <attr name="editTextStyle" format="reference" /> |
| 381 | <!-- Default RadioButton style. --> |
| 382 | <attr name="radioButtonStyle" format="reference" /> |
| 383 | <!-- Default RatingBar style. --> |
| 384 | <attr name="ratingBarStyle" format="reference" /> |
Chris Banes | 7c8ba0f | 2015-12-10 15:51:38 +0000 | [diff] [blame] | 385 | <!-- Indicator RatingBar style. --> |
| 386 | <attr name="ratingBarStyleIndicator" format="reference" /> |
| 387 | <!-- Small indicator RatingBar style. --> |
| 388 | <attr name="ratingBarStyleSmall" format="reference" /> |
Chris Banes | 10e2dbc | 2015-05-08 13:49:25 +0100 | [diff] [blame] | 389 | <!-- Default SeekBar style. --> |
| 390 | <attr name="seekBarStyle" format="reference" /> |
Chris Banes | 2cccf60 | 2015-02-18 12:32:08 +0000 | [diff] [blame] | 391 | <!-- Default Spinner style. --> |
| 392 | <attr name="spinnerStyle" format="reference" /> |
| 393 | <!-- Default style for the Switch widget. --> |
| 394 | <attr name="switchStyle" format="reference" /> |
| 395 | |
Chris Banes | 6142a54 | 2016-01-27 13:05:29 +0000 | [diff] [blame] | 396 | <!-- Default menu-style ListView style. --> |
| 397 | <attr name="listMenuViewStyle" format="reference" /> |
Vladislav Kaznacheev | a4c6825 | 2017-03-03 13:09:06 -0800 | [diff] [blame] | 398 | |
| 399 | <!-- ===================== --> |
| 400 | <!-- Tooltip styles --> |
| 401 | <!-- ===================== --> |
| 402 | <eat-comment /> |
| 403 | |
| 404 | <!-- Background to use for tooltips --> |
| 405 | <attr name="tooltipFrameBackground" format="reference" /> |
| 406 | <!-- Foreground color to use for tooltips --> |
| 407 | <attr name="tooltipForegroundColor" format="reference|color" /> |
Kirill Grouchnikov | be551c4 | 2017-04-18 11:39:27 -0400 | [diff] [blame] | 408 | |
Kirill Grouchnikov | f055439 | 2017-04-20 12:08:17 -0400 | [diff] [blame] | 409 | <!-- Color used for error states and things that need to be drawn to |
| 410 | the user's attention. --> |
| 411 | <attr name="colorError" format="reference|color" /> |
Kirill Grouchnikov | 3f27daa | 2017-10-13 17:04:40 -0400 | [diff] [blame] | 412 | |
| 413 | <attr name="viewInflaterClass" format="string" /> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 414 | </declare-styleable> |
| 415 | |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 416 | |
| 417 | <!-- ============================================ --> |
| 418 | |
| 419 | <!-- Attributes used to style the Action Bar. |
| 420 | These should be set on your theme; the default actionBarStyle will |
| 421 | propagate them to the correct elements as needed. |
| 422 | |
| 423 | Please Note: when overriding attributes for an ActionBar style |
| 424 | you must specify each attribute twice: once with the "android:" |
| 425 | namespace prefix and once without. --> |
| 426 | <declare-styleable name="ActionBar"> |
| 427 | <!-- The type of navigation to use. --> |
| 428 | <attr name="navigationMode"> |
| 429 | <!-- Normal static title text --> |
| 430 | <enum name="normal" value="0"/> |
| 431 | <!-- The action bar will use a selection list for navigation. --> |
| 432 | <enum name="listMode" value="1"/> |
| 433 | <!-- The action bar will use a series of horizontal tabs for navigation. --> |
| 434 | <enum name="tabMode" value="2"/> |
| 435 | </attr> |
| 436 | <!-- Options affecting how the action bar is displayed. --> |
| 437 | <attr name="displayOptions"> |
| 438 | <flag name="none" value="0" /> |
| 439 | <flag name="useLogo" value="0x1"/> |
| 440 | <flag name="showHome" value="0x2"/> |
| 441 | <flag name="homeAsUp" value="0x4"/> |
| 442 | <flag name="showTitle" value="0x8"/> |
| 443 | <flag name="showCustom" value="0x10"/> |
| 444 | <flag name="disableHome" value="0x20"/> |
| 445 | </attr> |
| 446 | <!-- Specifies title text used for navigationMode="normal" --> |
| 447 | <attr name="title"/> |
| 448 | <!-- Specifies subtitle text used for navigationMode="normal" --> |
| 449 | <attr name="subtitle" format="string"/> |
| 450 | <!-- Specifies a style to use for title text. --> |
| 451 | <attr name="titleTextStyle" format="reference"/> |
| 452 | <!-- Specifies a style to use for subtitle text. --> |
| 453 | <attr name="subtitleTextStyle" format="reference"/> |
| 454 | <!-- Specifies the drawable used for the application icon. --> |
| 455 | <attr name="icon" format="reference"/> |
| 456 | <!-- Specifies the drawable used for the application logo. --> |
| 457 | <attr name="logo" format="reference"/> |
| 458 | <!-- Specifies the drawable used for item dividers. --> |
| 459 | <attr name="divider" format="reference"/> |
| 460 | <!-- Specifies a background drawable for the action bar. --> |
| 461 | <attr name="background" format="reference"/> |
| 462 | <!-- Specifies a background drawable for a second stacked row of the action bar. --> |
| 463 | <attr name="backgroundStacked" format="reference|color"/> |
| 464 | <!-- Specifies a background drawable for the bottom component of a split action bar. --> |
| 465 | <attr name="backgroundSplit" format="reference|color"/> |
| 466 | <!-- Specifies a layout for custom navigation. Overrides navigationMode. --> |
| 467 | <attr name="customNavigationLayout" format="reference"/> |
| 468 | <!-- Specifies a fixed height. --> |
| 469 | <attr name="height"/> |
| 470 | <!-- Specifies a layout to use for the "home" section of the action bar. --> |
| 471 | <attr name="homeLayout" format="reference"/> |
| 472 | <!-- Specifies a style resource to use for an embedded progress bar. --> |
| 473 | <attr name="progressBarStyle" format="reference"/> |
| 474 | <!-- Specifies a style resource to use for an indeterminate progress spinner. --> |
| 475 | <attr name="indeterminateProgressStyle" format="reference"/> |
| 476 | <!-- Specifies the horizontal padding on either end for an embedded progress bar. --> |
| 477 | <attr name="progressBarPadding" format="dimension"/> |
| 478 | <!-- Up navigation glyph --> |
| 479 | <attr name="homeAsUpIndicator" /> |
| 480 | <!-- Specifies padding that should be applied to the left and right sides of |
| 481 | system-provided items in the bar. --> |
| 482 | <attr name="itemPadding" format="dimension"/> |
| 483 | <!-- Set true to hide the action bar on a vertical nested scroll of content. --> |
| 484 | <attr name="hideOnContentScroll" format="boolean"/> |
| 485 | <!-- Minimum inset for content views within a bar. Navigation buttons and |
| 486 | menu views are excepted. Only valid for some themes and configurations. --> |
| 487 | <attr name="contentInsetStart" format="dimension"/> |
| 488 | <!-- Minimum inset for content views within a bar. Navigation buttons and |
| 489 | menu views are excepted. Only valid for some themes and configurations. --> |
| 490 | <attr name="contentInsetEnd" format="dimension"/> |
| 491 | <!-- Minimum inset for content views within a bar. Navigation buttons and |
| 492 | menu views are excepted. Only valid for some themes and configurations. --> |
| 493 | <attr name="contentInsetLeft" format="dimension"/> |
| 494 | <!-- Minimum inset for content views within a bar. Navigation buttons and |
| 495 | menu views are excepted. Only valid for some themes and configurations. --> |
| 496 | <attr name="contentInsetRight" format="dimension"/> |
Adam Powell | 62d19a6 | 2016-03-28 11:12:24 -0700 | [diff] [blame] | 497 | <!-- Minimum inset for content views within a bar when a navigation button |
| 498 | is present, such as the Up button. Only valid for some themes and configurations. --> |
| 499 | <attr name="contentInsetStartWithNavigation" format="dimension" /> |
| 500 | <!-- Minimum inset for content views within a bar when actions from a menu |
| 501 | are present. Only valid for some themes and configurations. --> |
| 502 | <attr name="contentInsetEndWithActions" format="dimension" /> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 503 | <!-- Elevation for the action bar itself --> |
| 504 | <attr name="elevation" format="dimension" /> |
Chris Banes | 61c0bbe | 2014-07-31 14:21:02 +0100 | [diff] [blame] | 505 | <!-- Reference to a theme that should be used to inflate popups |
| 506 | shown by widgets in the action bar. --> |
| 507 | <attr name="popupTheme" format="reference" /> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 508 | </declare-styleable> |
| 509 | |
| 510 | <!-- Valid LayoutParams for views placed in the action bar as custom views. --> |
| 511 | <declare-styleable name="ActionBarLayout"> |
| 512 | <attr name="android:layout_gravity"/> |
| 513 | </declare-styleable> |
| 514 | |
| 515 | <declare-styleable name="ActionMenuItemView"> |
| 516 | <attr name="android:minWidth"/> |
| 517 | </declare-styleable> |
| 518 | |
| 519 | <declare-styleable name="ActionMode"> |
| 520 | <!-- Specifies a style to use for title text. --> |
| 521 | <attr name="titleTextStyle"/> |
| 522 | <!-- Specifies a style to use for subtitle text. --> |
| 523 | <attr name="subtitleTextStyle"/> |
| 524 | <!-- Specifies a background for the action mode bar. --> |
| 525 | <attr name="background"/> |
| 526 | <!-- Specifies a background for the split action mode bar. --> |
| 527 | <attr name="backgroundSplit"/> |
| 528 | <!-- Specifies a fixed height for the action mode bar. --> |
| 529 | <attr name="height"/> |
Chris Banes | 156b08e | 2014-09-05 12:08:03 +0100 | [diff] [blame] | 530 | <!-- Specifies a layout to use for the "close" item at the starting edge. --> |
| 531 | <attr name="closeItemLayout" format="reference" /> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 532 | </declare-styleable> |
| 533 | |
| 534 | <declare-styleable name="View"> |
| 535 | <!-- Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. --> |
| 536 | <attr name="paddingStart" format="dimension"/> |
| 537 | <!-- Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. --> |
| 538 | <attr name="paddingEnd" format="dimension"/> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 539 | <!-- Boolean that controls whether a view can take focus. By default the user can not |
| 540 | move focus to a view; by setting this attribute to true the view is |
| 541 | allowed to take focus. This value does not impact the behavior of |
| 542 | directly calling {@link android.view.View#requestFocus}, which will |
| 543 | always request focus regardless of this view. It only impacts where |
| 544 | focus navigation will try to move focus. --> |
| 545 | <attr name="android:focusable" /> |
Chris Banes | fd1eb27 | 2014-10-24 13:07:51 +0100 | [diff] [blame] | 546 | <!-- Deprecated. --> |
| 547 | <attr name="theme" format="reference" /> |
Chris Banes | fd1eb27 | 2014-10-24 13:07:51 +0100 | [diff] [blame] | 548 | <!-- Specifies a theme override for a view. When a theme override is set, the |
| 549 | view will be inflated using a {@link android.content.Context} themed with |
| 550 | the specified resource. --> |
| 551 | <attr name="android:theme" /> |
Chris Banes | 091b0f9 | 2015-05-06 19:13:34 +0100 | [diff] [blame] | 552 | </declare-styleable> |
Chris Banes | fd1eb27 | 2014-10-24 13:07:51 +0100 | [diff] [blame] | 553 | |
Chris Banes | 091b0f9 | 2015-05-06 19:13:34 +0100 | [diff] [blame] | 554 | <declare-styleable name="ViewBackgroundHelper"> |
| 555 | <attr name="android:background" /> |
Chris Banes | 9840efe | 2015-01-06 14:02:01 +0000 | [diff] [blame] | 556 | <!-- Tint to apply to the background. --> |
| 557 | <attr name="backgroundTint" format="color" /> |
| 558 | |
| 559 | <!-- Blending mode used to apply the background tint. --> |
| 560 | <attr name="backgroundTintMode"> |
| 561 | <!-- The tint is drawn on top of the drawable. |
| 562 | [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> |
| 563 | <enum name="src_over" value="3" /> |
| 564 | <!-- The tint is masked by the alpha channel of the drawable. The drawable’s |
| 565 | color channels are thrown out. [Sa * Da, Sc * Da] --> |
| 566 | <enum name="src_in" value="5" /> |
| 567 | <!-- The tint is drawn above the drawable, but with the drawable’s alpha |
| 568 | channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> |
| 569 | <enum name="src_atop" value="9" /> |
| 570 | <!-- Multiplies the color and alpha channels of the drawable with those of |
| 571 | the tint. [Sa * Da, Sc * Dc] --> |
| 572 | <enum name="multiply" value="14" /> |
| 573 | <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> |
| 574 | <enum name="screen" value="15" /> |
Kamal Faraj | 4076f7b | 2017-09-01 16:17:55 +0200 | [diff] [blame] | 575 | <!-- Combines the tint and icon color and alpha channels, clamping the |
| 576 | result to valid color values. Saturate(S + D) --> |
| 577 | <enum name="add" value="16" /> |
Chris Banes | 9840efe | 2015-01-06 14:02:01 +0000 | [diff] [blame] | 578 | </attr> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 579 | </declare-styleable> |
| 580 | |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 581 | <declare-styleable name="MenuView"> |
| 582 | <!-- Default appearance of menu item text. --> |
Trevor Johns | 8262949 | 2013-01-10 18:11:19 -0800 | [diff] [blame] | 583 | <attr name="android:itemTextAppearance"/> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 584 | <!-- Default horizontal divider between rows of menu items. --> |
Trevor Johns | 8262949 | 2013-01-10 18:11:19 -0800 | [diff] [blame] | 585 | <attr name="android:horizontalDivider"/> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 586 | <!-- Default vertical divider between menu items. --> |
Trevor Johns | 8262949 | 2013-01-10 18:11:19 -0800 | [diff] [blame] | 587 | <attr name="android:verticalDivider"/> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 588 | <!-- Default background for the menu header. --> |
Trevor Johns | 8262949 | 2013-01-10 18:11:19 -0800 | [diff] [blame] | 589 | <attr name="android:headerBackground"/> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 590 | <!-- Default background for each menu item. --> |
Trevor Johns | 8262949 | 2013-01-10 18:11:19 -0800 | [diff] [blame] | 591 | <attr name="android:itemBackground"/> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 592 | <!-- Default animations for the menu. --> |
Trevor Johns | 8262949 | 2013-01-10 18:11:19 -0800 | [diff] [blame] | 593 | <attr name="android:windowAnimationStyle"/> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 594 | <!-- Default disabled icon alpha for each menu item that shows an icon. --> |
Trevor Johns | 8262949 | 2013-01-10 18:11:19 -0800 | [diff] [blame] | 595 | <attr name="android:itemIconDisabledAlpha"/> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 596 | <!-- Whether space should be reserved in layout when an icon is missing. --> |
Chris Banes | 692b704 | 2014-09-17 18:39:59 +0100 | [diff] [blame] | 597 | <attr name="preserveIconSpacing" format="boolean" /> |
Chris Banes | 6142a54 | 2016-01-27 13:05:29 +0000 | [diff] [blame] | 598 | <!-- Drawable for the arrow icon indicating a particular item is a submenu. --> |
| 599 | <attr name="subMenuArrow" format="reference" /> |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 600 | </declare-styleable> |
| 601 | <declare-styleable name="ActionMenuView"> |
| 602 | <!-- Size of padding on either end of a divider. --> |
| 603 | </declare-styleable> |
| 604 | |
Trevor Johns | 8262949 | 2013-01-10 18:11:19 -0800 | [diff] [blame] | 605 | <!-- Base attributes that are available to all groups. --> |
| 606 | <declare-styleable name="MenuGroup"> |
| 607 | |
| 608 | <!-- The ID of the group. --> |
| 609 | <attr name="android:id" /> |
| 610 | |
| 611 | <!-- The category applied to all items within this group. |
| 612 | (This will be or'ed with the orderInCategory attribute.) --> |
| 613 | <attr name="android:menuCategory" /> |
| 614 | |
| 615 | <!-- The order within the category applied to all items within this group. |
| 616 | (This will be or'ed with the category attribute.) --> |
| 617 | <attr name="android:orderInCategory" /> |
| 618 | |
| 619 | <!-- Whether the items are capable of displaying a check mark. --> |
| 620 | <attr name="android:checkableBehavior" /> |
| 621 | |
| 622 | <!-- Whether the items are shown/visible. --> |
| 623 | <attr name="android:visible" /> |
| 624 | |
| 625 | <!-- Whether the items are enabled. --> |
| 626 | <attr name="android:enabled" /> |
| 627 | |
| 628 | </declare-styleable> |
| 629 | |
| 630 | <!-- Base attributes that are available to all Item objects. --> |
| 631 | <declare-styleable name="MenuItem"> |
| 632 | |
| 633 | <!-- The ID of the item. --> |
| 634 | <attr name="android:id" /> |
| 635 | |
| 636 | <!-- The category applied to the item. |
| 637 | (This will be or'ed with the orderInCategory attribute.) --> |
| 638 | <attr name="android:menuCategory" /> |
| 639 | |
| 640 | <!-- The order within the category applied to the item. |
| 641 | (This will be or'ed with the category attribute.) --> |
| 642 | <attr name="android:orderInCategory" /> |
| 643 | |
| 644 | <!-- The title associated with the item. --> |
| 645 | <attr name="android:title" /> |
| 646 | |
| 647 | <!-- The condensed title associated with the item. This is used in situations where the |
| 648 | normal title may be too long to be displayed. --> |
| 649 | <attr name="android:titleCondensed" /> |
| 650 | |
| 651 | <!-- The icon associated with this item. This icon will not always be shown, so |
| 652 | the title should be sufficient in describing this item. --> |
| 653 | <attr name="android:icon" /> |
| 654 | |
| 655 | <!-- The alphabetic shortcut key. This is the shortcut when using a keyboard |
| 656 | with alphabetic keys. --> |
| 657 | <attr name="android:alphabeticShortcut" /> |
| 658 | |
Peeyush Agarwal | 09231da | 2016-10-27 15:11:42 +0100 | [diff] [blame] | 659 | <!-- The alphabetic modifier key. This is the modifier when using a keyboard |
| 660 | with alphabetic keys. The values should be kept in sync with KeyEvent --> |
| 661 | <attr name="alphabeticModifiers"> |
| 662 | <flag name="META" value="0x10000" /> |
| 663 | <flag name="CTRL" value="0x1000" /> |
| 664 | <flag name="ALT" value="0x02" /> |
| 665 | <flag name="SHIFT" value="0x1" /> |
| 666 | <flag name="SYM" value="0x4" /> |
| 667 | <flag name="FUNCTION" value="0x8" /> |
| 668 | </attr> |
| 669 | |
Trevor Johns | 8262949 | 2013-01-10 18:11:19 -0800 | [diff] [blame] | 670 | <!-- The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key) |
| 671 | keyboard. --> |
| 672 | <attr name="android:numericShortcut" /> |
| 673 | |
Peeyush Agarwal | 09231da | 2016-10-27 15:11:42 +0100 | [diff] [blame] | 674 | <!-- The numeric modifier key. This is the modifier when using a numeric (e.g., 12-key) |
| 675 | keyboard. The values should be kept in sync with KeyEvent --> |
| 676 | <attr name="numericModifiers"> |
| 677 | <flag name="META" value="0x10000" /> |
| 678 | <flag name="CTRL" value="0x1000" /> |
| 679 | <flag name="ALT" value="0x02" /> |
| 680 | <flag name="SHIFT" value="0x1" /> |
| 681 | <flag name="SYM" value="0x4" /> |
| 682 | <flag name="FUNCTION" value="0x8" /> |
| 683 | </attr> |
| 684 | |
Trevor Johns | 8262949 | 2013-01-10 18:11:19 -0800 | [diff] [blame] | 685 | <!-- Whether the item is capable of displaying a check mark. --> |
| 686 | <attr name="android:checkable" /> |
| 687 | |
| 688 | <!-- Whether the item is checked. Note that you must first have enabled checking with |
| 689 | the checkable attribute or else the check mark will not appear. --> |
| 690 | <attr name="android:checked" /> |
| 691 | |
| 692 | <!-- Whether the item is shown/visible. --> |
| 693 | <attr name="android:visible" /> |
| 694 | |
| 695 | <!-- Whether the item is enabled. --> |
| 696 | <attr name="android:enabled" /> |
| 697 | |
| 698 | <!-- Name of a method on the Context used to inflate the menu that will be |
| 699 | called when the item is clicked. --> |
| 700 | <attr name="android:onClick" /> |
| 701 | |
| 702 | <!-- How this item should display in the Action Bar, if present. --> |
| 703 | <attr name="showAsAction"> |
| 704 | <!-- Never show this item in an action bar, show it in the overflow menu instead. |
| 705 | Mutually exclusive with "ifRoom" and "always". --> |
| 706 | <flag name="never" value="0" /> |
| 707 | <!-- Show this item in an action bar if there is room for it as determined |
| 708 | by the system. Favor this option over "always" where possible. |
| 709 | Mutually exclusive with "never" and "always". --> |
| 710 | <flag name="ifRoom" value="1" /> |
| 711 | <!-- Always show this item in an actionbar, even if it would override |
| 712 | the system's limits of how much stuff to put there. This may make |
| 713 | your action bar look bad on some screens. In most cases you should |
| 714 | use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". --> |
| 715 | <flag name="always" value="2" /> |
| 716 | <!-- When this item is shown as an action in the action bar, show a text |
| 717 | label with it even if it has an icon representation. --> |
| 718 | <flag name="withText" value="4" /> |
| 719 | <!-- This item's action view collapses to a normal menu |
| 720 | item. When expanded, the action view takes over a |
| 721 | larger segment of its container. --> |
| 722 | <flag name="collapseActionView" value="8" /> |
| 723 | </attr> |
| 724 | |
| 725 | <!-- An optional layout to be used as an action view. |
| 726 | See {@link android.view.MenuItem#setActionView(android.view.View)} |
| 727 | for more info. --> |
| 728 | <attr name="actionLayout" format="reference" /> |
| 729 | |
| 730 | <!-- The name of an optional View class to instantiate and use as an |
| 731 | action view. See {@link android.view.MenuItem#setActionView(android.view.View)} |
| 732 | for more info. --> |
| 733 | <attr name="actionViewClass" format="string" /> |
| 734 | |
| 735 | <!-- The name of an optional ActionProvider class to instantiate an action view |
| 736 | and perform operations such as default action for that menu item. |
| 737 | See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)} |
| 738 | for more info. --> |
| 739 | <attr name="actionProviderClass" format="string" /> |
| 740 | |
Vladislav Kaznacheev | fd3c456 | 2017-01-25 18:27:47 +0000 | [diff] [blame] | 741 | <!-- The content description associated with the item. --> |
| 742 | <attr name="contentDescription" format="string"/> |
| 743 | |
| 744 | <!-- The tooltip text associated with the item. --> |
| 745 | <attr name="tooltipText" format="string"/> |
| 746 | |
Kirill Grouchnikov | 3a7c6d2 | 2017-04-10 16:54:23 -0400 | [diff] [blame] | 747 | <!-- Tint to apply to the icon. --> |
| 748 | <attr name="iconTint" format="color" /> |
| 749 | |
| 750 | <!-- Blending mode used to apply the icon tint. --> |
| 751 | <attr name="iconTintMode"> |
| 752 | <!-- The tint is drawn on top of the icon. |
| 753 | [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> |
| 754 | <enum name="src_over" value="3" /> |
| 755 | <!-- The tint is masked by the alpha channel of the icon. The icon’s |
| 756 | color channels are thrown out. [Sa * Da, Sc * Da] --> |
| 757 | <enum name="src_in" value="5" /> |
| 758 | <!-- The tint is drawn above the icon, but with the icon’s alpha |
| 759 | channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> |
| 760 | <enum name="src_atop" value="9" /> |
| 761 | <!-- Multiplies the color and alpha channels of the icon with those of |
| 762 | the tint. [Sa * Da, Sc * Dc] --> |
| 763 | <enum name="multiply" value="14" /> |
| 764 | <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> |
| 765 | <enum name="screen" value="15" /> |
| 766 | <!-- Combines the tint and icon color and alpha channels, clamping the |
| 767 | result to valid color values. Saturate(S + D) --> |
| 768 | <enum name="add" value="16" /> |
| 769 | </attr> |
| 770 | |
Trevor Johns | 8262949 | 2013-01-10 18:11:19 -0800 | [diff] [blame] | 771 | </declare-styleable> |
| 772 | |
Chris Banes | 79e7a9e | 2013-03-01 14:48:09 +0000 | [diff] [blame] | 773 | <declare-styleable name="Spinner"> |
| 774 | <!-- The prompt to display when the spinner's dialog is shown. --> |
Chris Banes | f933672 | 2015-04-28 16:15:24 +0100 | [diff] [blame] | 775 | <attr name="android:prompt" /> |
| 776 | <!-- Theme to use for the drop-down or dialog popup window. --> |
| 777 | <attr name="popupTheme" /> |
Chris Banes | 79e7a9e | 2013-03-01 14:48:09 +0000 | [diff] [blame] | 778 | <!-- Background drawable to use for the dropdown in spinnerMode="dropdown". --> |
| 779 | <attr name="android:popupBackground" /> |
Chris Banes | 79e7a9e | 2013-03-01 14:48:09 +0000 | [diff] [blame] | 780 | <!-- Width of the dropdown in spinnerMode="dropdown". --> |
| 781 | <attr name="android:dropDownWidth" /> |
Chris Banes | 98e3c72 | 2015-10-22 10:24:58 +0100 | [diff] [blame] | 782 | <!-- Reference to an array resource that will populate the Spinner. --> |
| 783 | <attr name="android:entries" /> |
Chris Banes | 79e7a9e | 2013-03-01 14:48:09 +0000 | [diff] [blame] | 784 | </declare-styleable> |
| 785 | |
Chris Banes | 8180414 | 2013-05-22 09:55:42 +0100 | [diff] [blame] | 786 | <declare-styleable name="SearchView"> |
Chris Banes | 1b01ce2 | 2014-07-24 16:45:25 +0100 | [diff] [blame] | 787 | <!-- The layout to use for the search view. --> |
| 788 | <attr name="layout" format="reference" /> |
Chris Banes | 8180414 | 2013-05-22 09:55:42 +0100 | [diff] [blame] | 789 | <!-- The default state of the SearchView. If true, it will be iconified when not in |
| 790 | use and expanded when clicked. --> |
Chris Banes | 1b01ce2 | 2014-07-24 16:45:25 +0100 | [diff] [blame] | 791 | <attr name="iconifiedByDefault" format="boolean" /> |
Chris Banes | 8180414 | 2013-05-22 09:55:42 +0100 | [diff] [blame] | 792 | <!-- An optional maximum width of the SearchView. --> |
| 793 | <attr name="android:maxWidth" /> |
Chris Banes | ecd75f2 | 2015-04-27 10:44:00 +0100 | [diff] [blame] | 794 | <!-- An optional user-defined query hint string to be displayed in the empty query field. --> |
Chris Banes | 8180414 | 2013-05-22 09:55:42 +0100 | [diff] [blame] | 795 | <attr name="queryHint" format="string" /> |
Chris Banes | ecd75f2 | 2015-04-27 10:44:00 +0100 | [diff] [blame] | 796 | <!-- Default query hint used when {@code queryHint} is undefined and |
| 797 | the search view's {@code SearchableInfo} does not provide a hint. --> |
| 798 | <attr name="defaultQueryHint" format="string" /> |
Chris Banes | 8180414 | 2013-05-22 09:55:42 +0100 | [diff] [blame] | 799 | <!-- The IME options to set on the query text field. --> |
| 800 | <attr name="android:imeOptions" /> |
| 801 | <!-- The input type to set on the query text field. --> |
| 802 | <attr name="android:inputType" /> |
Chris Banes | 1b01ce2 | 2014-07-24 16:45:25 +0100 | [diff] [blame] | 803 | <!-- Close button icon --> |
| 804 | <attr name="closeIcon" format="reference" /> |
| 805 | <!-- Go button icon --> |
| 806 | <attr name="goIcon" format="reference" /> |
| 807 | <!-- Search icon --> |
| 808 | <attr name="searchIcon" format="reference" /> |
Chris Banes | cc489cd | 2014-11-20 11:00:42 +0000 | [diff] [blame] | 809 | <!-- Search icon displayed as a text field hint --> |
| 810 | <attr name="searchHintIcon" format="reference" /> |
Chris Banes | 1b01ce2 | 2014-07-24 16:45:25 +0100 | [diff] [blame] | 811 | <!-- Voice button icon --> |
| 812 | <attr name="voiceIcon" format="reference" /> |
| 813 | <!-- Commit icon shown in the query suggestion row --> |
| 814 | <attr name="commitIcon" format="reference" /> |
| 815 | <!-- Layout for query suggestion rows --> |
| 816 | <attr name="suggestionRowLayout" format="reference" /> |
| 817 | <!-- Background for the section containing the search query --> |
| 818 | <attr name="queryBackground" format="reference" /> |
| 819 | <!-- Background for the section containing the action (e.g. voice search) --> |
| 820 | <attr name="submitBackground" format="reference" /> |
Adam Powell | 6912ef4 | 2014-09-03 19:38:38 -0700 | [diff] [blame] | 821 | <attr name="android:focusable" /> |
Chris Banes | 8180414 | 2013-05-22 09:55:42 +0100 | [diff] [blame] | 822 | </declare-styleable> |
| 823 | |
Chris Banes | e290ed3 | 2013-05-25 12:26:32 +0100 | [diff] [blame] | 824 | <!-- Attrbitutes for a ActivityChooserView. --> |
| 825 | <declare-styleable name="ActivityChooserView"> |
| 826 | <!-- The maximal number of items initially shown in the activity list. --> |
| 827 | <attr name="initialActivityCount" format="string" /> |
| 828 | <!-- The drawable to show in the button for expanding the activities overflow popup. |
| 829 | <strong>Note:</strong> Clients would like to set this drawable |
| 830 | as a clue about the action the chosen activity will perform. For |
| 831 | example, if share activity is to be chosen the drawable should |
| 832 | give a clue that sharing is to be performed. |
| 833 | --> |
| 834 | <attr name="expandActivityOverflowButtonDrawable" format="reference" /> |
| 835 | </declare-styleable> |
| 836 | |
Chris Banes | 2cccf60 | 2015-02-18 12:32:08 +0000 | [diff] [blame] | 837 | <declare-styleable name="AppCompatTextView"> |
Chris Banes | 8920823 | 2013-05-31 13:36:59 +0100 | [diff] [blame] | 838 | <!-- Present the text in ALL CAPS. This may use a small-caps form when available. --> |
| 839 | <attr name="textAllCaps" format="reference|boolean" /> |
Chris Banes | 320c3e9 | 2015-01-28 11:22:57 +0000 | [diff] [blame] | 840 | <attr name="android:textAppearance" /> |
Andrei Stingaceanu | 41ce347 | 2017-03-17 14:56:40 +0000 | [diff] [blame] | 841 | <!-- Specify the type of auto-size. Note that this feature is not supported by EditText, |
| 842 | works only for TextView. --> |
| 843 | <attr name="autoSizeTextType" format="enum"> |
| 844 | <!-- No auto-sizing (default). --> |
| 845 | <enum name="none" value="0" /> |
| 846 | <!-- Uniform horizontal and vertical text size scaling to fit within the |
| 847 | container. --> |
| 848 | <enum name="uniform" value="1" /> |
| 849 | </attr> |
| 850 | <!-- Specify the auto-size step size if <code>autoSizeTextType</code> is set to |
| 851 | <code>uniform</code>. The default is 1px. Overwrites |
| 852 | <code>autoSizePresetSizes</code> if set. --> |
| 853 | <attr name="autoSizeStepGranularity" format="dimension" /> |
| 854 | <!-- Resource array of dimensions to be used in conjunction with |
| 855 | <code>autoSizeTextType</code> set to <code>uniform</code>. Overrides |
| 856 | <code>autoSizeStepGranularity</code> if set. --> |
| 857 | <attr name="autoSizePresetSizes" format="reference"/> |
| 858 | <!-- The minimum text size constraint to be used when auto-sizing text. --> |
| 859 | <attr name="autoSizeMinTextSize" format="dimension" /> |
| 860 | <!-- The maximum text size constraint to be used when auto-sizing text. --> |
| 861 | <attr name="autoSizeMaxTextSize" format="dimension" /> |
Seigo Nonaka | b92b7c8 | 2017-05-10 17:49:54 -0700 | [diff] [blame] | 862 | <!-- The attribute for the font family. --> |
| 863 | <attr name="fontFamily" format="string" /> |
Chris Banes | 8920823 | 2013-05-31 13:36:59 +0100 | [diff] [blame] | 864 | </declare-styleable> |
| 865 | |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 866 | <declare-styleable name="LinearLayoutCompat"> |
| 867 | <!-- Should the layout be a column or a row? Use "horizontal" |
| 868 | for a row, "vertical" for a column. The default is |
| 869 | horizontal. --> |
| 870 | <attr name="android:orientation" /> |
| 871 | <attr name="android:gravity" /> |
| 872 | <!-- When set to false, prevents the layout from aligning its children's |
| 873 | baselines. This attribute is particularly useful when the children |
| 874 | use different values for gravity. The default value is true. --> |
| 875 | <attr name="android:baselineAligned" /> |
| 876 | <!-- When a linear layout is part of another layout that is baseline |
| 877 | aligned, it can specify which of its children to baseline align to |
| 878 | (that is, which child TextView).--> |
| 879 | <attr name="android:baselineAlignedChildIndex" /> |
| 880 | <!-- Defines the maximum weight sum. If unspecified, the sum is computed |
| 881 | by adding the layout_weight of all of the children. This can be |
| 882 | used for instance to give a single child 50% of the total available |
| 883 | space by giving it a layout_weight of 0.5 and setting the weightSum |
| 884 | to 1.0. --> |
| 885 | <attr name="android:weightSum" /> |
| 886 | <!-- When set to true, all children with a weight will be considered having |
| 887 | the minimum size of the largest child. If false, all children are |
| 888 | measured normally. --> |
| 889 | <attr name="measureWithLargestChild" format="boolean" /> |
| 890 | <!-- Drawable to use as a vertical divider between buttons. --> |
| 891 | <attr name="divider" /> |
| 892 | <!-- Setting for which dividers to show. --> |
| 893 | <attr name="showDividers"> |
| 894 | <flag name="none" value="0" /> |
| 895 | <flag name="beginning" value="1" /> |
| 896 | <flag name="middle" value="2" /> |
| 897 | <flag name="end" value="4" /> |
| 898 | </attr> |
| 899 | <!-- Size of padding on either end of a divider. --> |
| 900 | <attr name="dividerPadding" format="dimension" /> |
| 901 | </declare-styleable> |
| 902 | |
| 903 | <declare-styleable name="LinearLayoutCompat_Layout"> |
| 904 | <attr name="android:layout_width" /> |
| 905 | <attr name="android:layout_height" /> |
| 906 | <attr name="android:layout_weight" /> |
| 907 | <attr name="android:layout_gravity" /> |
| 908 | </declare-styleable> |
| 909 | |
| 910 | <declare-styleable name="Toolbar"> |
| 911 | <attr name="titleTextAppearance" format="reference" /> |
| 912 | <attr name="subtitleTextAppearance" format="reference" /> |
| 913 | <attr name="title" /> |
| 914 | <attr name="subtitle" /> |
| 915 | <attr name="android:gravity" /> |
Chris Banes | b1d1140 | 2015-10-15 13:48:16 +0100 | [diff] [blame] | 916 | <!-- Specifies extra space on the left, start, right and end sides |
| 917 | of the toolbar's title. Margin values should be positive. --> |
| 918 | <attr name="titleMargin" format="dimension" /> |
| 919 | <!-- Specifies extra space on the start side of the toolbar's title. |
| 920 | If both this attribute and titleMargin are specified, then this |
| 921 | attribute takes precedence. Margin values should be positive. --> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 922 | <attr name="titleMarginStart" format="dimension" /> |
Chris Banes | b1d1140 | 2015-10-15 13:48:16 +0100 | [diff] [blame] | 923 | <!-- Specifies extra space on the end side of the toolbar's title. |
| 924 | If both this attribute and titleMargin are specified, then this |
| 925 | attribute takes precedence. Margin values should be positive. --> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 926 | <attr name="titleMarginEnd" format="dimension" /> |
Chris Banes | b1d1140 | 2015-10-15 13:48:16 +0100 | [diff] [blame] | 927 | <!-- Specifies extra space on the top side of the toolbar's title. |
| 928 | If both this attribute and titleMargin are specified, then this |
| 929 | attribute takes precedence. Margin values should be positive. --> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 930 | <attr name="titleMarginTop" format="dimension" /> |
Chris Banes | b1d1140 | 2015-10-15 13:48:16 +0100 | [diff] [blame] | 931 | <!-- Specifies extra space on the bottom side of the toolbar's title. |
| 932 | If both this attribute and titleMargin are specified, then this |
| 933 | attribute takes precedence. Margin values should be positive. --> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 934 | <attr name="titleMarginBottom" format="dimension" /> |
Chris Banes | b1d1140 | 2015-10-15 13:48:16 +0100 | [diff] [blame] | 935 | <!-- {@deprecated Use titleMargin} --> |
| 936 | <attr name="titleMargins" format="dimension" /> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 937 | <attr name="contentInsetStart" /> |
| 938 | <attr name="contentInsetEnd" /> |
| 939 | <attr name="contentInsetLeft" /> |
| 940 | <attr name="contentInsetRight" /> |
Adam Powell | 62d19a6 | 2016-03-28 11:12:24 -0700 | [diff] [blame] | 941 | <attr name="contentInsetStartWithNavigation" /> |
| 942 | <attr name="contentInsetEndWithActions" /> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 943 | <attr name="maxButtonHeight" format="dimension" /> |
Chris Banes | b1d1140 | 2015-10-15 13:48:16 +0100 | [diff] [blame] | 944 | <attr name="buttonGravity"> |
| 945 | <!-- Push object to the top of its container, not changing its size. --> |
| 946 | <flag name="top" value="0x30" /> |
| 947 | <!-- Push object to the bottom of its container, not changing its size. --> |
| 948 | <flag name="bottom" value="0x50" /> |
| 949 | </attr> |
| 950 | <!-- Icon drawable to use for the collapse button. --> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 951 | <attr name="collapseIcon" format="reference" /> |
Alan Viverette | 3e2b5bd | 2014-10-28 16:15:02 -0700 | [diff] [blame] | 952 | <!-- Text to set as the content description for the collapse button. --> |
| 953 | <attr name="collapseContentDescription" format="string" /> |
Chris Banes | 61c0bbe | 2014-07-31 14:21:02 +0100 | [diff] [blame] | 954 | <!-- Reference to a theme that should be used to inflate popups |
| 955 | shown by widgets in the toolbar. --> |
| 956 | <attr name="popupTheme" /> |
Chris Banes | ac00a98 | 2014-09-01 11:32:44 +0100 | [diff] [blame] | 957 | <!-- Icon drawable to use for the navigation button located at |
| 958 | the start of the toolbar. --> |
| 959 | <attr name="navigationIcon" format="reference" /> |
| 960 | <!-- Text to set as the content description for the navigation button |
| 961 | located at the start of the toolbar. --> |
| 962 | <attr name="navigationContentDescription" format="string" /> |
Adam Powell | 64c32ba | 2015-06-16 17:08:03 -0700 | [diff] [blame] | 963 | <!-- Drawable to set as the logo that appears at the starting side of |
| 964 | the Toolbar, just after the navigation button. --> |
| 965 | <attr name="logo" /> |
| 966 | <!-- A content description string to describe the appearance of the |
| 967 | associated logo image. --> |
| 968 | <attr name="logoDescription" format="string" /> |
| 969 | <!-- A color to apply to the title string. --> |
| 970 | <attr name="titleTextColor" format="color" /> |
| 971 | <!-- A color to apply to the subtitle string. --> |
| 972 | <attr name="subtitleTextColor" format="color" /> |
Chris Banes | b1d1140 | 2015-10-15 13:48:16 +0100 | [diff] [blame] | 973 | <attr name="android:minHeight" /> |
Chris Banes | 49c7890 | 2014-07-15 15:30:55 +0100 | [diff] [blame] | 974 | </declare-styleable> |
| 975 | |
| 976 | <declare-styleable name="PopupWindowBackgroundState"> |
| 977 | <!-- State identifier indicating the popup will be above the anchor. --> |
| 978 | <attr name="state_above_anchor" format="boolean" /> |
| 979 | </declare-styleable> |
| 980 | |
Chris Banes | ac00a98 | 2014-09-01 11:32:44 +0100 | [diff] [blame] | 981 | <declare-styleable name="ListPopupWindow"> |
| 982 | <!-- Amount of pixels by which the drop down should be offset vertically. --> |
| 983 | <attr name="android:dropDownVerticalOffset" /> |
| 984 | <!-- Amount of pixels by which the drop down should be offset horizontally. --> |
| 985 | <attr name="android:dropDownHorizontalOffset" /> |
| 986 | </declare-styleable> |
| 987 | |
Chris Banes | 5ec2faa | 2014-09-04 13:10:12 +0100 | [diff] [blame] | 988 | <declare-styleable name="PopupWindow"> |
| 989 | <!-- Whether the popup window should overlap its anchor view. --> |
| 990 | <attr name="overlapAnchor" format="boolean" /> |
Chris Banes | 4692861 | 2014-09-02 11:28:36 +0100 | [diff] [blame] | 991 | <attr name="android:popupBackground" /> |
Chris Banes | b2d5231 | 2016-05-06 10:28:03 +0100 | [diff] [blame] | 992 | <attr name="android:popupAnimationStyle"/> |
Chris Banes | 5ec2faa | 2014-09-04 13:10:12 +0100 | [diff] [blame] | 993 | </declare-styleable> |
| 994 | |
Yigit Boyar | 058467c | 2014-08-26 16:55:01 -0700 | [diff] [blame] | 995 | <declare-styleable name="DrawerArrowToggle"> |
| 996 | <!-- The drawing color for the bars --> |
| 997 | <attr name="color" format="color"/> |
| 998 | <!-- Whether bars should rotate or not during transition --> |
| 999 | <attr name="spinBars" format="boolean"/> |
| 1000 | <!-- The total size of the drawable --> |
| 1001 | <attr name="drawableSize" format="dimension"/> |
| 1002 | <!-- The max gap between the bars when they are parallel to each other --> |
| 1003 | <attr name="gapBetweenBars" format="dimension"/> |
Chris Banes | fab671e | 2015-07-11 09:23:31 +0100 | [diff] [blame] | 1004 | <!-- The length of the arrow head when formed to make an arrow --> |
| 1005 | <attr name="arrowHeadLength" format="dimension"/> |
| 1006 | <!-- The length of the shaft when formed to make an arrow --> |
| 1007 | <attr name="arrowShaftLength" format="dimension"/> |
| 1008 | <!-- The length of the bars when they are parallel to each other --> |
| 1009 | <attr name="barLength" format="dimension"/> |
Yigit Boyar | 058467c | 2014-08-26 16:55:01 -0700 | [diff] [blame] | 1010 | <!-- The thickness (stroke size) for the bar paint --> |
| 1011 | <attr name="thickness" format="dimension"/> |
| 1012 | </declare-styleable> |
| 1013 | |
| 1014 | <attr name="drawerArrowStyle" format="reference" /> |
| 1015 | |
Chris Banes | 4bd5cbd | 2014-09-05 18:26:41 +0100 | [diff] [blame] | 1016 | <declare-styleable name="ViewStubCompat"> |
| 1017 | <!-- Supply an identifier for the layout resource to inflate when the ViewStub |
| 1018 | becomes visible or when forced to do so. The layout resource must be a |
| 1019 | valid reference to a layout. --> |
| 1020 | <attr name="android:layout" /> |
| 1021 | <!-- Overrides the id of the inflated View with this value. --> |
| 1022 | <attr name="android:inflatedId" /> |
| 1023 | <attr name="android:id" /> |
| 1024 | </declare-styleable> |
| 1025 | |
Chris Banes | 091b0f9 | 2015-05-06 19:13:34 +0100 | [diff] [blame] | 1026 | <declare-styleable name="CompoundButton"> |
| 1027 | <attr name="android:button"/> |
| 1028 | <!-- Tint to apply to the button drawable. --> |
| 1029 | <attr name="buttonTint" format="color" /> |
| 1030 | |
| 1031 | <!-- Blending mode used to apply the button tint. --> |
| 1032 | <attr name="buttonTintMode"> |
| 1033 | <!-- The tint is drawn on top of the drawable. |
| 1034 | [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> |
| 1035 | <enum name="src_over" value="3" /> |
| 1036 | <!-- The tint is masked by the alpha channel of the drawable. The drawable’s |
| 1037 | color channels are thrown out. [Sa * Da, Sc * Da] --> |
| 1038 | <enum name="src_in" value="5" /> |
| 1039 | <!-- The tint is drawn above the drawable, but with the drawable’s alpha |
| 1040 | channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> |
| 1041 | <enum name="src_atop" value="9" /> |
| 1042 | <!-- Multiplies the color and alpha channels of the drawable with those of |
| 1043 | the tint. [Sa * Da, Sc * Dc] --> |
| 1044 | <enum name="multiply" value="14" /> |
| 1045 | <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> |
| 1046 | <enum name="screen" value="15" /> |
Kamal Faraj | 4076f7b | 2017-09-01 16:17:55 +0200 | [diff] [blame] | 1047 | <!-- Combines the tint and icon color and alpha channels, clamping the |
| 1048 | result to valid color values. Saturate(S + D) --> |
| 1049 | <enum name="add" value="16" /> |
Chris Banes | 091b0f9 | 2015-05-06 19:13:34 +0100 | [diff] [blame] | 1050 | </attr> |
| 1051 | </declare-styleable> |
| 1052 | |
Chris Banes | 415f740 | 2014-09-22 11:49:54 +0100 | [diff] [blame] | 1053 | <declare-styleable name="SwitchCompat"> |
| 1054 | <!-- Drawable to use as the "thumb" that switches back and forth. --> |
| 1055 | <attr name="android:thumb" /> |
Chris Banes | d6e4722 | 2016-04-21 13:55:23 +0100 | [diff] [blame] | 1056 | <!-- Tint to apply to the thumb drawable. --> |
| 1057 | <attr name="thumbTint" format="color" /> |
| 1058 | <!-- Blending mode used to apply the thumb tint. --> |
| 1059 | <attr name="thumbTintMode"> |
| 1060 | <!-- The tint is drawn on top of the drawable. |
| 1061 | [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> |
| 1062 | <enum name="src_over" value="3" /> |
| 1063 | <!-- The tint is masked by the alpha channel of the drawable. The drawable’s |
| 1064 | color channels are thrown out. [Sa * Da, Sc * Da] --> |
| 1065 | <enum name="src_in" value="5" /> |
| 1066 | <!-- The tint is drawn above the drawable, but with the drawable’s alpha |
| 1067 | channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> |
| 1068 | <enum name="src_atop" value="9" /> |
| 1069 | <!-- Multiplies the color and alpha channels of the drawable with those of |
| 1070 | the tint. [Sa * Da, Sc * Dc] --> |
| 1071 | <enum name="multiply" value="14" /> |
| 1072 | <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> |
| 1073 | <enum name="screen" value="15" /> |
| 1074 | <!-- Combines the tint and drawable color and alpha channels, clamping the |
| 1075 | result to valid color values. Saturate(S + D) --> |
| 1076 | <enum name="add" value="16" /> |
| 1077 | </attr> |
Chris Banes | 415f740 | 2014-09-22 11:49:54 +0100 | [diff] [blame] | 1078 | <!-- Drawable to use as the "track" that the switch thumb slides within. --> |
| 1079 | <attr name="track" format="reference" /> |
Chris Banes | d6e4722 | 2016-04-21 13:55:23 +0100 | [diff] [blame] | 1080 | <!-- Tint to apply to the track. --> |
| 1081 | <attr name="trackTint" format="color" /> |
| 1082 | <!-- Blending mode used to apply the track tint. --> |
| 1083 | <attr name="trackTintMode"> |
| 1084 | <!-- The tint is drawn on top of the drawable. |
| 1085 | [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> |
| 1086 | <enum name="src_over" value="3" /> |
| 1087 | <!-- The tint is masked by the alpha channel of the drawable. The drawable’s |
| 1088 | color channels are thrown out. [Sa * Da, Sc * Da] --> |
| 1089 | <enum name="src_in" value="5" /> |
| 1090 | <!-- The tint is drawn above the drawable, but with the drawable’s alpha |
| 1091 | channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> |
| 1092 | <enum name="src_atop" value="9" /> |
| 1093 | <!-- Multiplies the color and alpha channels of the drawable with those of |
| 1094 | the tint. [Sa * Da, Sc * Dc] --> |
| 1095 | <enum name="multiply" value="14" /> |
| 1096 | <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> |
| 1097 | <enum name="screen" value="15" /> |
| 1098 | <!-- Combines the tint and drawable color and alpha channels, clamping the |
| 1099 | result to valid color values. Saturate(S + D) --> |
| 1100 | <enum name="add" value="16" /> |
| 1101 | </attr> |
Chris Banes | 415f740 | 2014-09-22 11:49:54 +0100 | [diff] [blame] | 1102 | <!-- Text to use when the switch is in the checked/"on" state. --> |
| 1103 | <attr name="android:textOn" /> |
| 1104 | <!-- Text to use when the switch is in the unchecked/"off" state. --> |
| 1105 | <attr name="android:textOff" /> |
| 1106 | <!-- Amount of padding on either side of text within the switch thumb. --> |
| 1107 | <attr name="thumbTextPadding" format="dimension" /> |
| 1108 | <!-- TextAppearance style for text displayed on the switch thumb. --> |
| 1109 | <attr name="switchTextAppearance" format="reference" /> |
| 1110 | <!-- Minimum width for the switch component --> |
| 1111 | <attr name="switchMinWidth" format="dimension" /> |
| 1112 | <!-- Minimum space between the switch and caption text --> |
| 1113 | <attr name="switchPadding" format="dimension" /> |
| 1114 | <!-- Whether to split the track and leave a gap for the thumb drawable. --> |
| 1115 | <attr name="splitTrack" format="boolean" /> |
| 1116 | <!-- Whether to draw on/off text. --> |
| 1117 | <attr name="showText" format="boolean" /> |
| 1118 | </declare-styleable> |
| 1119 | |
Chris Banes | 320c3e9 | 2015-01-28 11:22:57 +0000 | [diff] [blame] | 1120 | <declare-styleable name="TextAppearance"> |
Chris Banes | 36ba98b | 2014-10-28 10:45:10 +0000 | [diff] [blame] | 1121 | <attr name="android:textSize" /> |
| 1122 | <attr name="android:textColor" /> |
Chris Banes | 286a513 | 2016-09-09 10:56:58 +0100 | [diff] [blame] | 1123 | <attr name="android:textColorHint"/> |
Kirill Grouchnikov | 88d05bd | 2017-03-15 11:12:44 -0400 | [diff] [blame] | 1124 | <attr name="android:textColorLink"/> |
Chris Banes | 414f523 | 2014-12-11 10:29:47 +0000 | [diff] [blame] | 1125 | <attr name="android:textStyle" /> |
| 1126 | <attr name="android:typeface" /> |
Clara Bayarri | 543fd29 | 2017-03-24 11:29:49 +0000 | [diff] [blame] | 1127 | <attr name="android:fontFamily" /> |
Seigo Nonaka | b92b7c8 | 2017-05-10 17:49:54 -0700 | [diff] [blame] | 1128 | <attr name="fontFamily" /> |
Chris Banes | 36ba98b | 2014-10-28 10:45:10 +0000 | [diff] [blame] | 1129 | <attr name="textAllCaps" /> |
Chris Banes | 23caabc | 2015-08-07 10:30:48 +0100 | [diff] [blame] | 1130 | <attr name="android:shadowColor"/> |
| 1131 | <attr name="android:shadowDy"/> |
| 1132 | <attr name="android:shadowDx"/> |
| 1133 | <attr name="android:shadowRadius"/> |
Chris Banes | 36ba98b | 2014-10-28 10:45:10 +0000 | [diff] [blame] | 1134 | </declare-styleable> |
| 1135 | |
Chris Banes | 19eaf14 | 2015-02-04 23:39:54 +0000 | [diff] [blame] | 1136 | <!-- The set of attributes that describe a AlertDialog's theme. --> |
| 1137 | <declare-styleable name="AlertDialog"> |
| 1138 | <attr name="android:layout" /> |
| 1139 | <attr name="buttonPanelSideLayout" format="reference" /> |
| 1140 | <attr name="listLayout" format="reference" /> |
| 1141 | <attr name="multiChoiceItemLayout" format="reference" /> |
| 1142 | <attr name="singleChoiceItemLayout" format="reference" /> |
| 1143 | <attr name="listItemLayout" format="reference" /> |
Chris Banes | 2c96011 | 2016-11-07 12:33:18 +0000 | [diff] [blame] | 1144 | <attr name="showTitle" format="boolean" /> |
Aga Madurska | 70a61be | 2017-10-25 19:26:16 +0100 | [diff] [blame] | 1145 | <attr name="buttonIconDimen" format="dimension" /> |
Chris Banes | 19eaf14 | 2015-02-04 23:39:54 +0000 | [diff] [blame] | 1146 | </declare-styleable> |
| 1147 | |
Chris Banes | 9b8f708 | 2015-07-29 14:34:44 +0100 | [diff] [blame] | 1148 | <!-- @hide --> |
| 1149 | <declare-styleable name="ButtonBarLayout"> |
| 1150 | <!-- Whether to automatically stack the buttons when there is not |
| 1151 | enough space to lay them out side-by-side. --> |
| 1152 | <attr name="allowStacking" format="boolean" /> |
| 1153 | </declare-styleable> |
| 1154 | |
Chris Banes | 9d5f84f | 2015-06-18 17:08:14 +0100 | [diff] [blame] | 1155 | <!-- Attributes that can be assigned to a ColorStateList item. --> |
| 1156 | <declare-styleable name="ColorStateListItem"> |
| 1157 | <!-- Base color for this state. --> |
| 1158 | <attr name="android:color" /> |
| 1159 | <!-- Alpha multiplier applied to the base color. --> |
| 1160 | <attr name="alpha" format="float" /> |
| 1161 | <attr name="android:alpha"/> |
| 1162 | </declare-styleable> |
| 1163 | |
Chris Banes | e4beadb | 2015-11-10 10:45:58 +0000 | [diff] [blame] | 1164 | <declare-styleable name="AppCompatImageView"> |
| 1165 | <attr name="android:src"/> |
Chris Banes | ba337d5 | 2016-06-10 12:23:39 +0100 | [diff] [blame] | 1166 | <!-- Sets a drawable as the content of this ImageView. Allows the use of vector drawable |
| 1167 | when running on older versions of the platform. --> |
Chris Banes | e4beadb | 2015-11-10 10:45:58 +0000 | [diff] [blame] | 1168 | <attr name="srcCompat" format="reference" /> |
Kirill Grouchnikov | b277db2 | 2017-03-22 13:47:51 -0400 | [diff] [blame] | 1169 | |
| 1170 | <!-- Tint to apply to the image source. --> |
| 1171 | <attr name="tint" format="color" /> |
| 1172 | |
| 1173 | <!-- Blending mode used to apply the image source tint. --> |
| 1174 | <attr name="tintMode"> |
| 1175 | <!-- The tint is drawn on top of the drawable. |
| 1176 | [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> |
| 1177 | <enum name="src_over" value="3" /> |
| 1178 | <!-- The tint is masked by the alpha channel of the drawable. The drawable’s |
| 1179 | color channels are thrown out. [Sa * Da, Sc * Da] --> |
| 1180 | <enum name="src_in" value="5" /> |
| 1181 | <!-- The tint is drawn above the drawable, but with the drawable’s alpha |
| 1182 | channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> |
| 1183 | <enum name="src_atop" value="9" /> |
| 1184 | <!-- Multiplies the color and alpha channels of the drawable with those of |
| 1185 | the tint. [Sa * Da, Sc * Dc] --> |
| 1186 | <enum name="multiply" value="14" /> |
| 1187 | <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> |
| 1188 | <enum name="screen" value="15" /> |
Kamal Faraj | 4076f7b | 2017-09-01 16:17:55 +0200 | [diff] [blame] | 1189 | <!-- Combines the tint and icon color and alpha channels, clamping the |
| 1190 | result to valid color values. Saturate(S + D) --> |
| 1191 | <enum name="add" value="16" /> |
Kirill Grouchnikov | b277db2 | 2017-03-22 13:47:51 -0400 | [diff] [blame] | 1192 | </attr> |
Chris Banes | e4beadb | 2015-11-10 10:45:58 +0000 | [diff] [blame] | 1193 | </declare-styleable> |
| 1194 | |
Chris Banes | b19cba1 | 2016-02-22 15:02:39 +0000 | [diff] [blame] | 1195 | <declare-styleable name="AppCompatSeekBar"> |
| 1196 | <attr name="android:thumb" /> |
| 1197 | <!-- Drawable displayed at each progress position on a seekbar. --> |
| 1198 | <attr name="tickMark" format="reference" /> |
| 1199 | <!-- Tint to apply to the tick mark drawable. --> |
| 1200 | <attr name="tickMarkTint" format="color" /> |
| 1201 | <!-- Blending mode used to apply the tick mark tint. --> |
| 1202 | <attr name="tickMarkTintMode"> |
| 1203 | <!-- The tint is drawn on top of the drawable. |
| 1204 | [Sa + (1 - Sa)*Da, Rc = Sc + (1 - Sa)*Dc] --> |
| 1205 | <enum name="src_over" value="3" /> |
| 1206 | <!-- The tint is masked by the alpha channel of the drawable. The drawable’s |
| 1207 | color channels are thrown out. [Sa * Da, Sc * Da] --> |
| 1208 | <enum name="src_in" value="5" /> |
| 1209 | <!-- The tint is drawn above the drawable, but with the drawable’s alpha |
| 1210 | channel masking the result. [Da, Sc * Da + (1 - Sa) * Dc] --> |
| 1211 | <enum name="src_atop" value="9" /> |
| 1212 | <!-- Multiplies the color and alpha channels of the drawable with those of |
| 1213 | the tint. [Sa * Da, Sc * Dc] --> |
| 1214 | <enum name="multiply" value="14" /> |
| 1215 | <!-- [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] --> |
| 1216 | <enum name="screen" value="15" /> |
| 1217 | <!-- Combines the tint and drawable color and alpha channels, clamping the |
| 1218 | result to valid color values. Saturate(S + D) --> |
| 1219 | <enum name="add" value="16" /> |
| 1220 | </attr> |
| 1221 | </declare-styleable> |
| 1222 | |
Chris Banes | 31a373d | 2016-06-27 15:52:06 +0100 | [diff] [blame] | 1223 | <declare-styleable name="AppCompatTextHelper"> |
| 1224 | <attr name="android:drawableLeft" /> |
| 1225 | <attr name="android:drawableTop" /> |
| 1226 | <attr name="android:drawableRight" /> |
| 1227 | <attr name="android:drawableBottom" /> |
| 1228 | <attr name="android:drawableStart" /> |
| 1229 | <attr name="android:drawableEnd" /> |
| 1230 | <attr name="android:textAppearance" /> |
| 1231 | </declare-styleable> |
| 1232 | |
Chris Banes | 2c96011 | 2016-11-07 12:33:18 +0000 | [diff] [blame] | 1233 | <declare-styleable name="RecycleListView"> |
| 1234 | <!-- Bottom padding to use when no buttons are present. --> |
| 1235 | <attr name="paddingBottomNoButtons" format="dimension" /> |
| 1236 | <!-- Top padding to use when no title is present. --> |
| 1237 | <attr name="paddingTopNoTitle" format="dimension" /> |
| 1238 | </declare-styleable> |
| 1239 | |
Adam Powell | bbbb8f3 | 2012-04-25 13:03:55 -0700 | [diff] [blame] | 1240 | </resources> |