1<?xml version="1.0" encoding="utf-8"?><!-- 2 Copyright 2021 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<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto"> 19 <PreferenceCategory 20 android:key="advanced" 21 android:title="@string/advanced_attributes" 22 app:initialExpandedChildrenCount="1"> 23 24 <Preference 25 android:key="expandable" 26 android:title="@string/title_expandable_preference" 27 android:summary="@string/summary_expandable_preference"/> 28 29 <Preference 30 android:title="@string/title_intent_preference" 31 android:summary="@string/summary_intent_preference"> 32 33 <intent android:action="android.intent.action.VIEW" 34 android:data="http://www.android.com"/> 35 36 </Preference> 37 38 <SwitchPreferenceCompat 39 android:key="parent" 40 android:title="@string/title_parent_preference" 41 android:summary="@string/summary_parent_preference"/> 42 43 <SwitchPreferenceCompat 44 android:key="child" 45 android:dependency="parent" 46 android:title="@string/title_child_preference" 47 android:summary="@string/summary_child_preference"/> 48 49 <SwitchPreferenceCompat 50 android:key="toggle_summary" 51 android:title="@string/title_toggle_summary_preference" 52 android:summaryOn="@string/summary_on_toggle_summary_preference" 53 android:summaryOff="@string/summary_off_toggle_summary_preference"/> 54 55 <Preference 56 android:key="copyable" 57 android:title="@string/title_copyable_preference" 58 android:summary="@string/summary_copyable_preference" 59 android:selectable="false" 60 app:enableCopying="true"/> 61 </PreferenceCategory> 62 <PreferenceCategory 63 android:key="multi-screen" 64 android:title="@string/multi_preference_screen"> 65 <Preference 66 android:title="@string/title_multi_preference_screen" 67 android:summary="@string/summary_multi_preference_screen" 68 android:fragment="com.example.androidx.preference.TwoPanePreferences$MultiPreferences"/> 69 </PreferenceCategory> 70</PreferenceScreen>