Fan Zhang | 11de4e4 | 2017-07-07 10:41:14 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2017 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 | <!-- Common style for support lib preference to look like Settings app UI --> |
| 19 | <resources> |
| 20 | |
| 21 | <dimen name="preference_no_icon_padding_start">72dp</dimen> |
| 22 | |
Antony Sargent | abd59b6 | 2017-12-06 17:54:09 +0000 | [diff] [blame] | 23 | <!-- Fragment style --> |
| 24 | <style name="PreferenceFragmentStyle.SettingsBase" parent="@*android:style/PreferenceFragment.Material"> |
| 25 | <item name="allowDividerAfterLastItem">false</item> |
| 26 | </style> |
| 27 | |
| 28 | <!-- Preferences --> |
| 29 | <style name="Preference.SettingsBase" parent="@style/Preference.Material"> |
| 30 | <item name="allowDividerAbove">false</item> |
| 31 | <item name="allowDividerBelow">true</item> |
| 32 | <item name="singleLineTitle">false</item> |
| 33 | <item name="iconSpaceReserved">true</item> |
| 34 | </style> |
| 35 | |
| 36 | <!-- Preference category --> |
| 37 | <style name="Preference.Category.SettingsBase" parent="@style/Preference.Category.Material"> |
| 38 | <item name="allowDividerAbove">true</item> |
| 39 | <item name="allowDividerBelow">true</item> |
| 40 | <item name="android:layout">@layout/preference_category_material_settings</item> |
| 41 | </style> |
| 42 | |
| 43 | <!-- Preference screen --> |
| 44 | <style name="Preference.Screen.SettingsBase" parent="@style/Preference.PreferenceScreen.Material"> |
| 45 | <item name="allowDividerAbove">false</item> |
| 46 | <item name="allowDividerBelow">true</item> |
| 47 | <item name="iconSpaceReserved">true</item> |
| 48 | </style> |
| 49 | |
Fan Zhang | 11de4e4 | 2017-07-07 10:41:14 -0700 | [diff] [blame] | 50 | <!-- Footer Preferences --> |
Antony Sargent | abd59b6 | 2017-12-06 17:54:09 +0000 | [diff] [blame] | 51 | <style name="Preference.FooterPreference.SettingsBase" parent="Preference.SettingsBase"> |
Fan Zhang | 11de4e4 | 2017-07-07 10:41:14 -0700 | [diff] [blame] | 52 | <item name="android:layout">@layout/preference_footer</item> |
| 53 | <item name="allowDividerAbove">true</item> |
| 54 | </style> |
| 55 | |
Antony Sargent | abd59b6 | 2017-12-06 17:54:09 +0000 | [diff] [blame] | 56 | <!-- Dropdown Preferences --> |
| 57 | <style name="Preference.DropdownPreference.SettingsBase" parent="Preference.SettingsBase"> |
| 58 | <item name="android:layout">@layout/preference_dropdown_material_settings</item> |
| 59 | </style> |
| 60 | |
| 61 | <!-- Switch Preferences --> |
| 62 | <style name="Preference.SwitchPreference.SettingsBase" parent="@style/Preference.SwitchPreference.Material"> |
| 63 | <item name="allowDividerAbove">false</item> |
| 64 | <item name="allowDividerBelow">true</item> |
| 65 | <item name="iconSpaceReserved">true</item> |
| 66 | <item name="singleLineTitle">false</item> |
| 67 | </style> |
| 68 | |
jackqdyulei | 3705512 | 2018-01-09 12:29:21 -0800 | [diff] [blame] | 69 | <!-- CheckBox Preferences --> |
| 70 | <style name="Preference.CheckBoxPreference.SettingsBase" parent="@style/Preference.CheckBoxPreference.Material"> |
| 71 | <item name="allowDividerAbove">false</item> |
| 72 | <item name="allowDividerBelow">true</item> |
| 73 | <item name="iconSpaceReserved">true</item> |
| 74 | <item name="singleLineTitle">false</item> |
| 75 | </style> |
| 76 | |
Antony Sargent | abd59b6 | 2017-12-06 17:54:09 +0000 | [diff] [blame] | 77 | <!-- EditText Preferences --> |
| 78 | <style name="Preference.EditTextPreference.SettingsBase" |
| 79 | parent="@style/Preference.DialogPreference.EditTextPreference.Material"> |
| 80 | <item name="allowDividerAbove">false</item> |
| 81 | <item name="allowDividerBelow">true</item> |
| 82 | <item name="iconSpaceReserved">true</item> |
| 83 | <item name="singleLineTitle">false</item> |
| 84 | </style> |
| 85 | |
Fan Zhang | 11de4e4 | 2017-07-07 10:41:14 -0700 | [diff] [blame] | 86 | <style name="PreferenceThemeOverlay.SettingsBase" parent="@style/PreferenceThemeOverlay.v14.Material"> |
Antony Sargent | abd59b6 | 2017-12-06 17:54:09 +0000 | [diff] [blame] | 87 | <!-- Parent path frameworks/support/v14/preference/res/values/themes.xml --> |
| 88 | <item name="android:scrollbars">vertical</item> |
| 89 | <item name="preferenceFragmentStyle">@style/PreferenceFragmentStyle.SettingsBase</item> |
| 90 | <item name="preferenceCategoryStyle">@style/Preference.Category.SettingsBase</item> |
| 91 | <item name="preferenceScreenStyle">@style/Preference.Screen.SettingsBase</item> |
| 92 | <item name="preferenceStyle">@style/Preference.SettingsBase</item> |
| 93 | <item name="dialogPreferenceStyle">@style/Preference.SettingsBase</item> |
| 94 | <item name="editTextPreferenceStyle">@style/Preference.EditTextPreference.SettingsBase</item> |
Fan Zhang | 11de4e4 | 2017-07-07 10:41:14 -0700 | [diff] [blame] | 95 | <item name="footerPreferenceStyle">@style/Preference.FooterPreference.SettingsBase</item> |
Antony Sargent | abd59b6 | 2017-12-06 17:54:09 +0000 | [diff] [blame] | 96 | <item name="switchPreferenceStyle">@style/Preference.SwitchPreference.SettingsBase</item> |
jackqdyulei | 3705512 | 2018-01-09 12:29:21 -0800 | [diff] [blame] | 97 | <item name="checkBoxPreferenceStyle">@style/Preference.CheckBoxPreference.SettingsBase</item> |
Antony Sargent | abd59b6 | 2017-12-06 17:54:09 +0000 | [diff] [blame] | 98 | <item name="dropdownPreferenceStyle">@style/Preference.DropdownPreference.SettingsBase</item> |
Fan Zhang | 11de4e4 | 2017-07-07 10:41:14 -0700 | [diff] [blame] | 99 | </style> |
| 100 | |
| 101 | </resources> |