-
Notifications
You must be signed in to change notification settings - Fork 3k
/
styles.xml
81 lines (73 loc) · 3.74 KB
/
styles.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2017 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<resources xmlns:tools="http://schemas.android.com/tools">
<style name="Animation.Design.BottomSheetDialog" parent="Animation.AppCompat.Dialog">
<item name="android:windowEnterAnimation">@anim/design_bottom_sheet_slide_in</item>
<item name="android:windowExitAnimation">@anim/design_bottom_sheet_slide_out</item>
</style>
<style name="Animation.MaterialComponents.BottomSheetDialog" parent="Animation.AppCompat.Dialog">
<item name="android:windowEnterAnimation">@anim/mtrl_bottom_sheet_slide_in</item>
<item name="android:windowExitAnimation">@anim/mtrl_bottom_sheet_slide_out</item>
</style>
<style name="Widget.Design.BottomSheet.Modal" parent="android:Widget">
<item name="enforceMaterialTheme">false</item>
<item name="android:background">?android:attr/colorBackground</item>
<item name="android:elevation" tools:ignore="NewApi">
@dimen/design_bottom_sheet_modal_elevation
</item>
<item name="behavior_peekHeight">auto</item>
<item name="behavior_hideable">true</item>
<item name="behavior_skipCollapsed">false</item>
<item name="shapeAppearance">@null</item>
<item name="shapeAppearanceOverlay">@null</item>
<item name="backgroundTint">@null</item>
</style>
<style name="Widget.MaterialComponents.BottomSheet" parent="Widget.Design.BottomSheet.Modal">
<item name="enforceMaterialTheme">true</item>
<item name="android:background">@null</item>
<item name="android:layout_gravity">center_horizontal</item>
<item name="shapeAppearance">?attr/shapeAppearanceLargeComponent</item>
<item name="shapeAppearanceOverlay">@style/ShapeAppearanceOverlay.MaterialComponents.BottomSheet</item>
<item name="backgroundTint">?attr/colorSurface</item>
<item name="android:elevation" tools:ignore="NewApi">
@dimen/design_bottom_sheet_elevation
</item>
<item name="android:maxWidth">@dimen/material_bottom_sheet_max_width</item>
</style>
<style name="Widget.MaterialComponents.BottomSheet.Modal" parent="Widget.MaterialComponents.BottomSheet">
<item name="android:elevation" tools:ignore="NewApi">
@dimen/design_bottom_sheet_modal_elevation
</item>
</style>
<style name="ShapeAppearanceOverlay.MaterialComponents.BottomSheet" parent="">
<item name="cornerSizeBottomRight">0dp</item>
<item name="cornerSizeBottomLeft">0dp</item>
</style>
<!-- Style for the M3 Bottom Sheet. -->
<style name="Widget.Material3.BottomSheet" parent="Widget.MaterialComponents.BottomSheet">
<item name="android:elevation" tools:ignore="NewApi">@dimen/m3_bottom_sheet_elevation</item>
<item name="marginLeftSystemWindowInsets">true</item>
<item name="marginRightSystemWindowInsets">true</item>
<item name="paddingBottomSystemWindowInsets">true</item>
<item name="paddingTopSystemWindowInsets">true</item>
<item name="paddingLeftSystemWindowInsets">false</item>
<item name="paddingRightSystemWindowInsets">false</item>
</style>
<style name="Widget.Material3.BottomSheet.Modal">
<item name="android:elevation" tools:ignore="NewApi">@dimen/m3_bottom_sheet_modal_elevation</item>
</style>
</resources>