blob: 0951e9931184c5898c2cc011cc823ace453589b1 [file] [log] [blame]
Joey13020a42020-01-25 16:46:47 +01001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2006 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
19 <style name="TextAppearance" parent="android:TextAppearance.Material">
20 </style>
21
22 <style name="TextAppearance.info_label">
23 <item name="android:textSize">14sp</item>
24 <item name="android:textStyle">bold</item>
25 </style>
26
27 <style name="TextAppearance.info_small">
28 <item name="android:textSize">12sp</item>
29 <item name="android:textStyle">normal</item>
30 </style>
31
32 <style name="TextAppearance.info_value">
33 <item name="android:textSize">14sp</item>
34 <item name="android:textStyle">normal</item>
35 </style>
36
37 <style name="DialogPreferenceStyle" parent="@*android:style/Preference.DeviceDefault.DialogPreference">
38 <item name="allowDividerAbove">false</item>
39 <item name="allowDividerBelow">true</item>
40 <item name="singleLineTitle">false</item>
41 <item name="android:iconSpaceReserved">true</item>
42 </style>
43
44 <style name="DropdownPreferenceStyle" parent="@style/PreferenceStyle">
45 <item name="android:layout">@layout/preference_dropdown_material_settings</item>
46 </style>
47
48 <style name="EditTextPreference" parent="@*android:style/Preference.Material.DialogPreference.EditTextPreference">
49 <item name="android:dialogLayout">@layout/preference_dialog_edittext</item>
50 </style>
51
52 <style name="PreferenceFragmentStyle" parent="@*android:style/PreferenceFragment.Material">
53 <item name="allowDividerAfterLastItem">false</item>
54 <item name="android:layout">@layout/preference_list_fragment</item>
55 </style>
56
57 <style name="PreferenceStyle" parent="@*android:style/Preference.DeviceDefault">
58 <item name="allowDividerAbove">false</item>
59 <item name="allowDividerBelow">true</item>
60 <item name="singleLineTitle">false</item>
61 <item name="android:layout">@layout/preference_material_settings</item>
62 </style>
63
64 <style name="PreferenceTheme" parent="@style/PreferenceThemeOverlay.SettingsBase">
65 <item name="preferenceCategoryTitleTextAppearance">@style/TextAppearance.CategoryTitle
66 </item>
67 </style>
68
69 <style name="PreferenceHeaderPanelSinglePane">
70 <item name="android:layout_marginStart">0dp</item>
71 <item name="android:layout_marginEnd">0dp</item>
72 <item name="android:background">@null</item>
73 </style>
74
75 <style name="PreferencePanelSinglePane" parent="@*android:style/PreferencePanel">
76 <item name="android:layout_marginStart">0dp</item>
77 <item name="android:layout_marginEnd">0dp</item>
78 <item name="android:paddingStart">0dp</item>
79 <item name="android:paddingEnd">0dp</item>
80 <item name="android:background">@null</item>
81 <item name="android:scrollbarStyle">outsideOverlay</item>
82 </style>
83
84 <style name="PreferenceHeaderListSinglePane" parent="@*android:style/PreferenceHeaderList">
85 <item name="android:paddingStart">@dimen/settings_side_margin</item>
86 <item name="android:paddingEnd">@dimen/settings_side_margin</item>
87 <item name="android:paddingTop">0dp</item>
88 <item name="android:paddingBottom">0dp</item>
89 <item name="android:layout_marginStart">0dp</item>
90 <item name="android:layout_marginEnd">0dp</item>
91 <item name="android:layout_marginTop">0dp</item>
92 <item name="android:layout_marginBottom">0dp</item>
93 <item name="android:scrollbarStyle">outsideOverlay</item>
94 </style>
95
96 <style name="PreferenceFragmentListSinglePane" parent="@*android:style/PreferenceFragmentList">
97 <item name="android:paddingStart">@dimen/settings_side_margin</item>
98 <item name="android:paddingEnd">@dimen/settings_side_margin</item>
99 <item name="android:layout_marginStart">0dp</item>
100 <item name="android:layout_marginEnd">0dp</item>
101 <item name="android:scrollbarStyle">outsideOverlay</item>
102 </style>
103
104 <style name="CheckBoxPreferenceStyle" parent="@style/PreferenceStyle">
105 <item name="widgetLayout">@*android:layout/preference_widget_checkbox</item>
106 </style>
107
108 <style name="SwitchPreferenceStyle" parent="@style/PreferenceStyle">
109 <item name="widgetLayout">@*android:layout/preference_widget_switch</item>
110 </style>
111
112 <style name="TextAppearance.PagerTabs" parent="@android:style/TextAppearance.Material.Widget.TabWidget" />
113
114 <style name="TextAppearance.Medium" parent="@android:style/TextAppearance.Material.Medium" />
115 <style name="TextAppearance.Small" parent="@android:style/TextAppearance.Material.Small" />
116 <style name="TextAppearance.Switch" parent="@android:style/TextAppearance.Material.Title" />
117
118 <style name="TextAppearance.CategoryTitle"
119 parent="@*android:style/TextAppearance.DeviceDefault.Body2">
120 <item name="android:textAllCaps">true</item>
121 <item name="android:textSize">11sp</item>
122 <!-- 0.8 Spacing, 0.8/11 = 0.072727273 -->
123 <item name="android:letterSpacing">0.072727273</item>
124 </style>
125
126 <style name="TextAppearance.Small.SwitchBar">
127 <item name="android:textColor">?android:attr/textColorPrimary</item>
128 <item name="android:textStyle">normal</item>
129 </style>
130</resources>