1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2011 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<!-- This is a primitive example showing the different types of preferences available. --> 18<!-- BEGIN_INCLUDE(preferences) --> 19<PreferenceScreen 20 xmlns:android="http://schemas.android.com/apk/res/android"> 21 22 <PreferenceCategory 23 android:title="@string/inline_preferences"> 24 25 <CheckBoxPreference 26 android:key="checkbox_preference" 27 android:title="@string/title_checkbox_preference" 28 android:summary="@string/summary_checkbox_preference" /> 29 30 <SwitchPreference 31 android:key="checkbox_preference" 32 android:title="@string/title_switch_preference" 33 android:summary="@string/summary_switch_preference" /> 34 35 <SwitchPreference 36 android:key="checkbox_preference" 37 android:title="@string/title_switch_preference" 38 android:summary="@string/summary_switch_preference_yes_no" 39 android:switchTextOn = "YES" 40 android:switchTextOff = "NO" 41 android:defaultValue="true" /> 42 43 </PreferenceCategory> 44 45</PreferenceScreen> 46<!-- END_INCLUDE(preferences) --> 47