• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.PreferenceScreen">
54    </style>
55
56    <style name="LeanbackPreference.DialogPreference">
57        <item name="android:positiveButtonText">@android:string/ok</item>
58        <item name="android:negativeButtonText">@android:string/cancel</item>
59    </style>
60
61    <style name="LeanbackPreference.DialogPreference.EditTextPreference">
62        <item name="android:dialogLayout">@layout/preference_dialog_edittext</item>
63    </style>
64
65    <style name="PreferenceFragment.Leanback">
66        <item name="android:divider">@null</item>
67    </style>
68
69    <style name="PreferenceFragmentList.Leanback">
70        <item name="android:paddingStart">0dp</item>
71        <item name="android:paddingEnd">0dp</item>
72        <item name="android:paddingBottom">34dp</item>
73        <item name="android:clipToPadding">false</item>
74    </style>
75
76</resources>
77