• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2019 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<!-- This file only contains custom attribute and style definition for preferences -->
19<!-- Things unrelated to preference framework UI customization should go to other styles files -->
20<resources>
21
22    <style name="PreferenceTheme" parent="@style/PreferenceThemeOverlay.SettingsBase">
23        <item name="apnPreferenceStyle">@style/ApnPreference</item>
24        <item name="cardPreferenceStyle">@style/CardPreference</item>
25        <item name="slicePreferenceStyle">@style/SlicePreference</item>
26        <item name="seekBarPreferenceStyle">@style/SettingsSeekBarPreference</item>
27        <item name="twoStateButtonPreferenceStyle">@style/TwoStateButtonPreference</item>
28        <item name="preferenceCategoryTitleTextAppearance">@style/TextAppearance.CategoryTitle
29        </item>
30    </style>
31
32    <style name="PreferenceTheme.SetupWizard">
33        <item name="preferenceFragmentCompatStyle">@style/SetupWizardPreferenceFragmentStyle</item>
34        <item name="preferenceStyle">@style/Preference.Material</item>
35    </style>
36
37    <style name="ApnPreference" parent="@style/Preference.Material">
38        <item name="android:layout">@layout/apn_preference_layout</item>
39    </style>
40
41    <style name="CardPreference" parent="@style/Preference.Material">
42        <item name="android:layout">@layout/card_preference_layout</item>
43    </style>
44
45    <style name="SlicePreference" parent="@style/Preference.Material">
46        <item name="android:layout">@layout/slice_preference_layout</item>
47    </style>
48
49    <style name="SettingsSeekBarPreference" parent="@style/Preference.Material">
50        <item name="android:layout">@layout/preference_widget_seekbar_settings</item>
51    </style>
52
53    <style name="SyncSwitchPreference" parent="@style/Preference.Material">
54        <item name="android:widgetLayout">@layout/preference_widget_sync_toggle</item>
55    </style>
56
57    <style name="TwoStateButtonPreference" parent="@style/Preference.Material">
58        <item name="android:layout">@layout/two_state_button</item>
59    </style>
60
61    <style name="SettingsMultiSelectListPreference" parent="@style/Preference.Material">
62        <item name="android:positiveButtonText">@android:string/ok</item>
63        <item name="android:negativeButtonText">@android:string/cancel</item>
64    </style>
65
66    <style name="SetupWizardPreferenceFragmentStyle" parent="PreferenceFragment.Material">
67        <item name="android:layout">@layout/setup_preference</item>
68    </style>
69
70</resources>