* Show blurb based on mode type. * Make the icon bigger and highlight it when mode is active. * Increase spacing between elements. Also eliminate some code duplication between header of mode page and header of icon picker. Fixes: 355415875 Test: manual Flag: android.app.modes_ui Change-Id: I7e788b9b5920cedb791d1571b19b37e65ece6d0b
90 lines
3.6 KiB
XML
90 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (C) 2024 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:title="@string/zen_modes_list_title" >
|
|
|
|
<com.android.settingslib.widget.LayoutPreference
|
|
android:key="header"
|
|
android:layout="@layout/settings_entity_header" />
|
|
|
|
<com.android.settings.applications.SpacePreference
|
|
android:layout_height="16dp" />
|
|
|
|
<com.android.settings.notification.modes.ZenModeBlurbPreference
|
|
android:key="mode_blurb" />
|
|
|
|
<com.android.settings.applications.SpacePreference
|
|
android:layout_height="8dp" />
|
|
|
|
<com.android.settingslib.widget.LayoutPreference
|
|
android:key="activate"
|
|
android:selectable="false"
|
|
android:layout="@layout/modes_activation_button"/>
|
|
|
|
<com.android.settings.applications.SpacePreference
|
|
android:layout_height="16dp" />
|
|
|
|
<!-- automatic trigger section; preference changes programmatically depending on type -->
|
|
<PreferenceCategory
|
|
android:key="zen_automatic_trigger_category"
|
|
android:title="@string/zen_mode_automatic_trigger_title">
|
|
<!-- For configuring the trigger on tap and enabling/disabling the mode with the switch. -->
|
|
<com.android.settingslib.PrimarySwitchPreference
|
|
android:key="zen_automatic_trigger_settings" />
|
|
<!-- For adding a trigger for custom manual modes (no switch). -->
|
|
<Preference
|
|
android:key="zen_add_automatic_trigger"
|
|
android:title="@string/zen_mode_select_schedule"
|
|
android:icon="@drawable/ic_add_24dp"
|
|
settings:isPreferenceVisible="false" />
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:title="@string/mode_interruption_filter_title"
|
|
android:key="modes_filters">
|
|
|
|
<SwitchPreferenceCompat
|
|
android:key="allow_filtering"
|
|
android:title="@string/mode_notification_filter_title"/>
|
|
|
|
<com.android.settings.notification.modes.CircularIconsPreference
|
|
android:key="zen_mode_people"
|
|
android:title="@string/zen_category_people" />
|
|
|
|
<com.android.settings.notification.modes.CircularIconsPreference
|
|
android:key="zen_mode_apps"
|
|
android:title="@string/zen_category_apps" />
|
|
|
|
<com.android.settings.notification.modes.CircularIconsPreference
|
|
android:key="zen_other_settings"
|
|
android:title="@string/zen_category_exceptions" />
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:title="@string/mode_device_effects_title"
|
|
android:key="modes_additional_actions">
|
|
<Preference
|
|
android:key="mode_display_settings"
|
|
android:title="@string/mode_display_settings_title" />
|
|
|
|
<Preference
|
|
android:key="mode_manual_duration"
|
|
android:title="@string/zen_category_duration" />
|
|
</PreferenceCategory>
|
|
</PreferenceScreen> |