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 <declare-styleable name="PreferenceTheme"> 20 21 <!-- =================== --> 22 <!-- Preference styles --> 23 <!-- =================== --> 24 <eat-comment /> 25 26 <!-- Theme for inflating Preference objects --> 27 <attr name="preferenceTheme" format="reference" /> 28 29 <!-- Default style for PreferenceScreen. --> 30 <attr name="preferenceScreenStyle" format="reference" /> 31 <!-- Default style for the PreferenceActivity. --> 32 <attr name="preferenceActivityStyle" format="reference" /> 33 <!-- Default style for Headers pane in PreferenceActivity. --> 34 <attr name="preferenceFragmentStyle" format="reference" /> 35 <!-- Default style for Headers pane in PreferenceActivity. --> 36 <attr name="preferenceFragmentCompatStyle" format="reference" /> 37 <!-- Default style for PreferenceCategory. --> 38 <attr name="preferenceCategoryStyle" format="reference" /> 39 <!-- Default style for Preference. --> 40 <attr name="preferenceStyle" format="reference" /> 41 <!-- Default style for informational Preference. --> 42 <attr name="preferenceInformationStyle" format="reference" /> 43 <!-- Default style for CheckBoxPreference. --> 44 <attr name="checkBoxPreferenceStyle" format="reference" /> 45 <!-- Default style for YesNoPreference. --> 46 <attr name="yesNoPreferenceStyle" format="reference" /> 47 <!-- Default style for DialogPreference. --> 48 <attr name="dialogPreferenceStyle" format="reference" /> 49 <!-- Default style for EditTextPreference. --> 50 <attr name="editTextPreferenceStyle" format="reference" /> 51 <!-- Default style for RingtonePreference. --> 52 <attr name="ringtonePreferenceStyle" format="reference" /> 53 <!-- Default style for DropDownPreference. --> 54 <attr name="dropdownPreferenceStyle" format="reference" /> 55 <!-- The preference layout that has the child/tabbed effect. --> 56 <attr name="preferenceLayoutChild" format="reference" /> 57 <!-- Preference panel style --> 58 <attr name="preferencePanelStyle" format="reference" /> 59 <!-- Preference headers panel style --> 60 <attr name="preferenceHeaderPanelStyle" format="reference" /> 61 <!-- Preference list style --> 62 <attr name="preferenceListStyle" format="reference" /> 63 <!-- Preference fragment list style --> 64 <attr name="preferenceFragmentListStyle" format="reference" /> 65 <!-- Preference fragment padding side --> 66 <attr name="preferenceFragmentPaddingSide" format="dimension" /> 67 <!-- Default style for switch preferences. --> 68 <attr name="switchPreferenceStyle" format="reference" /> 69 <!-- Default style for switch compat preferences. --> 70 <attr name="switchPreferenceCompatStyle" format="reference" /> 71 <!-- Default style for seekbar preferences. --> 72 <attr name="seekBarPreferenceStyle" format="reference" /> 73 </declare-styleable> 74 75 <!-- Base attributes available to PreferenceFragment. --> 76 <declare-styleable name="PreferenceFragmentCompat"> 77 <!-- The layout for the PreferenceFragment. This should rarely need to be changed. --> 78 <attr name="android:layout" /> 79 <!-- List separator to draw between preference views --> 80 <attr name="android:divider" /> 81 <!-- List separator height --> 82 <attr name="android:dividerHeight" /> 83 <!-- Whether a divider is allowed to draw after the last item --> 84 <attr name="allowDividerAfterLastItem" format="boolean" /> 85 </declare-styleable> 86 87 <!-- Base attributes available to PreferenceGroup. --> 88 <declare-styleable name="PreferenceGroup"> 89 <!-- Whether to order the Preference under this group as they appear in the XML file. 90 If this is false, the ordering will follow the Preference order attribute and 91 default to alphabetic for those without the order attribute. --> 92 <attr name="orderingFromXml" format="boolean" /> 93 <attr name="android:orderingFromXml" /> 94 </declare-styleable> 95 96 <!-- Base attributes available to Preference. --> 97 <declare-styleable name="Preference"> 98 <!-- The optional icon for the preference --> 99 <attr name="icon" /> 100 <attr name="android:icon" /> 101 <!-- The key to store the Preference value. --> 102 <attr name="key" format="string" /> 103 <attr name="android:key" /> 104 <!-- The title for the Preference in a PreferenceActivity screen. --> 105 <attr name="title" /> 106 <attr name="android:title" /> 107 <!-- The summary for the Preference in a PreferenceActivity screen. --> 108 <attr name="summary" format="string" /> 109 <attr name="android:summary" /> 110 <!-- The order for the Preference (lower values are to be ordered first). If this is not 111 specified, the default ordering will be alphabetic. --> 112 <attr name="order" format="integer" /> 113 <attr name="android:order" /> 114 <!-- When used inside of a modern PreferenceActivity, this declares 115 a new PreferenceFragment to be shown when the user selects this item. --> 116 <attr name="fragment" format="string" /> 117 <attr name="android:fragment" /> 118 <!-- The layout for the Preference in a PreferenceActivity screen. This should 119 rarely need to be changed, look at widgetLayout instead. --> 120 <attr name="layout" /> 121 <attr name="android:layout" /> 122 <!-- The layout for the controllable widget portion of a Preference. This is inflated 123 into the layout for a Preference and should be used more frequently than 124 the layout attribute. For example, a checkbox preference would specify 125 a custom layout (consisting of just the CheckBox) here. --> 126 <attr name="widgetLayout" format="reference" /> 127 <attr name="android:widgetLayout" /> 128 <!-- Whether the Preference is enabled. --> 129 <attr name="enabled" format="boolean" /> 130 <attr name="android:enabled" /> 131 <!-- Whether the Preference is selectable. --> 132 <attr name="selectable" format="boolean" /> 133 <attr name="android:selectable" /> 134 <!-- The key of another Preference that this Preference will depend on. If the other 135 Preference is not set or is off, this Preference will be disabled. --> 136 <attr name="dependency" format="string" /> 137 <attr name="android:dependency" /> 138 <!-- Whether the Preference stores its value to the shared preferences. --> 139 <attr name="persistent" format="boolean" /> 140 <attr name="android:persistent" /> 141 <!-- The default value for the preference, which will be set either if persistence 142 is off or persistence is on and the preference is not found in the persistent 143 storage. --> 144 <attr name="defaultValue" format="string|boolean|integer|reference|float" /> 145 <attr name="android:defaultValue" /> 146 <!-- Whether the view of this Preference should be disabled when 147 this Preference is disabled. --> 148 <attr name="shouldDisableView" format="boolean" /> 149 <attr name="android:shouldDisableView" /> 150 151 <!-- Whether the preference allows displaying divider on top --> 152 <attr name="allowDividerAbove" format="boolean" /> 153 154 <!-- Whether the preference allows displaying divider below it --> 155 <attr name="allowDividerBelow" format="boolean" /> 156 157 <!-- Whether to use single line for the preference title text. By default, preference title 158 will be constrained to one line, so the default value of this attribute is true. --> 159 <attr name="singleLineTitle" format="boolean" /> 160 <attr name="android:singleLineTitle" /> 161 162 <!-- Whether the space for the preference icon view will be reserved. If set to true, the 163 preference will be offset as if it would have the icon and thus aligned with other 164 preferences having icons. By default, preference icon view visibility will be set to 165 GONE when there is no icon provided, so the default value of this attribute is false. 166 --> 167 <attr name="iconSpaceReserved" format="boolean" /> 168 <attr name="android:iconSpaceReserved" /> 169 170 </declare-styleable> 171 172 <!-- Base attributes available to CheckBoxPreference. --> 173 <declare-styleable name="CheckBoxPreference"> 174 <!-- The summary for the Preference in a PreferenceActivity screen when the 175 CheckBoxPreference is checked. If separate on/off summaries are not 176 needed, the summary attribute can be used instead. --> 177 <attr name="summaryOn" format="string" /> 178 <attr name="android:summaryOn" /> 179 <!-- The summary for the Preference in a PreferenceActivity screen when the 180 CheckBoxPreference is unchecked. If separate on/off summaries are not 181 needed, the summary attribute can be used instead. --> 182 <attr name="summaryOff" format="string" /> 183 <attr name="android:summaryOff" /> 184 <!-- The state (true for on, or false for off) that causes dependents to be disabled. By default, 185 dependents will be disabled when this is unchecked, so the value of this preference is false. --> 186 <attr name="disableDependentsState" format="boolean" /> 187 <attr name="android:disableDependentsState" /> 188 </declare-styleable> 189 190 <!-- Base attributes available to DialogPreference. --> 191 <declare-styleable name="DialogPreference"> 192 <!-- The title in the dialog. --> 193 <attr name="dialogTitle" format="string" /> 194 <attr name="android:dialogTitle" /> 195 <!-- The message in the dialog. If a dialogLayout is provided and contains 196 a TextView with ID android:id/message, this message will be placed in there. --> 197 <attr name="dialogMessage" format="string" /> 198 <attr name="android:dialogMessage" /> 199 <!-- The icon for the dialog. --> 200 <attr name="dialogIcon" format="reference" /> 201 <attr name="android:dialogIcon" /> 202 <!-- The positive button text for the dialog. Set to @null to hide the positive button. --> 203 <attr name="positiveButtonText" format="string" /> 204 <attr name="android:positiveButtonText" /> 205 <!-- The negative button text for the dialog. Set to @null to hide the negative button. --> 206 <attr name="negativeButtonText" format="string" /> 207 <attr name="android:negativeButtonText" /> 208 <!-- A layout to be used as the content View for the dialog. By default, this shouldn't 209 be needed. If a custom DialogPreference is required, this should be set. For example, 210 the EditTextPreference uses a layout with an EditText as this attribute. --> 211 <attr name="dialogLayout" format="reference" /> 212 <attr name="android:dialogLayout" /> 213 </declare-styleable> 214 215 <!-- Base attributes available to ListPreference. --> 216 <declare-styleable name="ListPreference"> 217 <!-- The human-readable array to present as a list. Each entry must have a corresponding 218 index in entryValues. --> 219 <attr name="entries" format="reference" /> 220 <attr name="android:entries" /> 221 <!-- The array to find the value to save for a preference when an entry from 222 entries is selected. If a user clicks on the second item in entries, the 223 second item in this array will be saved to the preference. --> 224 <attr name="entryValues" format="reference" /> 225 <attr name="android:entryValues" /> 226 </declare-styleable> 227 228 <declare-styleable name="MultiSelectListPreference"> 229 <!-- The human-readable array to present as a list. Each entry must have a corresponding 230 index in entryValues. --> 231 <attr name="entries" /> 232 <attr name="android:entries" /> 233 <!-- The array to find the value to save for a preference when an entry from 234 entries is selected. If a user clicks the second item in entries, the 235 second item in this array will be saved to the preference. --> 236 <attr name="entryValues" /> 237 <attr name="android:entryValues" /> 238 </declare-styleable> 239 240 <declare-styleable name="SwitchPreferenceCompat"> 241 <!-- The summary for the Preference in a PreferenceActivity screen when the 242 SwitchPreference is checked. If separate on/off summaries are not 243 needed, the summary attribute can be used instead. --> 244 <attr name="summaryOn" /> 245 <attr name="android:summaryOn" /> 246 <!-- The summary for the Preference in a PreferenceActivity screen when the 247 SwitchPreference is unchecked. If separate on/off summaries are not 248 needed, the summary attribute can be used instead. --> 249 <attr name="summaryOff" /> 250 <attr name="android:summaryOff" /> 251 <!-- The text used on the switch itself when in the "on" state. 252 This should be a very SHORT string, as it appears in a small space. --> 253 <attr name="switchTextOn" format="string" /> 254 <attr name="android:switchTextOn" /> 255 <!-- The text used on the switch itself when in the "off" state. 256 This should be a very SHORT string, as it appears in a small space. --> 257 <attr name="switchTextOff" format="string" /> 258 <attr name="android:switchTextOff" /> 259 <!-- The state (true for on, or false for off) that causes dependents to be disabled. By default, 260 dependents will be disabled when this is unchecked, so the value of this preference is false. --> 261 <attr name="disableDependentsState" /> 262 <attr name="android:disableDependentsState" /> 263 </declare-styleable> 264 265 <declare-styleable name="PreferenceImageView"> 266 <attr name="maxWidth" format="dimension" /> 267 <attr name="android:maxWidth" /> 268 <attr name="maxHeight" format="dimension" /> 269 <attr name="android:maxHeight" /> 270 </declare-styleable> 271 272 <!-- Used to access some android attrs --> 273 <declare-styleable name="BackgroundStyle"> 274 <attr name="android:selectableItemBackground" /> 275 <!-- Need a non-android: attr here so that gradle doesn't remove it --> 276 <attr name="selectableItemBackground" /> 277 </declare-styleable> 278 279 <declare-styleable name="SeekBarPreference"> 280 <attr name="min" format="integer"/> 281 <attr name="android:max"/> 282 <attr name="android:layout" /> 283 <!--Attribute controlling the amount to increment or decrement the seekbar when the user 284 presses the arrow keys--> 285 <attr name="seekBarIncrement" format="integer" /> 286 <!-- Attribute indicating whether the slider within this preference can be adjusted, that is 287 pressing left/right keys when this preference is focused will move the slider accordingly 288 (e.g. inline adjustable preferences). False, if the slider within the preference is 289 read-only and cannot be adjusted. By default, the seekbar is adjustable. --> 290 <attr name="adjustable" format="boolean" /> 291 <!-- Flag indicating whether the TextView next to the seekbar that shows the current seekbar 292 value will be displayed. If true, the view is VISIBLE; if false, the view will be GONE. 293 By default, this view is VISIBLE. --> 294 <attr name="showSeekBarValue" format="boolean" /> 295 </declare-styleable> 296 297 298</resources> 299