1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2014 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<!-- 18=============================================================== 19 PLEASE READ 20=============================================================== 21 22The Material themes must not be modified in order to pass CTS. 23Many related themes and styles depend on other values defined in this file. 24If you would like to provide custom themes and styles for your device, 25please see styles_device_defaults.xml. 26 27=============================================================== 28 PLEASE READ 29=============================================================== 30 --> 31<resources> 32 <!-- Preference styles --> 33 <eat-comment/> 34 35 <style name="Preference.Material"> 36 <item name="layout">@layout/preference_material</item> 37 </style> 38 39 <style name="BasePreferenceFragment"> 40 <item name="layout">@layout/preference_list_fragment_material</item> 41 <item name="paddingStart">@dimen/preference_fragment_padding_side_material</item> 42 <item name="paddingEnd">@dimen/preference_fragment_padding_side_material</item> 43 <item name="paddingTop">@dimen/preference_fragment_padding_vertical_material</item> 44 <item name="paddingBottom">@dimen/preference_fragment_padding_vertical_material</item> 45 <item name="divider">?attr/listDivider</item> 46 <item name="clipToPadding">@bool/config_preferenceFragmentClipToPadding</item> 47 </style> 48 49 <style name="PreferenceFragment.Material" parent="BasePreferenceFragment"/> 50 51 <style name="PreferenceActivity.Material"> 52 <item name="layout">@layout/preference_list_content_material</item> 53 <item name="headerLayout">@layout/preference_header_item_material</item> 54 <item name="headerRemoveIconIfEmpty">true</item> 55 </style> 56 57 <style name="Preference.Material.Information"> 58 <item name="layout">@layout/preference_information_material</item> 59 <item name="enabled">false</item> 60 <item name="shouldDisableView">false</item> 61 </style> 62 63 <style name="Preference.Material.Category"> 64 <item name="layout">@layout/preference_category_material</item> 65 <!-- The title should not dim if the category is disabled, instead only the preference children should dim. --> 66 <item name="shouldDisableView">false</item> 67 <item name="selectable">false</item> 68 </style> 69 70 <style name="Preference.Material.CheckBoxPreference"> 71 <item name="widgetLayout">@layout/preference_widget_checkbox</item> 72 </style> 73 74 <style name="Preference.Material.SwitchPreference"> 75 <item name="widgetLayout">@layout/preference_widget_switch</item> 76 <item name="switchTextOn">@string/capital_on</item> 77 <item name="switchTextOff">@string/capital_off</item> 78 </style> 79 80 <style name="Preference.Material.SeekBarPreference"> 81 <item name="layout">@layout/preference_widget_seekbar_material</item> 82 </style> 83 84 <style name="Preference.Material.BasePreferenceScreen"> 85 <item name="screenLayout">@layout/preference_list_fragment_material</item> 86 <item name="divider">?attr/listDivider</item> 87 </style> 88 89 <style name="Preference.Material.PreferenceScreen" parent="Preference.Material.BasePreferenceScreen"/> 90 91 <style name="Preference.Material.DialogPreference"> 92 <item name="positiveButtonText">@string/ok</item> 93 <item name="negativeButtonText">@string/cancel</item> 94 </style> 95 96 <style name="Preference.Material.DialogPreference.YesNoPreference"> 97 <item name="positiveButtonText">@string/yes</item> 98 <item name="negativeButtonText">@string/no</item> 99 </style> 100 101 <style name="Preference.Material.DialogPreference.SeekBarPreference"> 102 <item name="dialogLayout">@layout/preference_dialog_seekbar_material</item> 103 </style> 104 105 <style name="Preference.Material.DialogPreference.EditTextPreference"> 106 <item name="dialogLayout">@layout/preference_dialog_edittext_material</item> 107 </style> 108 109 <style name="Preference.Material.RingtonePreference"> 110 <item name="ringtoneType">ringtone</item> 111 <item name="showSilent">true</item> 112 <item name="showDefault">true</item> 113 </style> 114 115 <!-- No margins or background by default. Could be different for x-large screens --> 116 <style name="PreferencePanel.Material"> 117 <item name="layout_marginStart">0dip</item> 118 <item name="layout_marginEnd">0dip</item> 119 </style> 120 121 <!-- The attributes are overridden here because the x-large or large resources may have 122 changed the margins and background in the parent PreferencePanel style. --> 123 <style name="PreferencePanel.Material.Dialog"> 124 <item name="layout_marginStart">0dip</item> 125 <item name="layout_marginEnd">0dip</item> 126 <item name="layout_marginTop">0dip</item> 127 <item name="layout_marginBottom">0dip</item> 128 <item name="background">@null</item> 129 </style> 130 131 <style name="PreferenceHeaderPanel.Material"> 132 <item name="layout_marginStart">@dimen/preference_screen_side_margin_material</item> 133 <item name="layout_marginEnd">@dimen/preference_screen_side_margin_negative_material</item> 134 <item name="paddingTop">@dimen/preference_screen_header_vertical_padding_material</item> 135 <item name="paddingBottom">@dimen/preference_screen_header_vertical_padding_material</item> 136 </style> 137 138 <style name="PreferenceHeaderList.Material"> 139 <item name="paddingStart">@dimen/preference_screen_header_padding_side_material</item> 140 <item name="paddingEnd">@dimen/preference_screen_header_padding_side_material</item> 141 <item name="scrollbarStyle">@integer/preference_screen_header_scrollbarStyle</item> 142 </style> 143 144 <style name="PreferenceFragmentList.Material"> 145 <item name="paddingStart">@dimen/preference_fragment_padding_side_material</item> 146 <item name="paddingEnd">@dimen/preference_fragment_padding_side_material</item> 147 <item name="paddingTop">@dimen/preference_fragment_padding_vertical_material</item> 148 <item name="paddingBottom">@dimen/preference_fragment_padding_vertical_material</item> 149 </style> 150 151 <!-- Begin Material theme styles --> 152 153 <!-- Text styles --> 154 155 <style name="TextAppearance.Material"> 156 <item name="textColor">?attr/textColorPrimary</item> 157 <item name="textColorHint">?attr/textColorHint</item> 158 <item name="textColorHighlight">?attr/textColorHighlight</item> 159 <item name="textColorLink">?attr/textColorLink</item> 160 <item name="textSize">@dimen/text_size_body_1_material</item> 161 <item name="fontFamily">@string/font_family_body_1_material</item> 162 <item name="lineSpacingMultiplier">@dimen/text_line_spacing_multiplier_material</item> 163 </style> 164 165 <style name="TextAppearance.Material.Display4"> 166 <item name="textSize">@dimen/text_size_display_4_material</item> 167 <item name="fontFamily">@string/font_family_display_4_material</item> 168 <item name="textColor">?attr/textColorSecondary</item> 169 </style> 170 171 <style name="TextAppearance.Material.Display3"> 172 <item name="textSize">@dimen/text_size_display_3_material</item> 173 <item name="fontFamily">@string/font_family_display_3_material</item> 174 <item name="textColor">?attr/textColorSecondary</item> 175 </style> 176 177 <style name="TextAppearance.Material.Display2"> 178 <item name="textSize">@dimen/text_size_display_2_material</item> 179 <item name="fontFamily">@string/font_family_display_2_material</item> 180 <item name="textColor">?attr/textColorSecondary</item> 181 </style> 182 183 <style name="TextAppearance.Material.Display1"> 184 <item name="textSize">@dimen/text_size_display_1_material</item> 185 <item name="fontFamily">@string/font_family_display_1_material</item> 186 <item name="textColor">?attr/textColorSecondary</item> 187 </style> 188 189 <style name="TextAppearance.Material.Headline"> 190 <item name="textSize">@dimen/text_size_headline_material</item> 191 <item name="fontFamily">@string/font_family_headline_material</item> 192 <item name="textColor">?attr/textColorPrimary</item> 193 </style> 194 195 <style name="TextAppearance.Material.Title"> 196 <item name="textSize">@dimen/text_size_title_material</item> 197 <item name="fontFamily">@string/font_family_title_material</item> 198 <item name="textColor">?attr/textColorPrimary</item> 199 </style> 200 201 <style name="TextAppearance.Material.Title.Inverse"> 202 <item name="textColor">?attr/textColorPrimaryInverse</item> 203 <item name="textColorHint">?attr/textColorHintInverse</item> 204 <item name="textColorHighlight">?attr/textColorHighlightInverse</item> 205 <item name="textColorLink">?attr/textColorLinkInverse</item> 206 </style> 207 208 <style name="TextAppearance.Material.Subhead"> 209 <item name="textSize">@dimen/text_size_subhead_material</item> 210 <item name="fontFamily">@string/font_family_subhead_material</item> 211 <item name="textColor">?attr/textColorPrimary</item> 212 </style> 213 214 <style name="TextAppearance.Material.Subhead.Inverse"> 215 <item name="textColor">?attr/textColorPrimaryInverse</item> 216 <item name="textColorHint">?attr/textColorHintInverse</item> 217 <item name="textColorHighlight">?attr/textColorHighlightInverse</item> 218 <item name="textColorLink">?attr/textColorLinkInverse</item> 219 </style> 220 221 <style name="TextAppearance.Material.Body2"> 222 <item name="textSize">@dimen/text_size_body_2_material</item> 223 <item name="fontFamily">@string/font_family_body_2_material</item> 224 <item name="textColor">?attr/textColorPrimary</item> 225 </style> 226 227 <style name="TextAppearance.Material.Body1"> 228 <item name="textSize">@dimen/text_size_body_1_material</item> 229 <item name="fontFamily">@string/font_family_body_1_material</item> 230 <item name="textColor">?attr/textColorPrimary</item> 231 </style> 232 233 <style name="TextAppearance.Material.Caption"> 234 <item name="textSize">@dimen/text_size_caption_material</item> 235 <item name="fontFamily">@string/font_family_caption_material</item> 236 <item name="textColor">?attr/textColorSecondary</item> 237 </style> 238 239 <style name="TextAppearance.Material.Menu"> 240 <item name="textSize">@dimen/text_size_menu_material</item> 241 <item name="fontFamily">@string/font_family_menu_material</item> 242 </style> 243 244 <style name="TextAppearance.Material.Menu.Inverse"> 245 <item name="textColor">?attr/textColorSecondaryInverse</item> 246 <item name="textColorHint">?attr/textColorHintInverse</item> 247 <item name="textColorHighlight">?attr/textColorHighlightInverse</item> 248 <item name="textColorLink">?attr/textColorLinkInverse</item> 249 </style> 250 251 <style name="TextAppearance.Material.Button"> 252 <item name="textSize">@dimen/text_size_button_material</item> 253 <item name="fontFamily">@string/font_family_button_material</item> 254 <item name="textAllCaps">true</item> 255 <item name="textColor">?attr/textColorPrimary</item> 256 </style> 257 258 <style name="TextAppearance.Material.NumberPicker" parent="TextAppearance.Material.Body1"/> 259 260 <!-- Deprecated text styles --> 261 262 <style name="TextAppearance.Material.Inverse"> 263 <item name="textColor">?attr/textColorPrimaryInverse</item> 264 <item name="textColorHint">?attr/textColorHintInverse</item> 265 <item name="textColorHighlight">?attr/textColorHighlightInverse</item> 266 <item name="textColorLink">?attr/textColorLinkInverse</item> 267 </style> 268 269 <style name="TextAppearance.Material.Large"> 270 <item name="textSize">@dimen/text_size_large_material</item> 271 <item name="textColor">?attr/textColorPrimary</item> 272 </style> 273 274 <style name="TextAppearance.Material.Large.Inverse"> 275 <item name="textColor">?attr/textColorPrimaryInverse</item> 276 <item name="textColorHint">?attr/textColorHintInverse</item> 277 <item name="textColorHighlight">?attr/textColorHighlightInverse</item> 278 <item name="textColorLink">?attr/textColorLinkInverse</item> 279 </style> 280 281 <style name="TextAppearance.Material.Medium"> 282 <item name="textSize">@dimen/text_size_medium_material</item> 283 <item name="textColor">?attr/textColorSecondary</item> 284 </style> 285 286 <style name="TextAppearance.Material.Medium.Inverse"> 287 <item name="textColor">?attr/textColorSecondaryInverse</item> 288 <item name="textColorHint">?attr/textColorHintInverse</item> 289 <item name="textColorHighlight">?attr/textColorHighlightInverse</item> 290 <item name="textColorLink">?attr/textColorLinkInverse</item> 291 </style> 292 293 <style name="TextAppearance.Material.Small"> 294 <item name="textSize">@dimen/text_size_small_material</item> 295 <item name="textColor">?attr/textColorTertiary</item> 296 </style> 297 298 <style name="TextAppearance.Material.Small.Inverse"> 299 <item name="textColor">?attr/textColorTertiaryInverse</item> 300 <item name="textColorHint">?attr/textColorHintInverse</item> 301 <item name="textColorHighlight">?attr/textColorHighlightInverse</item> 302 <item name="textColorLink">?attr/textColorLinkInverse</item> 303 </style> 304 305 <style name="TextAppearance.Material.SearchResult" /> 306 <style name="TextAppearance.Material.SearchResult.Title" parent="TextAppearance.Material.Title" /> 307 <style name="TextAppearance.Material.SearchResult.Subtitle" parent="TextAppearance.Material.Subhead" /> 308 309 <style name="TextAppearance.Material.Widget"/> 310 <style name="TextAppearance.Material.Widget.Button" parent="TextAppearance.Material.Button" /> 311 312 <style name="TextAppearance.Material.Widget.Button.Inverse"> 313 <item name="textColor">?attr/textColorPrimaryInverse</item> 314 </style> 315 316 <style name="TextAppearance.Material.Widget.Button.Colored"> 317 <item name="textColor">@color/btn_colored_text_material</item> 318 </style> 319 320 <style name="TextAppearance.Material.Widget.Button.Borderless.Colored" parent="TextAppearance.Material.Widget.Button"> 321 <item name="textColor">@color/btn_colored_borderless_text_material</item> 322 </style> 323 324 <style name="TextAppearance.Material.Widget.EditText"> 325 <item name="textColor">?attr/textColorPrimaryInverse</item> 326 <item name="textColorHint">?attr/textColorHintInverse</item> 327 </style> 328 329 <style name="TextAppearance.Material.Widget.Switch" parent="TextAppearance.Material.Button" /> 330 331 <style name="TextAppearance.Material.Widget.PopupMenu"/> 332 <style name="TextAppearance.Material.Widget.PopupMenu.Large" parent="TextAppearance.Material.Menu" /> 333 <style name="TextAppearance.Material.Widget.PopupMenu.Small" parent="TextAppearance.Material.Menu" /> 334 <style name="TextAppearance.Material.Widget.PopupMenu.Header"> 335 <item name="fontFamily">@string/font_family_title_material</item> 336 <item name="textSize">@dimen/text_size_menu_header_material</item> 337 <item name="textColor">?attr/colorAccent</item> 338 </style> 339 340 <style name="TextAppearance.Material.Widget.DropDownHint" parent="TextAppearance.Material.Menu" /> 341 342 <style name="TextAppearance.Material.Widget.IconMenu.Item" parent="TextAppearance.Material.Small"> 343 <item name="textColor">?attr/textColorPrimary</item> 344 </style> 345 346 <style name="TextAppearance.Material.Widget.TabWidget" parent="TextAppearance.Material.Button"> 347 <item name="textColor">@color/tab_indicator_text_material</item> 348 </style> 349 350 <style name="TextAppearance.Material.Widget.TextView"> 351 <item name="textColor">?attr/textColorPrimaryDisableOnly</item> 352 <item name="textColorHint">?attr/textColorHint</item> 353 </style> 354 355 <style name="TextAppearance.Material.Widget.TextView.PopupMenu" parent="TextAppearance.Material.Menu" /> 356 <style name="TextAppearance.Material.Widget.TextView.SpinnerItem" parent="TextAppearance.Material.Menu" /> 357 358 <style name="TextAppearance.Material.Widget.DropDownItem" parent="TextAppearance.Material.Menu"> 359 <item name="textColor">?attr/textColorPrimaryDisableOnly</item> 360 </style> 361 362 <style name="TextAppearance.Material.Widget.ActionBar.Title" 363 parent="TextAppearance.Material.Title"> 364 <item name="textSize">@dimen/text_size_title_material_toolbar</item> 365 <item name="textColor">?attr/textColorPrimary</item> 366 </style> 367 <style name="TextAppearance.Material.Widget.ActionBar.Title.Inverse" 368 parent="TextAppearance.Material.Title.Inverse"> 369 <item name="textSize">@dimen/text_size_title_material_toolbar</item> 370 <item name="textColor">?attr/textColorPrimaryInverse</item> 371 </style> 372 <style name="TextAppearance.Material.Widget.ActionBar.Subtitle" 373 parent="TextAppearance.Material.Subhead"> 374 <item name="textSize">@dimen/text_size_subtitle_material_toolbar</item> 375 <item name="textColor">?attr/textColorSecondary</item> 376 </style> 377 <style name="TextAppearance.Material.Widget.ActionBar.Subtitle.Inverse" 378 parent="TextAppearance.Material.Subhead.Inverse"> 379 <item name="textSize">@dimen/text_size_subtitle_material_toolbar</item> 380 <item name="textColor">?attr/textColorSecondaryInverse</item> 381 </style> 382 383 <style name="TextAppearance.Material.Widget.ActionBar.Menu" 384 parent="TextAppearance.Material.Widget.Button"> 385 <item name="textColor">?attr/actionMenuTextColor</item> 386 <item name="textAllCaps">@bool/config_actionMenuItemAllCaps</item> 387 </style> 388 <style name="TextAppearance.Material.Widget.ActionBar.Menu.Inverse" 389 parent="TextAppearance.Material.Widget.Button.Inverse"> 390 <item name="textColor">?attr/actionMenuTextColor</item> 391 <item name="textAllCaps">@bool/config_actionMenuItemAllCaps</item> 392 </style> 393 394 <style name="TextAppearance.Material.Widget.ActionMode"/> 395 <style name="TextAppearance.Material.Widget.ActionMode.Title" 396 parent="TextAppearance.Material.Widget.ActionBar.Title" /> 397 <style name="TextAppearance.Material.Widget.ActionMode.Title.Inverse" 398 parent="TextAppearance.Material.Widget.ActionBar.Title.Inverse" /> 399 <style name="TextAppearance.Material.Widget.ActionMode.Subtitle" 400 parent="TextAppearance.Material.Widget.ActionBar.Subtitle" /> 401 <style name="TextAppearance.Material.Widget.ActionMode.Subtitle.Inverse" 402 parent="TextAppearance.Material.Widget.ActionBar.Subtitle.Inverse" /> 403 404 <style name="TextAppearance.Material.Widget.Toolbar.Title" 405 parent="TextAppearance.Material.Widget.ActionBar.Title" /> 406 <style name="TextAppearance.Material.Widget.Toolbar.Subtitle" 407 parent="TextAppearance.Material.Widget.ActionBar.Subtitle" /> 408 409 <style name="TextAppearance.Material.WindowTitle" parent="TextAppearance.Material.Title" /> 410 <style name="TextAppearance.Material.DialogWindowTitle" parent="TextAppearance.Material.Title" /> 411 412 <style name="TextAppearance.Material.Widget.Calendar.Day" parent="TextAppearance.Material.Caption"> 413 <item name="textColor">?attr/textColorPrimaryActivated</item> 414 </style> 415 416 <style name="TextAppearance.Material.Widget.Calendar.DayOfWeek" parent="TextAppearance.Material.Caption" /> 417 <style name="TextAppearance.Material.Widget.Calendar.Month" parent="TextAppearance.Material.Body2" /> 418 419 <style name="TextAppearance.Material.TimePicker.TimeLabel" parent="TextAppearance.Material"> 420 <item name="textSize">@dimen/timepicker_time_label_size</item> 421 <item name="textColor">@color/primary_text_secondary_when_activated_material_inverse</item> 422 </style> 423 424 <style name="TextAppearance.Material.TimePicker.AmPmLabel" parent="TextAppearance.Material.Button"> 425 <item name="textSize">@dimen/timepicker_ampm_label_size</item> 426 <item name="textColor">@color/primary_text_secondary_when_activated_material_inverse</item> 427 </style> 428 429 <style name="TextAppearance.Material.TimePicker.InputHeader" parent="TextAppearance.Material"> 430 <item name="textSize">@dimen/text_size_display_1_material</item> 431 <item name="textColor">@color/white</item> 432 <item name="fontFamily">sans-serif-medium</item> 433 </style> 434 435 <style name="TextAppearance.Material.TimePicker.InputField" parent="TextAppearance.Material"> 436 <item name="textSize">@dimen/timepicker_edit_text_size</item> 437 </style> 438 439 <style name="TextAppearance.Material.TimePicker.PromptLabel" parent="TextAppearance.Material"> 440 <item name="textSize">@dimen/timepicker_text_size_normal</item> 441 <item name="fontFamily">sans-serif-medium</item> 442 </style> 443 444 <style name="TextAppearance.Material.DatePicker.YearLabel" parent="TextAppearance.Material"> 445 <item name="textColor">@color/primary_text_secondary_when_activated_material_inverse</item> 446 <item name="textSize">@dimen/date_picker_year_label_size</item> 447 <item name="fontFamily">sans-serif-medium</item> 448 </style> 449 450 <style name="TextAppearance.Material.DatePicker.DateLabel" parent="TextAppearance.Material"> 451 <item name="textColor">@color/primary_text_secondary_when_activated_material_inverse</item> 452 <item name="textSize">@dimen/date_picker_date_label_size</item> 453 <item name="fontFamily">sans-serif-medium</item> 454 </style> 455 456 <style name="TextAppearance.Material.DatePicker.List.YearLabel" parent="TextAppearance.Material"> 457 <item name="textColor">?attr/textColorPrimary</item> 458 <item name="textSize">@dimen/datepicker_list_year_label_size</item> 459 <item name="fontFamily">sans-serif</item> 460 </style> 461 462 <style name="TextAppearance.Material.DatePicker.List.YearLabel.Activated"> 463 <item name="textColor">?attr/colorControlActivated</item> 464 <item name="textSize">@dimen/datepicker_list_year_activated_label_size</item> 465 <item name="fontFamily">sans-serif-medium</item> 466 </style> 467 468 <style name="TextAppearance.Material.Notification"> 469 <item name="textColor">@color/notification_secondary_text_color_current</item> 470 <item name="textSize">@dimen/notification_text_size</item> 471 </style> 472 473 <style name="TextAppearance.Material.Notification.Reply" /> 474 475 <style name="TextAppearance.Material.Notification.Title"> 476 <item name="textColor">@color/notification_primary_text_color_current</item> 477 <item name="fontFamily">sans-serif-medium</item> 478 <item name="textSize">@dimen/notification_title_text_size</item> 479 </style> 480 481 <style name="TextAppearance.Material.Notification.BigTitle"> 482 <item name="textColor">@color/notification_primary_text_color_current</item> 483 <item name="fontFamily">sans-serif-medium</item> 484 <item name="textSize">@dimen/notification_big_title_text_size</item> 485 </style> 486 487 <style name="TextAppearance.Material.Notification.Line2"> 488 <item name="textSize">@dimen/notification_subtext_size</item> 489 </style> 490 491 <style name="TextAppearance.Material.Notification.Info"> 492 <item name="textSize">@dimen/notification_subtext_size</item> 493 </style> 494 495 <style name="TextAppearance.Material.Notification.Time" parent="TextAppearance.Material.Notification.Info" /> 496 497 <!-- unused; keep identical to parent --> 498 <style name="TextAppearance.Material.Notification.Emphasis"/> 499 500 <style name="TextAppearance.Material.ListItem" parent="TextAppearance.Material.Subhead" /> 501 <style name="TextAppearance.Material.ListItemSecondary" parent="TextAppearance.Material.Body1" /> 502 503 <style name="Widget.Material.Notification.ProgressBar" parent="Widget.Material.Light.ProgressBar.Horizontal" /> 504 505 <style name="Widget.Material.Notification.Text" parent="Widget.Material.Light.TextView"> 506 <item name="lineHeight">20sp</item> 507 <item name="textAppearance">@style/TextAppearance.Material.Notification</item> 508 </style> 509 510 <style name="Widget.Material.Notification.MessagingText" parent="Widget.Material.Notification.Text"> 511 <item name="layout_width">wrap_content</item> 512 <item name="layout_height">wrap_content</item> 513 <item name="ellipsize">end</item> 514 </style> 515 516 <style name="Widget.Material.Notification.MessagingName" parent="Widget.Material.Light.TextView"> 517 <item name="layout_width">wrap_content</item> 518 <item name="layout_height">wrap_content</item> 519 <item name="ellipsize">end</item> 520 <item name="textAppearance">@style/TextAppearance.Material.Notification.Title</item> 521 </style> 522 523 <!-- Widget Styles --> 524 525 <style name="Material"/> 526 <style name="Material.Light"/> 527 <style name="Widget.Material" parent="Widget" /> 528 529 <!-- Bordered ink button --> 530 <style name="Widget.Material.Button"> 531 <item name="background">@drawable/btn_default_material</item> 532 <item name="textAppearance">?attr/textAppearanceButton</item> 533 <item name="minHeight">48dip</item> 534 <item name="minWidth">88dip</item> 535 <item name="stateListAnimator">@anim/button_state_list_anim_material</item> 536 <item name="focusable">true</item> 537 <item name="clickable">true</item> 538 <item name="gravity">center_vertical|center_horizontal</item> 539 </style> 540 541 <!-- Colored bordered ink button --> 542 <style name="Widget.Material.Button.Colored"> 543 <item name="background">@drawable/btn_colored_material</item> 544 <item name="textAppearance">@style/TextAppearance.Material.Widget.Button.Colored</item> 545 </style> 546 547 <!-- Small bordered ink button --> 548 <style name="Widget.Material.Button.Small"> 549 <item name="minHeight">48dip</item> 550 <item name="minWidth">48dip</item> 551 </style> 552 553 <!-- Borderless ink button --> 554 <style name="Widget.Material.Button.Borderless"> 555 <item name="background">@drawable/btn_borderless_material</item> 556 <item name="stateListAnimator">@null</item> 557 </style> 558 559 <!-- Colored borderless ink button --> 560 <style name="Widget.Material.Button.Borderless.Colored"> 561 <item name="textAppearance">@style/TextAppearance.Material.Widget.Button.Borderless.Colored</item> 562 </style> 563 564 <!-- Alert dialog button bar button --> 565 <style name="Widget.Material.Button.ButtonBar.AlertDialog" parent="Widget.Material.Button.Borderless.Colored"> 566 <item name="minWidth">@dimen/alert_dialog_button_bar_width</item> 567 <item name="minHeight">@dimen/alert_dialog_button_bar_height</item> 568 </style> 569 570 <!-- Small borderless ink button --> 571 <style name="Widget.Material.Button.Borderless.Small"> 572 <item name="minHeight">48dip</item> 573 <item name="minWidth">48dip</item> 574 </style> 575 576 <style name="Widget.Material.Button.Inset"> 577 <item name="background">@drawable/button_inset</item> 578 </style> 579 580 <style name="Widget.Material.Button.Toggle"> 581 <item name="background">@drawable/btn_toggle_material</item> 582 <item name="textOn">@string/capital_on</item> 583 <item name="textOff">@string/capital_off</item> 584 </style> 585 586 <style name="Widget.Material.ButtonBar"> 587 <item name="background">@null</item> 588 </style> 589 590 <style name="Widget.Material.ButtonBar.AlertDialog" /> 591 592 <style name="Widget.Material.SearchView"> 593 <item name="layout">@layout/search_view</item> 594 <item name="queryBackground">@drawable/textfield_search_material</item> 595 <item name="submitBackground">@drawable/textfield_search_material</item> 596 <item name="closeIcon">@drawable/ic_clear_material</item> 597 <item name="searchIcon">@drawable/ic_search_api_material</item> 598 <item name="searchHintIcon">@drawable/ic_search_api_material</item> 599 <item name="goIcon">@drawable/ic_go_search_api_material</item> 600 <item name="voiceIcon">@drawable/ic_voice_search_api_material</item> 601 <item name="commitIcon">@drawable/ic_commit_search_api_material</item> 602 <item name="suggestionRowLayout">@layout/search_dropdown_item_icons_2line</item> 603 </style> 604 605 <style name="Widget.Material.SearchView.ActionBar"> 606 <item name="queryBackground">@empty</item> 607 <item name="submitBackground">@empty</item> 608 <item name="searchHintIcon">@empty</item> 609 <item name="defaultQueryHint">@string/search_hint</item> 610 </style> 611 612 <style name="Widget.Material.SegmentedButton" parent="SegmentedButton"> 613 <item name="background">@drawable/btn_group_holo_dark</item> 614 </style> 615 616 <style name="Widget.Material.StackView"> 617 <item name="resOutColor">?attr/colorPrimary</item> 618 <item name="clickColor">?attr/colorPrimary</item> 619 </style> 620 621 <style name="Widget.Material.TextView" parent="Widget.TextView"/> 622 623 <style name="Widget.Material.TextView.ListSeparator" parent="Widget.TextView.ListSeparator"> 624 <item name="background">@drawable/list_section_divider_material</item> 625 <item name="textAllCaps">true</item> 626 </style> 627 628 <style name="Widget.Material.TextView.SpinnerItem" parent="Widget.TextView.SpinnerItem"> 629 <item name="textAppearance">@style/TextAppearance.Material.Widget.TextView.SpinnerItem</item> 630 <item name="paddingStart">8dp</item> 631 <item name="paddingEnd">8dp</item> 632 </style> 633 634 <style name="Widget.Material.CheckedTextView" parent="Widget.CheckedTextView" /> 635 <style name="Widget.Material.TextSelectHandle" parent="Widget.TextSelectHandle"/> 636 <style name="Widget.Material.AbsListView" parent="Widget.AbsListView"/> 637 638 <style name="Widget.Material.AutoCompleteTextView" parent="Widget.AutoCompleteTextView"> 639 <item name="dropDownSelector">?attr/listChoiceBackgroundIndicator</item> 640 <item name="popupBackground">@drawable/popup_background_material</item> 641 <item name="popupElevation">@dimen/floating_window_z</item> 642 </style> 643 644 <style name="Widget.Material.CompoundButton" parent="Widget.CompoundButton"/> 645 646 <style name="Widget.Material.CompoundButton.CheckBox" parent="Widget.CompoundButton.CheckBox"> 647 <item name="background">@drawable/control_background_40dp_material</item> 648 </style> 649 650 <style name="Widget.Material.CompoundButton.RadioButton" parent="Widget.CompoundButton.RadioButton"> 651 <item name="background">@drawable/control_background_40dp_material</item> 652 </style> 653 654 <style name="Widget.Material.CompoundButton.Star" parent="Widget.CompoundButton.Star"> 655 <item name="button">@drawable/btn_star_material</item> 656 <item name="background">@drawable/control_background_40dp_material</item> 657 </style> 658 659 <style name="Widget.Material.CompoundButton.Switch"> 660 <item name="track">@drawable/switch_track_material</item> 661 <item name="thumb">@drawable/switch_thumb_material_anim</item> 662 <item name="switchTextAppearance">@style/TextAppearance.Material.Widget.Switch</item> 663 <item name="textOn">@string/capital_on</item> 664 <item name="textOff">@string/capital_off</item> 665 <item name="background">@drawable/control_background_40dp_material</item> 666 <item name="showText">false</item> 667 </style> 668 669 <style name="Widget.Material.EditText" parent="Widget.EditText"/> 670 671 <style name="Widget.Material.ExpandableListView" parent="Widget.Material.ListView"> 672 <item name="groupIndicator">@drawable/expander_group_material</item> 673 <item name="indicatorLeft">?attr/expandableListPreferredItemIndicatorLeft</item> 674 <item name="indicatorRight">?attr/expandableListPreferredItemIndicatorRight</item> 675 <item name="childDivider">?attr/listDivider</item> 676 </style> 677 678 <style name="Widget.Material.ExpandableListView.White"/> 679 680 <style name="Widget.Material.FragmentBreadCrumbs" parent="Widget.FragmentBreadCrumbs"> 681 <item name="itemLayout">@layout/fragment_bread_crumb_item_material</item> 682 <item name="itemColor">@color/primary_text_default_material_light</item> 683 </style> 684 685 <style name="Widget.Material.Gallery" parent="Widget.Gallery"/> 686 <style name="Widget.Material.GestureOverlayView" parent="Widget.GestureOverlayView"/> 687 688 <style name="Widget.Material.GridView" parent="Widget.GridView"> 689 <item name="listSelector">?attr/listChoiceBackgroundIndicator</item> 690 </style> 691 692 <style name="Widget.Material.CalendarView" parent="Widget.CalendarView"> 693 <item name="calendarViewMode">material</item> 694 695 <item name="monthTextAppearance">@style/TextAppearance.Material.Widget.Calendar.Month</item> 696 <item name="weekDayTextAppearance">@style/TextAppearance.Material.Widget.Calendar.DayOfWeek</item> 697 <item name="dateTextAppearance">@style/TextAppearance.Material.Widget.Calendar.Day</item> 698 <item name="daySelectorColor">?attr/colorControlActivated</item> 699 <item name="dayHighlightColor">?attr/colorControlHighlight</item> 700 </style> 701 702 <style name="Widget.Material.ImageButton" parent="Widget.ImageButton"> 703 <item name="background">@drawable/btn_default_material</item> 704 </style> 705 706 <style name="Widget.Material.NumberPicker" parent="Widget.NumberPicker"> 707 <item name="internalLayout">@layout/number_picker_material</item> 708 <item name="solidColor">@color/transparent</item> 709 <item name="selectionDivider">@drawable/number_picker_divider_material</item> 710 <item name="selectionDividerHeight">2dp</item> 711 <item name="selectionDividersDistance">48dp</item> 712 <item name="internalMinWidth">64dp</item> 713 <item name="internalMaxHeight">180dp</item> 714 <item name="virtualButtonPressedDrawable">?attr/selectableItemBackground</item> 715 </style> 716 717 <style name="Widget.Material.TimePicker"> 718 <item name="timePickerMode">@integer/time_picker_mode_material</item> 719 <item name="legacyLayout">@layout/time_picker_legacy_material</item> 720 <!-- Attributes for new-style TimePicker. --> 721 <item name="internalLayout">@layout/time_picker_material</item> 722 <item name="headerTextColor">@color/primary_text_secondary_when_activated_material</item> 723 <item name="headerBackground">#ff555555</item> 724 <item name="numbersTextColor">?attr/textColorPrimaryActivated</item> 725 <item name="numbersInnerTextColor">?attr/textColorSecondaryActivated</item> 726 <item name="numbersSelectorColor">?attr/colorControlActivated</item> 727 <item name="numbersBackgroundColor">#ff555555</item> 728 <item name="amPmTextColor">?attr/textColorSecondary</item> 729 </style> 730 731 <style name="Widget.Material.DatePicker"> 732 <item name="datePickerMode">@integer/date_picker_mode_material</item> 733 <item name="legacyLayout">@layout/date_picker_legacy_holo</item> 734 <item name="calendarViewShown">true</item> 735 <!-- Attributes for new-style DatePicker. --> 736 <item name="internalLayout">@layout/date_picker_material</item> 737 <item name="headerTextColor">@color/primary_text_secondary_when_activated_material</item> 738 <item name="headerBackground">#ff555555</item> 739 </style> 740 741 <style name="Widget.Material.ActivityChooserView" parent="Widget.ActivityChooserView"> 742 <item name="background">@drawable/ab_share_pack_material</item> 743 </style> 744 745 <style name="Widget.Material.ImageWell" parent="Widget.ImageWell"/> 746 747 <style name="Widget.Material.ListView" parent="Widget.ListView"> 748 <item name="divider">?attr/listDivider</item> 749 <item name="listSelector">?attr/listChoiceBackgroundIndicator</item> 750 </style> 751 752 <style name="Widget.Material.ListView.DropDown"> 753 <item name="divider">@null</item> 754 </style> 755 756 <style name="Widget.Material.ListView.White"/> 757 758 <style name="Widget.Material.ListMenuView"> 759 <item name="subMenuArrow">@drawable/ic_arrow_drop_right_black_24dp</item> 760 </style> 761 762 <style name="Widget.Material.PopupWindow" parent="Widget.PopupWindow"/> 763 764 <style name="Widget.Material.PopupWindow.ActionMode"> 765 <item name="popupBackground">@drawable/popup_background_material</item> 766 <item name="popupElevation">@dimen/floating_window_z</item> 767 <item name="popupAnimationStyle">@style/Animation.PopupWindow.ActionMode</item> 768 </style> 769 770 <style name="Widget.Material.ProgressBar" parent="Widget.ProgressBar"> 771 <item name="indeterminateDrawable">@drawable/progress_medium_material</item> 772 <item name="minWidth">@dimen/progress_bar_size_medium</item> 773 <item name="maxWidth">@dimen/progress_bar_size_medium</item> 774 <item name="minHeight">@dimen/progress_bar_size_medium</item> 775 <item name="maxHeight">@dimen/progress_bar_size_medium</item> 776 </style> 777 778 <style name="Widget.Material.ProgressBar.Inverse"/> 779 780 <style name="Widget.Material.ProgressBar.Horizontal" parent="Widget.ProgressBar.Horizontal"> 781 <item name="progressDrawable">@drawable/progress_horizontal_material</item> 782 <item name="indeterminateDrawable">@drawable/progress_indeterminate_horizontal_material</item> 783 <item name="minHeight">16dip</item> 784 <item name="maxHeight">16dip</item> 785 </style> 786 787 <style name="Widget.Material.ProgressBar.Small" parent="Widget.ProgressBar.Small"> 788 <item name="indeterminateDrawable">@drawable/progress_small_material</item> 789 <item name="minWidth">@dimen/progress_bar_size_small</item> 790 <item name="maxWidth">@dimen/progress_bar_size_small</item> 791 <item name="minHeight">@dimen/progress_bar_size_small</item> 792 <item name="maxHeight">@dimen/progress_bar_size_small</item> 793 </style> 794 795 <style name="Widget.Material.ProgressBar.Small.Inverse"/> 796 <style name="Widget.Material.ProgressBar.Small.Title"/> 797 798 <style name="Widget.Material.ProgressBar.Large" parent="Widget.ProgressBar.Large"> 799 <item name="indeterminateDrawable">@drawable/progress_large_material</item> 800 <item name="minWidth">@dimen/progress_bar_size_large</item> 801 <item name="maxWidth">@dimen/progress_bar_size_large</item> 802 <item name="minHeight">@dimen/progress_bar_size_large</item> 803 <item name="maxHeight">@dimen/progress_bar_size_large</item> 804 </style> 805 806 <style name="Widget.Material.ProgressBar.Large.Inverse"/> 807 808 <style name="Widget.Material.SeekBar"> 809 <item name="indeterminateOnly">false</item> 810 <item name="progressDrawable">@drawable/seekbar_track_material</item> 811 <item name="indeterminateDrawable">@drawable/seekbar_track_material</item> 812 <item name="thumb">@drawable/seekbar_thumb_material_anim</item> 813 <item name="splitTrack">true</item> 814 <item name="useDisabledAlpha">false</item> 815 <item name="focusable">true</item> 816 <item name="paddingStart">16dip</item> 817 <item name="paddingEnd">16dip</item> 818 <item name="mirrorForRtl">true</item> 819 <item name="background">@drawable/control_background_32dp_material</item> 820 </style> 821 822 <!-- A seek bar with tick marks at each progress value. --> 823 <style name="Widget.Material.SeekBar.Discrete"> 824 <item name="tickMark">@drawable/seekbar_tick_mark_material</item> 825 </style> 826 827 <style name="Widget.Material.RatingBar" parent="Widget.RatingBar"> 828 <item name="progressDrawable">@drawable/ratingbar_material</item> 829 <item name="indeterminateDrawable">@drawable/ratingbar_material</item> 830 </style> 831 832 <style name="Widget.Material.RatingBar.Indicator" parent="Widget.RatingBar.Indicator"> 833 <item name="progressDrawable">@drawable/ratingbar_indicator_material</item> 834 <item name="indeterminateDrawable">@drawable/ratingbar_indicator_material</item> 835 <item name="minHeight">36dp</item> 836 <item name="maxHeight">36dp</item> 837 </style> 838 839 <style name="Widget.Material.RatingBar.Small" parent="Widget.RatingBar.Small"> 840 <item name="progressDrawable">@drawable/ratingbar_small_material</item> 841 <item name="indeterminateDrawable">@drawable/ratingbar_small_material</item> 842 <item name="minHeight">16dp</item> 843 <item name="maxHeight">16dp</item> 844 </style> 845 846 <style name="Widget.Material.ScrollView" parent="Widget.ScrollView"/> 847 <style name="Widget.Material.HorizontalScrollView" parent="Widget.HorizontalScrollView"/> 848 849 <style name="Widget.Material.Spinner" parent="Widget.Spinner.DropDown"> 850 <item name="background">@drawable/spinner_background_material</item> 851 <item name="dropDownSelector">?attr/listChoiceBackgroundIndicator</item> 852 <item name="popupBackground">@drawable/popup_background_material</item> 853 <item name="popupElevation">@dimen/floating_window_z</item> 854 <item name="popupAnimationStyle">@empty</item> 855 <item name="popupEnterTransition">@transition/popup_window_enter</item> 856 <item name="popupExitTransition">@transition/popup_window_exit</item> 857 <item name="dropDownVerticalOffset">0dip</item> 858 <item name="dropDownHorizontalOffset">0dip</item> 859 <item name="overlapAnchor">true</item> 860 <item name="dropDownWidth">wrap_content</item> 861 <item name="popupPromptView">@layout/simple_dropdown_hint</item> 862 <item name="gravity">start|center_vertical</item> 863 <item name="disableChildrenWhenDisabled">true</item> 864 </style> 865 866 <style name="Widget.Material.Spinner.DropDown"/> 867 <style name="Widget.Material.Spinner.DropDown.ActionBar" /> 868 869 <style name="Widget.Material.Spinner.Underlined"> 870 <item name="background">@drawable/spinner_textfield_background_material</item> 871 </style> 872 873 <style name="Widget.Material.TabWidget"> 874 <item name="textAppearance">@style/TextAppearance.Material.Widget.TabWidget</item> 875 <item name="ellipsize">marquee</item> 876 <item name="singleLine">true</item> 877 <item name="tabStripLeft">@empty</item> 878 <item name="tabStripRight">@empty</item> 879 <item name="tabStripEnabled">false</item> 880 <item name="divider">?attr/dividerVertical</item> 881 <item name="gravity">fill_horizontal|center_vertical</item> 882 <item name="showDividers">none</item> 883 <item name="dividerPadding">8dip</item> 884 <item name="measureWithLargestChild">true</item> 885 <item name="tabLayout">@layout/tab_indicator_material</item> 886 </style> 887 888 <style name="Widget.Material.Tab" parent="Widget.Material.ActionBar.TabView"> 889 <item name="background">@drawable/tab_indicator_material</item> 890 <item name="layout_width">0dip</item> 891 <item name="layout_weight">1</item> 892 <item name="minWidth">80dip</item> 893 </style> 894 895 <style name="Widget.Material.TabText" parent="Widget.Material.ActionBar.TabText"> 896 <item name="maxWidth">180dip</item> 897 </style> 898 899 <style name="Widget.Material.Toolbar" parent="Widget.Toolbar"> 900 <item name="navigationButtonStyle">@style/Widget.Material.Toolbar.Button.Navigation</item> 901 <item name="titleTextAppearance">@style/TextAppearance.Material.Widget.Toolbar.Title</item> 902 <item name="subtitleTextAppearance">@style/TextAppearance.Material.Widget.Toolbar.Subtitle</item> 903 <item name="paddingStart">@dimen/action_bar_default_padding_start_material</item> 904 <item name="paddingEnd">@dimen/action_bar_default_padding_end_material</item> 905 </style> 906 907 <style name="Widget.Material.Toolbar.Button.Navigation" parent="Widget.Material"> 908 <item name="background">@drawable/control_background_40dp_material</item> 909 <item name="minWidth">56dp</item> 910 <item name="scaleType">center</item> 911 </style> 912 913 <style name="Widget.Material.WebTextView" parent="Widget.WebTextView"/> 914 <style name="Widget.Material.WebView" parent="Widget.WebView"/> 915 916 <style name="Widget.Material.DropDownItem"> 917 <item name="textAppearance">@style/TextAppearance.Material.Widget.DropDownItem</item> 918 <item name="paddingStart">8dp</item> 919 <item name="paddingEnd">8dp</item> 920 <item name="gravity">center_vertical</item> 921 </style> 922 923 <style name="Widget.Material.DropDownItem.Spinner"/> 924 925 <style name="Widget.Material.KeyboardView" parent="Widget.KeyboardView"/> 926 <style name="Widget.Material.QuickContactBadge.WindowSmall" parent="Widget.QuickContactBadge.WindowSmall"/> 927 <style name="Widget.Material.QuickContactBadge.WindowMedium" parent="Widget.QuickContactBadge.WindowMedium"/> 928 <style name="Widget.Material.QuickContactBadge.WindowLarge" parent="Widget.QuickContactBadge.WindowLarge"/> 929 <style name="Widget.Material.QuickContactBadgeSmall.WindowSmall" parent="Widget.QuickContactBadgeSmall.WindowSmall"/> 930 <style name="Widget.Material.QuickContactBadgeSmall.WindowMedium" parent="Widget.QuickContactBadgeSmall.WindowMedium"/> 931 <style name="Widget.Material.QuickContactBadgeSmall.WindowLarge" parent="Widget.QuickContactBadgeSmall.WindowLarge"/> 932 933 <style name="Widget.Material.ListPopupWindow"> 934 <item name="dropDownSelector">?attr/listChoiceBackgroundIndicator</item> 935 <item name="popupBackground">@drawable/popup_background_material</item> 936 <item name="popupElevation">@dimen/floating_window_z</item> 937 <item name="popupAnimationStyle">@empty</item> 938 <item name="popupEnterTransition">@transition/popup_window_enter</item> 939 <item name="popupExitTransition">@transition/popup_window_exit</item> 940 <item name="dropDownVerticalOffset">0dip</item> 941 <item name="dropDownHorizontalOffset">0dip</item> 942 <item name="dropDownWidth">wrap_content</item> 943 </style> 944 945 <style name="Widget.Material.PopupMenu" parent="Widget.Material.ListPopupWindow"/> 946 947 <style name="Widget.Material.PopupMenu.Overflow"> 948 <item name="overlapAnchor">true</item> 949 <item name="dropDownHorizontalOffset">-4dip</item> 950 </style> 951 952 <style name="Widget.Material.ContextPopupMenu" parent="Widget.Material.ListPopupWindow"> 953 <item name="overlapAnchor">true</item> 954 </style> 955 956 <style name="Widget.Material.ActionButton"> 957 <item name="background">?attr/actionBarItemBackground</item> 958 <item name="paddingStart">12dp</item> 959 <item name="paddingEnd">12dp</item> 960 <item name="minWidth">@dimen/action_button_min_width_material</item> 961 <item name="minHeight">@dimen/action_button_min_height_material</item> 962 <item name="gravity">center</item> 963 <item name="scaleType">center</item> 964 <item name="maxLines">2</item> 965 </style> 966 967 <style name="Widget.Material.ActionButton.CloseMode"> 968 <item name="background">@drawable/control_background_40dp_material</item> 969 <!-- Should match Widget.Material.Toolbar.Button.Navigation minWidth. --> 970 <item name="minWidth">56dp</item> 971 </style> 972 973 <style name="Widget.Material.ActionButton.Overflow"> 974 <item name="src">@drawable/ic_menu_moreoverflow_material</item> 975 <item name="background">?attr/actionBarItemBackground</item> 976 <item name="contentDescription">@string/action_menu_overflow_description</item> 977 <item name="tooltipText">@string/action_menu_overflow_description</item> 978 <item name="minWidth">@dimen/action_button_min_width_overflow_material</item> 979 <item name="minHeight">@dimen/action_button_min_height_material</item> 980 <item name="paddingStart">@dimen/action_bar_overflow_padding_start_material</item> 981 <item name="paddingEnd">@dimen/action_bar_overflow_padding_end_material</item> 982 </style> 983 984 <style name="Widget.Material.ActionBar.TabView" parent="Widget.Material"> 985 <item name="gravity">center_horizontal</item> 986 <item name="background">@drawable/tab_indicator_material</item> 987 <item name="paddingStart">16dip</item> 988 <item name="paddingEnd">16dip</item> 989 </style> 990 991 <style name="Widget.Material.ActionBar.TabBar" parent="Widget.Material"> 992 <item name="divider">?attr/actionBarDivider</item> 993 <item name="showDividers">middle</item> 994 <item name="dividerPadding">12dip</item> 995 </style> 996 997 <style name="Widget.Material.ActionBar.TabText"> 998 <item name="textAppearance">@style/TextAppearance.Material.Widget.TabWidget</item> 999 <item name="ellipsize">marquee</item> 1000 <item name="maxLines">2</item> 1001 </style> 1002 1003 <style name="Widget.Material.ActionBar"> 1004 <item name="background">@null</item> 1005 <item name="backgroundStacked">@null</item> 1006 <item name="backgroundSplit">@null</item> 1007 <item name="displayOptions">showTitle</item> 1008 <item name="divider">?attr/dividerVertical</item> 1009 <item name="height">?attr/actionBarSize</item> 1010 <item name="paddingStart">0dip</item> 1011 <item name="paddingTop">0dip</item> 1012 <item name="paddingEnd">0dip</item> 1013 <item name="paddingBottom">0dip</item> 1014 <item name="titleTextStyle">@style/TextAppearance.Material.Widget.ActionBar.Title</item> 1015 <item name="subtitleTextStyle">@style/TextAppearance.Material.Widget.ActionBar.Subtitle</item> 1016 <item name="progressBarStyle">?attr/progressBarStyleHorizontal</item> 1017 <item name="indeterminateProgressStyle">?attr/progressBarStyle</item> 1018 <item name="progressBarPadding">32dp</item> 1019 <item name="itemPadding">8dp</item> 1020 <item name="homeLayout">@layout/action_bar_home_material</item> 1021 <item name="gravity">center_vertical</item> 1022 <item name="contentInsetStart">@dimen/action_bar_content_inset_material</item> 1023 <item name="contentInsetStartWithNavigation">@dimen/action_bar_content_inset_with_nav</item> 1024 <item name="contentInsetEnd">@dimen/action_bar_content_inset_material</item> 1025 <item name="elevation">@dimen/action_bar_elevation_material</item> 1026 <item name="popupTheme">?attr/actionBarPopupTheme</item> 1027 </style> 1028 1029 <style name="Widget.Material.ActionBar.Solid"> 1030 <item name="background">?attr/colorPrimary</item> 1031 <item name="backgroundStacked">?attr/colorPrimary</item> 1032 <item name="backgroundSplit">?attr/colorPrimary</item> 1033 </style> 1034 1035 <style name="Widget.Material.ActionMode"> 1036 <item name="background">?attr/actionModeBackground</item> 1037 <item name="backgroundSplit">?attr/actionModeSplitBackground</item> 1038 <item name="height">?attr/actionBarSize</item> 1039 <item name="titleTextStyle">@style/TextAppearance.Material.Widget.ActionMode.Title</item> 1040 <item name="subtitleTextStyle">@style/TextAppearance.Material.Widget.ActionMode.Subtitle</item> 1041 <item name="closeItemLayout">@layout/action_mode_close_item_material</item> 1042 </style> 1043 1044 <style name="Widget.Material.FastScroll"> 1045 <item name="thumbDrawable">?attr/fastScrollThumbDrawable</item> 1046 <item name="trackDrawable">?attr/fastScrollTrackDrawable</item> 1047 <item name="backgroundLeft">?attr/fastScrollPreviewBackgroundLeft</item> 1048 <item name="backgroundRight">?attr/fastScrollPreviewBackgroundRight</item> 1049 <item name="position">?attr/fastScrollOverlayPosition</item> 1050 <item name="textColor">?attr/fastScrollTextColor</item> 1051 <item name="thumbMinWidth">0dp</item> 1052 <item name="thumbMinHeight">0dp</item> 1053 <item name="textSize">45sp</item> 1054 <item name="minWidth">104dp</item> 1055 <item name="minHeight">88dp</item> 1056 <item name="padding">0dp</item> 1057 <item name="thumbPosition">inside</item> 1058 </style> 1059 1060 <style name="Widget.Material.PreferenceFrameLayout"> 1061 <item name="borderTop">0dip</item> 1062 <item name="borderBottom">@dimen/preference_fragment_padding_bottom</item> 1063 <item name="borderLeft">?attr/preferenceFragmentPaddingSide</item> 1064 <item name="borderRight">?attr/preferenceFragmentPaddingSide</item> 1065 </style> 1066 1067 <style name="Widget.Material.MediaRouteButton" parent ="Widget.Material.ActionButton"> 1068 <item name="externalRouteEnabledDrawable">@drawable/ic_media_route_dark_material</item> 1069 <item name="contentDescription">@string/media_route_button_content_description</item> 1070 </style> 1071 1072 <style name="Widget.Material.SuggestionItem"> 1073 <item name="textAppearance">@android:style/TextAppearance.Material.Body1</item> 1074 <item name="textColor">?attr/textColorSecondary</item> 1075 <item name="drawablePadding">8dip</item> 1076 <item name="gravity">start|center_vertical</item> 1077 <item name="layout_gravity">start|center_vertical</item> 1078 <item name="layout_height">48dip</item> 1079 <item name="layout_width">match_parent</item> 1080 <item name="paddingBottom">8dip</item> 1081 <item name="paddingEnd">16dip</item> 1082 <item name="paddingStart">16dip</item> 1083 <item name="paddingTop">8dip</item> 1084 <item name="singleLine">true</item> 1085 <item name="textSize">14sp</item> 1086 </style> 1087 1088 <style name="TextAppearance.Material.TextSuggestionHighlight"> 1089 <item name="textColor">?attr/textColorPrimary</item> 1090 </style> 1091 1092 <style name="Widget.Material.SuggestionButton"> 1093 <item name="textAppearance">@android:style/TextAppearance.Material.Button</item> 1094 <item name="textColor">?attr/colorAccent</item> 1095 <item name="drawablePadding">8dip</item> 1096 <item name="gravity">start|center_vertical</item> 1097 <item name="layout_gravity">start|center_vertical</item> 1098 <item name="layout_height">48dip</item> 1099 <item name="layout_width">match_parent</item> 1100 <item name="paddingBottom">8dip</item> 1101 <item name="paddingEnd">16dip</item> 1102 <item name="paddingStart">16dip</item> 1103 <item name="paddingTop">8dip</item> 1104 <item name="singleLine">true</item> 1105 <item name="textAllCaps">true</item> 1106 <item name="textSize">14sp</item> 1107 </style> 1108 1109 <!-- Light widget styles --> 1110 1111 <style name="Widget.Material.Light" parent="Widget.Material"/> 1112 <style name="Widget.Material.Light.Button" parent="Widget.Material.Button"/> 1113 <style name="Widget.Material.Light.Button.Small" parent="Widget.Material.Button.Small"/> 1114 <style name="Widget.Material.Light.Button.Borderless" parent="Widget.Material.Button.Borderless"/> 1115 <style name="Widget.Material.Light.Button.Borderless.Colored" parent="Widget.Material.Button.Borderless.Colored"/> 1116 <style name="Widget.Material.Light.Button.ButtonBar.AlertDialog" parent="Widget.Material.Button.ButtonBar.AlertDialog" /> 1117 <style name="Widget.Material.Light.Button.Borderless.Small" parent="Widget.Material.Button.Borderless.Small"/> 1118 <style name="Widget.Material.Light.Button.Inset" parent="Widget.Material.Button.Inset"/> 1119 <style name="Widget.Material.Light.Button.Toggle" parent="Widget.Material.Button.Toggle" /> 1120 <style name="Widget.Material.Light.ButtonBar" parent="Widget.Material.ButtonBar"/> 1121 <style name="Widget.Material.Light.ButtonBar.AlertDialog" parent="Widget.Material.ButtonBar.AlertDialog"/> 1122 <style name="Widget.Material.Light.SearchView" parent="Widget.Material.SearchView"/> 1123 <style name="Widget.Material.Light.SearchView.ActionBar" parent="Widget.Material.SearchView.ActionBar"/> 1124 1125 <style name="Widget.Material.Light.SegmentedButton" parent="Widget.Material.SegmentedButton"> 1126 <item name="background">@drawable/btn_group_holo_light</item> 1127 </style> 1128 1129 <style name="Widget.Material.Light.StackView" parent="Widget.Material.StackView"/> 1130 <style name="Widget.Material.Light.TextView" parent="Widget.Material.TextView"/> 1131 <style name="Widget.Material.Light.TextView.ListSeparator" parent="Widget.Material.TextView.ListSeparator"/> 1132 <style name="Widget.Material.Light.TextView.SpinnerItem" parent="Widget.Material.TextView.SpinnerItem"/> 1133 <style name="Widget.Material.Light.CheckedTextView" parent="Widget.Material.CheckedTextView"/> 1134 <style name="Widget.Material.Light.TextSelectHandle" parent="Widget.Material.TextSelectHandle"/> 1135 <style name="Widget.Material.Light.AbsListView" parent="Widget.Material.AbsListView"/> 1136 <style name="Widget.Material.Light.AutoCompleteTextView" parent="Widget.Material.AutoCompleteTextView" /> 1137 <style name="Widget.Material.Light.CompoundButton" parent="Widget.Material.CompoundButton"/> 1138 <style name="Widget.Material.Light.CompoundButton.CheckBox" parent="Widget.Material.CompoundButton.CheckBox"/> 1139 <style name="Widget.Material.Light.CompoundButton.RadioButton" parent="Widget.Material.CompoundButton.RadioButton"/> 1140 <style name="Widget.Material.Light.CompoundButton.Star" parent="Widget.Material.CompoundButton.Star"/> 1141 <style name="Widget.Material.Light.CompoundButton.Switch" parent="Widget.Material.CompoundButton.Switch" /> 1142 <style name="Widget.Material.Light.ListView.DropDown" parent="Widget.Material.ListView.DropDown"/> 1143 <style name="Widget.Material.Light.EditText" parent="Widget.Material.EditText"/> 1144 <style name="Widget.Material.Light.ExpandableListView" parent="Widget.Material.ExpandableListView"/> 1145 <style name="Widget.Material.Light.ExpandableListView.White" parent="Widget.Material.ExpandableListView.White"/> 1146 <style name="Widget.Material.Light.FragmentBreadCrumbs" parent="Widget.Material.FragmentBreadCrumbs" > 1147 <item name="itemColor">@color/primary_text_default_material_dark</item> 1148 </style> 1149 <style name="Widget.Material.Light.Gallery" parent="Widget.Material.Gallery"/> 1150 <style name="Widget.Material.Light.GestureOverlayView" parent="Widget.Material.GestureOverlayView"/> 1151 <style name="Widget.Material.Light.GridView" parent="Widget.Material.GridView"/> 1152 <style name="Widget.Material.Light.ImageButton" parent="Widget.Material.ImageButton"/> 1153 <style name="Widget.Material.Light.CalendarView" parent="Widget.Material.CalendarView" /> 1154 <style name="Widget.Material.Light.NumberPicker" parent="Widget.Material.NumberPicker"/> 1155 1156 <style name="Widget.Material.Light.TimePicker" parent="Widget.Material.TimePicker"> 1157 <item name="headerTextColor">@color/primary_text_secondary_when_activated_material_inverse</item> 1158 <item name="headerBackground">?attr/colorAccent</item> 1159 <item name="numbersBackgroundColor">#ffeeeeee</item> 1160 </style> 1161 1162 <style name="Widget.Material.Light.DatePicker" parent="Widget.Material.DatePicker"> 1163 <item name="headerTextColor">@color/primary_text_secondary_when_activated_material_inverse</item> 1164 <item name="headerBackground">?attr/colorAccent</item> 1165 </style> 1166 1167 <style name="Widget.Material.Light.ActivityChooserView" parent="Widget.Material.ActivityChooserView" /> 1168 <style name="Widget.Material.Light.ImageWell" parent="Widget.Material.ImageWell"/> 1169 <style name="Widget.Material.Light.ListView" parent="Widget.Material.ListView"/> 1170 <style name="Widget.Material.Light.ListView.White" parent="Widget.Material.ListView.White"/> 1171 <style name="Widget.Material.Light.PopupWindow" parent="Widget.Material.PopupWindow"/> 1172 <style name="Widget.Material.Light.PopupWindow.ActionMode" parent="Widget.Material.PopupWindow.ActionMode"/> 1173 <style name="Widget.Material.Light.ProgressBar" parent="Widget.Material.ProgressBar"/> 1174 <style name="Widget.Material.Light.ProgressBar.Horizontal" parent="Widget.Material.ProgressBar.Horizontal"/> 1175 <style name="Widget.Material.Light.ProgressBar.Small" parent="Widget.Material.ProgressBar.Small"/> 1176 <style name="Widget.Material.Light.ProgressBar.Small.Title" parent="Widget.Material.ProgressBar.Small.Title"/> 1177 <style name="Widget.Material.Light.ProgressBar.Large" parent="Widget.Material.ProgressBar.Large"/> 1178 <style name="Widget.Material.Light.ProgressBar.Inverse" parent="Widget.Material.ProgressBar.Inverse"/> 1179 <style name="Widget.Material.Light.ProgressBar.Small.Inverse" parent="Widget.Material.ProgressBar.Small.Inverse"/> 1180 <style name="Widget.Material.Light.ProgressBar.Large.Inverse" parent="Widget.Material.ProgressBar.Large.Inverse"/> 1181 <style name="Widget.Material.Light.SeekBar" parent="Widget.Material.SeekBar"/> 1182 <style name="Widget.Material.Light.RatingBar" parent="Widget.Material.RatingBar"/> 1183 <style name="Widget.Material.Light.RatingBar.Indicator" parent="Widget.Material.RatingBar.Indicator"/> 1184 <style name="Widget.Material.Light.RatingBar.Small" parent="Widget.Material.RatingBar.Small"/> 1185 <style name="Widget.Material.Light.ScrollView" parent="Widget.Material.ScrollView"/> 1186 <style name="Widget.Material.Light.HorizontalScrollView" parent="Widget.Material.HorizontalScrollView"/> 1187 <style name="Widget.Material.Light.Spinner" parent="Widget.Material.Spinner" /> 1188 <style name="Widget.Material.Light.Spinner.DropDown" parent="Widget.Material.Spinner.DropDown"/> 1189 <style name="Widget.Material.Light.Spinner.DropDown.ActionBar" parent="Widget.Material.Spinner.DropDown.ActionBar"/> 1190 <style name="Widget.Material.Light.Spinner.Underlined" parent="Widget.Material.Spinner.Underlined" /> 1191 <style name="Widget.Material.Light.TabWidget" parent="Widget.Material.TabWidget"/> 1192 <style name="Widget.Material.Light.WebTextView" parent="Widget.Material.WebTextView"/> 1193 <style name="Widget.Material.Light.WebView" parent="Widget.Material.WebView"/> 1194 <style name="Widget.Material.Light.DropDownItem" parent="Widget.Material.DropDownItem"/> 1195 <style name="Widget.Material.Light.DropDownItem.Spinner" parent="Widget.Material.DropDownItem.Spinner"/> 1196 <style name="Widget.Material.Light.KeyboardView" parent="Widget.Material.KeyboardView"/> 1197 <style name="Widget.Material.Light.QuickContactBadge.WindowSmall" parent="Widget.Material.QuickContactBadge.WindowSmall"/> 1198 <style name="Widget.Material.Light.QuickContactBadge.WindowMedium" parent="Widget.Material.QuickContactBadge.WindowMedium"/> 1199 <style name="Widget.Material.Light.QuickContactBadge.WindowLarge" parent="Widget.Material.QuickContactBadge.WindowLarge"/> 1200 <style name="Widget.Material.Light.QuickContactBadgeSmall.WindowSmall" parent="Widget.Material.QuickContactBadgeSmall.WindowSmall"/> 1201 <style name="Widget.Material.Light.QuickContactBadgeSmall.WindowMedium" parent="Widget.Material.QuickContactBadgeSmall.WindowMedium"/> 1202 <style name="Widget.Material.Light.QuickContactBadgeSmall.WindowLarge" parent="Widget.Material.QuickContactBadgeSmall.WindowLarge"/> 1203 <style name="Widget.Material.Light.ListPopupWindow" parent="Widget.Material.ListPopupWindow"/> 1204 <style name="Widget.Material.Light.PopupMenu" parent="Widget.Material.ListPopupWindow"/> 1205 <style name="Widget.Material.Light.PopupMenu.Overflow" parent="Widget.Material.PopupMenu.Overflow"/> 1206 <style name="Widget.Material.Light.ActionButton" parent="Widget.Material.ActionButton"/> 1207 <style name="Widget.Material.Light.ActionButton.Overflow" parent="Widget.Material.ActionButton.Overflow"/> 1208 <style name="Widget.Material.Light.Tab" parent="Widget.Material.Tab"/> 1209 <style name="Widget.Material.Light.ActionBar.TabView" parent="Widget.Material.ActionBar.TabView"/> 1210 <style name="Widget.Material.Light.ActionBar.TabBar" parent="Widget.Material.ActionBar.TabBar"/> 1211 <style name="Widget.Material.Light.ActionBar.TabText" parent="Widget.Material.ActionBar.TabText"/> 1212 <style name="Widget.Material.Light.ActionMode" parent="Widget.Material.ActionMode" /> 1213 <style name="Widget.Material.Light.ActionButton.CloseMode" parent="Widget.Material.ActionButton.CloseMode" /> 1214 <style name="Widget.Material.Light.ActionBar" parent="Widget.Material.ActionBar" /> 1215 <style name="Widget.Material.Light.ActionBar.Solid" parent="Widget.Material.ActionBar.Solid" /> 1216 <style name="Widget.Material.Light.FastScroll" parent="Widget.Material.FastScroll"/> 1217 1218 <style name="Widget.Material.Light.MediaRouteButton" parent="Widget.Material.MediaRouteButton"> 1219 <item name="externalRouteEnabledDrawable">@drawable/ic_media_route_light_material</item> 1220 </style> 1221 1222 <!-- Animation Styles --> 1223 1224 <style name="Animation.Material" parent="Animation"/> 1225 <style name="Animation.Material.Activity" parent="Animation.Activity"/> 1226 1227 <style name="Animation.Material.Dialog"> 1228 <item name="windowEnterAnimation">@anim/popup_enter_material</item> 1229 <item name="windowExitAnimation">@anim/popup_exit_material</item> 1230 </style> 1231 1232 <style name="Animation.Material.Popup"> 1233 <item name="windowEnterAnimation">@anim/popup_enter_material</item> 1234 <item name="windowExitAnimation">@anim/popup_exit_material</item> 1235 </style> 1236 1237 <!-- Dialog styles --> 1238 1239 <style name="AlertDialog.Material" parent="AlertDialog"> 1240 <item name="fullDark">@empty</item> 1241 <item name="topDark">@empty</item> 1242 <item name="centerDark">@empty</item> 1243 <item name="bottomDark">@empty</item> 1244 <item name="fullBright">@empty</item> 1245 <item name="topBright">@empty</item> 1246 <item name="centerBright">@empty</item> 1247 <item name="bottomBright">@empty</item> 1248 <item name="bottomMedium">@empty</item> 1249 <item name="centerMedium">@empty</item> 1250 <item name="layout">@layout/alert_dialog_material</item> 1251 <item name="listLayout">@layout/select_dialog_material</item> 1252 <item name="progressLayout">@layout/progress_dialog_material</item> 1253 <item name="horizontalProgressLayout">@layout/alert_dialog_progress_material</item> 1254 <item name="listItemLayout">@layout/select_dialog_item_material</item> 1255 <item name="multiChoiceItemLayout">@layout/select_dialog_multichoice_material</item> 1256 <item name="singleChoiceItemLayout">@layout/select_dialog_singlechoice_material</item> 1257 <item name="controllerType">@integer/config_alertDialogController</item> 1258 <item name="selectionScrollOffset">@dimen/config_alertDialogSelectionScrollOffset</item> 1259 </style> 1260 1261 <style name="AlertDialog.Material.Light" /> 1262 1263 <style name="DatePickerDialog.Material" parent="AlertDialog.Material"> 1264 <item name="showTitle">false</item> 1265 </style> 1266 1267 <style name="TimePickerDialog.Material" parent="AlertDialog.Material"> 1268 <item name="showTitle">false</item> 1269 </style> 1270 1271 <!-- Window title --> 1272 <style name="WindowTitleBackground.Material"> 1273 <item name="background">@null</item> 1274 <item name="paddingStart">16dp</item> 1275 <item name="paddingEnd">16dp</item> 1276 <item name="paddingTop">16dp</item> 1277 </style> 1278 1279 <style name="WindowTitle.Material"> 1280 <item name="singleLine">true</item> 1281 <item name="textAppearance">@style/TextAppearance.Material.WindowTitle</item> 1282 <item name="shadowRadius">0</item> 1283 <item name="ellipsize">end</item> 1284 <item name="textAlignment">viewStart</item> 1285 </style> 1286 1287 <style name="DialogWindowTitleBackground.Material"> 1288 <item name="background">@null</item> 1289 <item name="paddingStart">?attr/dialogPreferredPadding</item> 1290 <item name="paddingEnd">?attr/dialogPreferredPadding</item> 1291 <item name="paddingTop">@dimen/dialog_padding_top_material</item> 1292 </style> 1293 1294 <style name="DialogWindowTitleBackground.Material.Light" /> 1295 1296 <style name="DialogWindowTitle.Material"> 1297 <item name="maxLines">1</item> 1298 <item name="scrollHorizontally">true</item> 1299 <item name="textAppearance">@style/TextAppearance.Material.DialogWindowTitle</item> 1300 </style> 1301 1302 <style name="DialogWindowTitle.Material.Light" /> 1303 1304 <style name="Notification.Header" parent=""> 1305 <item name="paddingTop">@dimen/notification_header_padding_top</item> 1306 <item name="paddingBottom">@dimen/notification_header_padding_bottom</item> 1307 <item name="layout_marginBottom">@dimen/notification_header_margin_bottom</item> 1308 <item name="paddingStart">@dimen/notification_content_margin_start</item> 1309 <item name="paddingEnd">@dimen/notification_content_margin_end</item> 1310 <item name="gravity">top</item> 1311 </style> 1312 1313 1314</resources> 1315