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 <Preference 31 android:key="when_to_start" 32 android:title="@string/screensaver_settings_when_to_dream" 33 android:fragment="com.android.settings.dream.WhenToDreamPicker"/> 34 35 <PreferenceCategory 36 android:title="@string/dream_picker_category"> 37 <com.android.settingslib.widget.LayoutPreference 38 android:key="dream_picker" 39 android:selectable="false" 40 android:layout="@layout/dream_picker_layout"/> 41 </PreferenceCategory> 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