1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2015 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License
16  -->
17
18<resources xmlns:tools="http://schemas.android.com/tools">
19    <style name="Preference">
20        <item name="android:layout">@layout/preference</item>
21    </style>
22
23    <style name="PreferenceFragment">
24        <item name="android:paddingLeft">0dp</item>
25        <item name="android:paddingRight">0dp</item>
26        <item name="android:divider">?android:attr/listDivider</item>
27    </style>
28
29    <style name="Preference.Information">
30        <item name="android:layout">@layout/preference_information</item>
31        <item name="android:enabled">false</item>
32        <item name="android:shouldDisableView">false</item>
33    </style>
34
35    <style name="Preference.Category">
36        <item name="android:layout">@layout/preference_category</item>
37        <!-- The title should not dim if the category is disabled, instead only the preference children should dim. -->
38        <item name="android:shouldDisableView">false</item>
39        <item name="android:selectable">false</item>
40    </style>
41
42    <style name="Preference.CheckBoxPreference">
43        <item name="android:widgetLayout">@layout/preference_widget_checkbox</item>
44    </style>
45
46    <style name="Preference.SwitchPreferenceCompat">
47        <item name="android:widgetLayout">@layout/preference_widget_switch_compat</item>
48        <item name="android:switchTextOn">@string/v7_preference_on</item>
49        <item name="android:switchTextOff">@string/v7_preference_off</item>
50    </style>
51
52    <style name="Preference.SeekBarPreference">
53        <item name="android:layout">@layout/preference_widget_seekbar</item>
54        <item name="adjustable">true</item>
55        <item name="showSeekBarValue">true</item>
56    </style>
57
58    <style name="Preference.PreferenceScreen">
59    </style>
60
61    <style name="Preference.DialogPreference">
62        <item name="android:positiveButtonText">@android:string/ok</item>
63        <item name="android:negativeButtonText">@android:string/cancel</item>
64    </style>
65
66    <style name="Preference.DialogPreference.EditTextPreference">
67        <item name="android:dialogLayout">@layout/preference_dialog_edittext</item>
68    </style>
69
70    <style name="PreferenceFragmentList">
71        <item name="android:paddingLeft">16dp</item>
72        <item name="android:paddingRight">16dp</item>
73    </style>
74
75    <style name="Preference.DropDown">
76        <item name="android:layout">@layout/preference_dropdown</item>
77    </style>
78
79    <style name="Preference.SwitchPreference">
80        <item name="android:widgetLayout">@layout/preference_widget_switch</item>
81        <item name="android:switchTextOn">@string/v7_preference_on</item>
82        <item name="android:switchTextOff">@string/v7_preference_off</item>
83    </style>
84
85    <style name="Preference.Material">
86        <item name="android:layout">@layout/preference_material</item>
87        <item name="allowDividerAbove">false</item>
88        <item name="allowDividerBelow">true</item>
89        <item name="singleLineTitle">false</item>
90        <item name="iconSpaceReserved">@bool/config_materialPreferenceIconSpaceReserved</item>
91    </style>
92
93    <style name="Preference.Information.Material">
94        <item name="android:layout">@layout/preference_information_material</item>
95        <item name="android:enabled">false</item>
96        <item name="android:shouldDisableView">false</item>
97    </style>
98
99    <style name="Preference.Category.Material">
100        <item name="android:layout">@layout/preference_category_material</item>
101        <item name="allowDividerAbove">true</item>
102        <item name="allowDividerBelow">true</item>
103        <item name="iconSpaceReserved">@bool/config_materialPreferenceIconSpaceReserved</item>
104    </style>
105
106    <style name="Preference.CheckBoxPreference.Material">
107        <item name="android:layout">@layout/preference_material</item>
108        <item name="allowDividerAbove">false</item>
109        <item name="allowDividerBelow">true</item>
110        <item name="iconSpaceReserved">@bool/config_materialPreferenceIconSpaceReserved</item>
111    </style>
112
113    <style name="Preference.SwitchPreferenceCompat.Material">
114        <item name="android:layout">@layout/preference_material</item>
115        <item name="allowDividerAbove">false</item>
116        <item name="allowDividerBelow">true</item>
117        <item name="iconSpaceReserved">@bool/config_materialPreferenceIconSpaceReserved</item>
118    </style>
119
120    <style name="Preference.SwitchPreference.Material">
121        <item name="android:layout">@layout/preference_material</item>
122        <item name="allowDividerAbove">false</item>
123        <item name="allowDividerBelow">true</item>
124        <item name="singleLineTitle">false</item>
125        <item name="iconSpaceReserved">@bool/config_materialPreferenceIconSpaceReserved</item>
126    </style>
127
128    <style name="Preference.SeekBarPreference.Material">
129        <item name="android:layout">@layout/preference_widget_seekbar_material</item>
130        <item name="adjustable">true</item>
131        <item name="showSeekBarValue">true</item>
132        <item name="allowDividerAbove">false</item>
133        <item name="allowDividerBelow">true</item>
134        <item name="iconSpaceReserved">@bool/config_materialPreferenceIconSpaceReserved</item>
135    </style>
136
137    <style name="Preference.PreferenceScreen.Material">
138        <item name="android:layout">@layout/preference_material</item>
139        <item name="allowDividerAbove">false</item>
140        <item name="allowDividerBelow">true</item>
141        <item name="iconSpaceReserved">@bool/config_materialPreferenceIconSpaceReserved</item>
142    </style>
143
144    <style name="Preference.DialogPreference.Material">
145        <item name="android:layout">@layout/preference_material</item>
146        <item name="allowDividerAbove">false</item>
147        <item name="allowDividerBelow">true</item>
148        <item name="iconSpaceReserved">@bool/config_materialPreferenceIconSpaceReserved</item>
149    </style>
150
151    <style name="Preference.DialogPreference.EditTextPreference.Material">
152        <item name="android:layout">@layout/preference_material</item>
153        <item name="allowDividerAbove">false</item>
154        <item name="allowDividerBelow">true</item>
155        <item name="singleLineTitle">false</item>
156        <item name="iconSpaceReserved">@bool/config_materialPreferenceIconSpaceReserved</item>
157    </style>
158
159    <style name="Preference.DropDown.Material">
160        <item name="android:layout">@layout/preference_dropdown_material</item>
161        <item name="allowDividerAbove">false</item>
162        <item name="allowDividerBelow">true</item>
163        <item name="iconSpaceReserved">@bool/config_materialPreferenceIconSpaceReserved</item>
164    </style>
165
166    <style name="Preference_TextAppearanceMaterialBody2">
167        <item name="android:textSize">14sp</item>
168        <item tools:ignore="NewApi" name="android:fontFamily">sans-serif</item>
169        <item name="android:textColor">?android:attr/textColorPrimary</item>
170        <item name="android:textStyle">normal</item>
171    </style>
172
173    <style name="Preference_TextAppearanceMaterialSubhead">
174        <item name="android:textSize">16sp</item>
175        <item tools:ignore="NewApi" name="android:fontFamily">sans-serif</item>
176        <item name="android:textColor">?android:attr/textColorPrimary</item>
177        <item name="android:textStyle">normal</item>
178    </style>
179
180    <style name="PreferenceFragment.Material">
181        <item name="android:divider">@drawable/preference_list_divider_material</item>
182        <item name="allowDividerAfterLastItem">false</item>
183    </style>
184
185    <style name="PreferenceFragmentList.Material">
186        <item name="android:paddingLeft">0dp</item>
187        <item name="android:paddingRight">0dp</item>
188    </style>
189</resources>
190