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> 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.PreferenceScreen"> 53 </style> 54 55 <style name="Preference.DialogPreference"> 56 <item name="android:positiveButtonText">@android:string/ok</item> 57 <item name="android:negativeButtonText">@android:string/cancel</item> 58 </style> 59 60 <style name="Preference.DialogPreference.EditTextPreference"> 61 <item name="android:dialogLayout">@layout/preference_dialog_edittext</item> 62 </style> 63 64 <style name="PreferenceFragmentList"> 65 <item name="android:paddingLeft">16dp</item> 66 <item name="android:paddingRight">16dp</item> 67 </style> 68 69 <style name="Preference.DropDown"> 70 <item name="android:layout">@layout/preference_dropdown</item> 71 </style> 72 </resources> 73