|
16 | 16 | -->
|
17 | 17 | <resources xmlns:tools="http://schemas.android.com/tools">
|
18 | 18 |
|
19 |
| - <!-- All new attributes should be set in the following four Base.V14 themes. --> |
20 |
| - <eat-comment/> |
21 |
| - |
22 |
| - <style name="Base.V14.Theme.Material3.Light" parent="Theme.MaterialComponents.Light"> |
| 19 | + <style name="Base.Theme.Material3.Light" parent="Theme.MaterialComponents.Light"> |
23 | 20 | <item name="isMaterial3Theme">true</item>
|
24 | 21 |
|
25 | 22 | <!-- Color palettes -->
|
|
124 | 121 | <item name="collapsingToolbarLayoutStyle">@style/Widget.Material3.CollapsingToolbar</item>
|
125 | 122 | <item name="collapsingToolbarLayoutMediumStyle">@style/Widget.Material3.CollapsingToolbar.Medium</item>
|
126 | 123 | <item name="collapsingToolbarLayoutLargeStyle">@style/Widget.Material3.CollapsingToolbar.Large</item>
|
| 124 | + <item name="android:contextPopupMenuStyle" tools:targetApi="n">@style/Widget.Material3.PopupMenu.ContextMenu</item> |
127 | 125 | <item name="drawerLayoutStyle">@style/Widget.Material3.DrawerLayout</item>
|
128 | 126 | <item name="extendedFloatingActionButtonStyle">?attr/extendedFloatingActionButtonPrimaryStyle</item>
|
129 | 127 | <item name="extendedFloatingActionButtonPrimaryStyle">@style/Widget.Material3.ExtendedFloatingActionButton.Icon.Primary</item>
|
|
326 | 324 | <item name="dynamicColorThemeOverlay">@style/ThemeOverlay.Material3.DynamicColors.Light</item>
|
327 | 325 | </style>
|
328 | 326 |
|
329 |
| - <style name="Base.V14.Theme.Material3.Dark" parent="Theme.MaterialComponents"> |
| 327 | + <style name="Base.Theme.Material3.Dark" parent="Theme.MaterialComponents"> |
330 | 328 | <item name="isMaterial3Theme">true</item>
|
331 | 329 |
|
332 | 330 | <!-- Color palettes -->
|
|
431 | 429 | <item name="collapsingToolbarLayoutStyle">@style/Widget.Material3.CollapsingToolbar</item>
|
432 | 430 | <item name="collapsingToolbarLayoutMediumStyle">@style/Widget.Material3.CollapsingToolbar.Medium</item>
|
433 | 431 | <item name="collapsingToolbarLayoutLargeStyle">@style/Widget.Material3.CollapsingToolbar.Large</item>
|
| 432 | + <item name="android:contextPopupMenuStyle" tools:targetApi="n">@style/Widget.Material3.PopupMenu.ContextMenu</item> |
434 | 433 | <item name="drawerLayoutStyle">@style/Widget.Material3.DrawerLayout</item>
|
435 | 434 | <item name="extendedFloatingActionButtonStyle">?attr/extendedFloatingActionButtonPrimaryStyle</item>
|
436 | 435 | <item name="extendedFloatingActionButtonPrimaryStyle">@style/Widget.Material3.ExtendedFloatingActionButton.Icon.Primary</item>
|
|
633 | 632 | <item name="dynamicColorThemeOverlay">@style/ThemeOverlay.Material3.DynamicColors.Dark</item>
|
634 | 633 | </style>
|
635 | 634 |
|
636 |
| - <style name="Base.Theme.Material3.Light" parent="Base.V14.Theme.Material3.Light"/> |
637 |
| - <style name="Base.Theme.Material3.Dark" parent="Base.V14.Theme.Material3.Dark"/> |
638 |
| - |
639 | 635 | <!-- We're not large, so redirect to Base.Theme.Material3 -->
|
640 | 636 | <style name="Base.Theme.Material3.Light.DialogWhenLarge" parent="Base.Theme.Material3.Light"/>
|
641 | 637 | <style name="Base.Theme.Material3.Dark.DialogWhenLarge" parent="Base.Theme.Material3.Dark"/>
|
642 | 638 |
|
643 |
| - <style name="Base.V14.Theme.MaterialComponents" parent="Base.V14.Theme.MaterialComponents.Bridge"> |
| 639 | + <!-- Themes in the "Base.Theme" family vary based on the current platform |
| 640 | + version to provide the correct basis on each device. You probably don't |
| 641 | + want to use them directly in your apps. |
| 642 | +
|
| 643 | + Themes in the "Theme.MaterialComponents" family are meant to be extended or used |
| 644 | + directly by apps. --> |
| 645 | + <eat-comment/> |
| 646 | + |
| 647 | + <style name="Base.Theme.MaterialComponents" parent="Base.Theme.MaterialComponents.Bridge"> |
644 | 648 | <item name="viewInflaterClass">com.google.android.material.theme.MaterialComponentsViewInflater</item>
|
645 | 649 |
|
646 | 650 | <!-- Colors -->
|
|
689 | 693 | <!-- Dialog themes -->
|
690 | 694 | <item name="bottomSheetDialogTheme">@style/ThemeOverlay.MaterialComponents.BottomSheetDialog</item>
|
691 | 695 | <item name="alertDialogTheme">@style/ThemeOverlay.MaterialComponents.Dialog.Alert</item>
|
| 696 | + <item name="android:alertDialogTheme">@style/ThemeOverlay.MaterialComponents.Dialog.Alert.Framework</item> |
692 | 697 | <item name="materialAlertDialogTheme">@style/ThemeOverlay.MaterialComponents.MaterialAlertDialog</item>
|
693 | 698 | <item name="android:datePickerDialogTheme">@style/ThemeOverlay.MaterialComponents.Dialog</item>
|
694 | 699 | <item name="android:timePickerDialogTheme">@style/ThemeOverlay.MaterialComponents.Dialog</item>
|
|
704 | 709 | <item name="materialTimePickerTheme">@style/ThemeOverlay.MaterialComponents.TimePicker</item>
|
705 | 710 | </style>
|
706 | 711 |
|
707 |
| - <style name="Base.V21.Theme.MaterialComponents" parent="Base.V14.Theme.MaterialComponents"> |
708 |
| - <item name="android:alertDialogTheme">@style/ThemeOverlay.MaterialComponents.Dialog.Alert.Framework</item> |
709 |
| - </style> |
710 |
| - |
711 |
| - <style name="Base.V14.Theme.MaterialComponents.Light" parent="Base.V14.Theme.MaterialComponents.Light.Bridge"> |
| 712 | + <style name="Base.Theme.MaterialComponents.Light" parent="Base.Theme.MaterialComponents.Light.Bridge"> |
712 | 713 | <item name="viewInflaterClass">com.google.android.material.theme.MaterialComponentsViewInflater</item>
|
713 | 714 |
|
714 | 715 | <!-- Colors -->
|
|
756 | 757 | <!-- Dialog themes -->
|
757 | 758 | <item name="bottomSheetDialogTheme">@style/ThemeOverlay.MaterialComponents.BottomSheetDialog</item>
|
758 | 759 | <item name="alertDialogTheme">@style/ThemeOverlay.MaterialComponents.Dialog.Alert</item>
|
| 760 | + <item name="android:alertDialogTheme">@style/ThemeOverlay.MaterialComponents.Light.Dialog.Alert.Framework</item> |
759 | 761 | <item name="materialAlertDialogTheme">@style/ThemeOverlay.MaterialComponents.MaterialAlertDialog</item>
|
760 | 762 | <item name="android:datePickerDialogTheme">@style/ThemeOverlay.MaterialComponents.Dialog</item>
|
761 | 763 | <item name="android:timePickerDialogTheme">@style/ThemeOverlay.MaterialComponents.Dialog</item>
|
|
771 | 773 | <item name="materialTimePickerTheme">@style/ThemeOverlay.MaterialComponents.TimePicker</item>
|
772 | 774 | </style>
|
773 | 775 |
|
774 |
| - <style name="Base.V21.Theme.MaterialComponents.Light" parent="Base.V14.Theme.MaterialComponents.Light"> |
775 |
| - <item name="android:alertDialogTheme">@style/ThemeOverlay.MaterialComponents.Light.Dialog.Alert.Framework</item> |
776 |
| - </style> |
777 |
| - |
778 |
| - <!-- Themes in the "Base.Theme" family vary based on the current platform |
779 |
| - version to provide the correct basis on each device. You probably don't |
780 |
| - want to use them directly in your apps. |
781 |
| -
|
782 |
| - Themes in the "Theme.MaterialComponents" family are meant to be extended or used |
783 |
| - directly by apps. --> |
784 |
| - <eat-comment/> |
785 |
| - |
786 |
| - <style name="Base.Theme.MaterialComponents" parent="Base.V21.Theme.MaterialComponents"/> |
787 |
| - |
788 |
| - <style name="Base.Theme.MaterialComponents.Light" parent="Base.V21.Theme.MaterialComponents.Light"/> |
789 |
| - |
790 | 776 | <style name="Base.Theme.MaterialComponents.Light.DarkActionBar" parent="Base.Theme.MaterialComponents.Light">
|
791 | 777 | <item name="actionBarWidgetTheme">@null</item>
|
792 | 778 | <item name="actionBarTheme">@style/ThemeOverlay.MaterialComponents.Dark.ActionBar</item>
|
|
0 commit comments