Files
app_Settings/res/xml/accessibility_extra_dim_settings.xml
Chun-Ku Lin 4fb0f8a975 Add all preferences in the preference hierarchy in ExtraDimScreen
Bug: 413454003
Test: atest ExtraDimScreen
Test: atest ToggleReduceBrightColorsPreferenceFragmentTest
Flag: com.android.settings.accessibility.catalyst_extra_dim
Change-Id: I8091058928ce1918612dbb69d4f0141e9ff3266e
2025-08-20 20:12:27 +00:00

73 lines
3.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2025 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res-auto"
android:persistent="false"
android:title="@string/reduce_bright_colors_preference_title">
<com.android.settingslib.widget.TopIntroPreference
android:key="top_intro"
android:title="@string/reduce_bright_colors_preference_intro_text"
settings:searchable="false" />
<com.android.settingslib.widget.IllustrationPreference
android:key="animated_image"
settings:controller="com.android.settings.accessibility.detail.extradim.ExtraDimIllustrationPreferenceController"
settings:searchable="false" />
<com.android.settingslib.widget.MainSwitchPreference
android:key="reduce_bright_colors_switch"
android:title="@string/reduce_bright_colors_switch_title"
settings:controller="com.android.settings.accessibility.detail.extradim.ExtraDimMainSwitchPreferenceController" />
<PreferenceCategory
android:key="general_categories"
android:title="@string/accessibility_screen_option"
settings:searchable="false">
<com.android.settingslib.widget.SliderPreference
android:key="reduce_bright_colors_level"
android:persistent="true"
android:title="@string/reduce_bright_colors_intensity_preference_title"
settings:textEnd="@string/brightness_intensity_end_label"
settings:textStart="@string/brightness_intensity_start_label"
settings:controller="com.android.settings.accessibility.detail.extradim.IntensityPreferenceController"/>
<!-- The term `restarts` is usually used for indicating restarting devices.
Therefore, We wouldn't want `Keep on after device restarts` preference in the Extra Dim
shows up as the search result when the user searches `restart`-->
<SwitchPreferenceCompat
android:key="reduce_bright_colors_persist_across_reboots"
android:persistent="true"
android:title="@string/reduce_bright_colors_persist_preference_title"
settings:searchable="false"
settings:controller="com.android.settings.accessibility.detail.extradim.PersistentAfterRestartsPreferenceController"/>
<com.android.settings.accessibility.ShortcutPreference
android:key="reduce_bright_colors_shortcut"
android:persistent="true"
android:title="@string/reduce_bright_colors_shortcut_title"
settings:controller="com.android.settings.accessibility.ToggleShortcutPreferenceController" />
</PreferenceCategory>
<com.android.settings.accessibility.AccessibilityFooterPreference
android:key="html_description"
settings:controller="com.android.settings.accessibility.detail.extradim.FooterPreferenceController"
settings:searchable="false" />
</PreferenceScreen>