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 20 <style name="LeanbackPreference"> 21 <item name="android:layout">@layout/leanback_preference</item> 22 </style> 23 24 <style name="LeanbackPreference.Information"> 25 <item name="android:layout">@layout/leanback_preference_information</item> 26 <item name="android:enabled">false</item> 27 <item name="android:shouldDisableView">false</item> 28 </style> 29 30 <style name="LeanbackPreference.Category"> 31 <item name="android:layout">@layout/leanback_preference_category</item> 32 <!-- The title should not dim if the category is disabled, instead only the preference children should dim. --> 33 <item name="android:shouldDisableView">false</item> 34 <item name="android:selectable">false</item> 35 </style> 36 37 <style name="LeanbackPreference.CheckBoxPreference"> 38 <item name="android:widgetLayout">@layout/preference_widget_checkbox</item> 39 </style> 40 41 <style name="LeanbackPreference.SwitchPreferenceCompat"> 42 <item name="android:widgetLayout">@layout/preference_widget_switch_compat</item> 43 <item name="android:switchTextOn">@string/v7_preference_on</item> 44 <item name="android:switchTextOff">@string/v7_preference_off</item> 45 </style> 46 47 <style name="LeanbackPreference.SwitchPreference"> 48 <item name="android:widgetLayout">@layout/preference_widget_switch</item> 49 <item name="android:switchTextOn">@string/v7_preference_on</item> 50 <item name="android:switchTextOff">@string/v7_preference_off</item> 51 </style> 52 53 <style name="LeanbackPreference.SeekBarPreference"> 54 <item name="android:layout">@layout/leanback_preference_widget_seekbar</item> 55 <item name="adjustable">true</item> 56 <item name="showSeekBarValue">true</item> 57 </style> 58 59 <style name="LeanbackPreference.PreferenceScreen"> 60 </style> 61 62 <style name="LeanbackPreference.DialogPreference"> 63 <item name="android:positiveButtonText">@android:string/ok</item> 64 <item name="android:negativeButtonText">@android:string/cancel</item> 65 </style> 66 67 <style name="LeanbackPreference.DialogPreference.EditTextPreference"> 68 <item name="android:dialogLayout">@layout/preference_dialog_edittext</item> 69 </style> 70 71 <style name="PreferenceFragment.Leanback"> 72 <item name="android:divider">@null</item> 73 </style> 74 75 <style name="PreferenceFragmentList.Leanback"> 76 <item name="android:paddingStart">0dp</item> 77 <item name="android:paddingEnd">0dp</item> 78 <item name="android:paddingBottom">34dp</item> 79 <item name="android:clipToPadding">false</item> 80 </style> 81 82 </resources> 83