• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 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:title="@string/night_display_title"
21    settings:keywords="@string/keywords_display_night_display">
22
23    <com.android.settingslib.widget.TopIntroPreference
24        android:key="night_display_top_intro"
25        android:title="@string/night_display_text"
26        settings:controller="com.android.settings.display.NightDisplayTopIntroPreferenceController"/>
27
28    <com.android.settingslib.widget.MainSwitchPreference
29        android:key="night_display_activated"
30        android:title="@string/night_light_main_switch_title"
31        settings:controller="com.android.settings.display.NightDisplayActivationPreferenceController"/>
32
33    <com.android.settingslib.widget.BannerMessagePreference
34        android:key="dark_ui_location_off"
35        android:title="@string/twilight_mode_location_off_dialog_message"
36        settings:controller="com.android.settings.display.TwilightLocationPreferenceController"/>
37
38    <DropDownPreference
39        android:key="night_display_auto_mode"
40        android:title="@string/night_display_auto_mode_title"
41        android:summary="%s"
42        settings:allowDividerAbove="true"
43        settings:controller="com.android.settings.display.NightDisplayAutoModePreferenceController"/>
44
45    <Preference
46        android:key="night_display_start_time"
47        android:title="@string/night_display_start_time_title"
48        settings:controller="com.android.settings.display.NightDisplayCustomStartTimePreferenceController"/>
49
50    <Preference
51        android:key="night_display_end_time"
52        android:title="@string/night_display_end_time_title"
53        settings:controller="com.android.settings.display.NightDisplayCustomEndTimePreferenceController"/>
54
55    <com.android.settings.widget.SeekBarPreference
56        android:key="night_display_temperature"
57        android:title="@string/night_display_temperature_title"
58        settings:keywords="@string/keywords_display_night_display"
59        settings:controller="com.android.settings.display.NightDisplayIntensityPreferenceController"
60        settings:unavailableSliceSubtitle="@string/night_display_not_currently_on"/>
61
62</PreferenceScreen>
63