1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2017 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 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:settings="http://schemas.android.com/apk/res-auto" 20 android:key="screensaver_settings_screen" 21 android:title="@string/screensaver_settings_title" 22 settings:keywords="@string/keywords_screensaver"> 23 24 <com.android.settingslib.widget.MainSwitchPreference 25 android:key="dream_main_settings_switch" 26 android:title="@string/screensaver_settings_toggle_title" 27 settings:controller="com.android.settings.dream.DreamMainSwitchPreferenceController" 28 settings:searchable="false"/> 29 30 <PreferenceCategory 31 android:title="@string/dream_picker_category"> 32 <com.android.settingslib.widget.LayoutPreference 33 android:key="dream_picker" 34 android:selectable="false" 35 android:layout="@layout/dream_picker_layout"/> 36 </PreferenceCategory> 37 38 <Preference 39 android:key="when_to_start" 40 android:title="@string/screensaver_settings_when_to_dream" 41 android:fragment="com.android.settings.dream.WhenToDreamPicker"/> 42 43 <SwitchPreferenceCompat 44 android:key="dream_complications_toggle" 45 android:title="@string/dream_complications_toggle_title" 46 android:summary="@string/dream_complications_toggle_summary" 47 settings:controller="com.android.settings.dream.DreamComplicationPreferenceController"/> 48 49 <SwitchPreferenceCompat 50 android:key="dream_home_controls_toggle" 51 android:title="@string/dream_home_controls_toggle_title" 52 android:summary="@string/dream_home_controls_toggle_summary" /> 53 54 <com.android.settings.applications.SpacePreference 55 android:layout_height="16dp" /> 56 57</PreferenceScreen> 58