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="SwitchPreference"> 20 <!-- The summary for the Preference in a PreferenceActivity screen when the 21 SwitchPreference is checked. If separate on/off summaries are not 22 needed, the summary attribute can be used instead. --> 23 <attr name="summaryOn" /> 24 <attr name="android:summaryOn" /> 25 <!-- The summary for the Preference in a PreferenceActivity screen when the 26 SwitchPreference is unchecked. If separate on/off summaries are not 27 needed, the summary attribute can be used instead. --> 28 <attr name="summaryOff" /> 29 <attr name="android:summaryOff" /> 30 <!-- The text used on the switch itself when in the "on" state. 31 This should be a very SHORT string, as it appears in a small space. --> 32 <attr name="switchTextOn"/> 33 <attr name="android:switchTextOn"/> 34 <!-- The text used on the switch itself when in the "off" state. 35 This should be a very SHORT string, as it appears in a small space. --> 36 <attr name="switchTextOff" /> 37 <attr name="android:switchTextOff" /> 38 <!-- The state (true for on, or false for off) that causes dependents to be disabled. By default, 39 dependents will be disabled when this is unchecked, so the value of this preference is false. --> 40 <attr name="disableDependentsState" /> 41 <attr name="android:disableDependentsState" /> 42 </declare-styleable> 43 44 <!-- Base attributes available to PreferenceFragment. --> 45 <declare-styleable name="PreferenceFragment"> 46 <!-- The layout for the PreferenceFragment. This should rarely need to be changed. --> 47 <attr name="android:layout" /> 48 <!-- List separator to draw between preference views --> 49 <attr name="android:divider" /> 50 <!-- List separator height --> 51 <attr name="android:dividerHeight" /> 52 <!-- Whether a divider is allowed to draw after the last item --> 53 <attr name="allowDividerAfterLastItem" /> 54 </declare-styleable> 55 56 </resources> 57