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="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 </style> 27 28 <style name="Preference.Information"> 29 <item name="layout">@layout/preference_information</item> 30 <item name="enabled">false</item> 31 <item name="shouldDisableView">false</item> 32 </style> 33 34 <style name="Preference.Category"> 35 <item name="layout">@layout/preference_category</item> 36 <!-- The title should not dim if the category is disabled, instead only the preference children should dim. --> 37 <item name="shouldDisableView">false</item> 38 <item name="selectable">false</item> 39 </style> 40 41 <style name="Preference.CheckBoxPreference"> 42 <item name="widgetLayout">@layout/preference_widget_checkbox</item> 43 </style> 44 45 <style name="Preference.SwitchPreferenceCompat"> 46 <item name="widgetLayout">@layout/preference_widget_switch_compat</item> 47 <item name="switchTextOn">@string/v7_preference_on</item> 48 <item name="switchTextOff">@string/v7_preference_off</item> 49 </style> 50 51 <style name="Preference.PreferenceScreen"> 52 </style> 53 54 <style name="Preference.DialogPreference"> 55 <item name="positiveButtonText">@android:string/ok</item> 56 <item name="negativeButtonText">@android:string/cancel</item> 57 </style> 58 59 <style name="Preference.DialogPreference.EditTextPreference"> 60 <item name="dialogLayout">@layout/preference_dialog_edittext</item> 61 </style> 62 63 <style name="PreferenceFragmentList"> 64 <item name="android:paddingLeft">16dp</item> 65 <item name="android:paddingRight">16dp</item> 66 </style> 67 </resources> 68