• 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    <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</resources>
79