1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2020 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 http://www.apache.org/licenses/LICENSE-2.0 8 Unless required by applicable law or agreed to in writing, software 9 distributed under the License is distributed on an "AS IS" BASIS, 10 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 See the License for the specific language governing permissions and 12 limitations under the License. 13--> 14 15<PreferenceScreen 16 xmlns:android="http://schemas.android.com/apk/res/android" 17 xmlns:settings="http://schemas.android.com/apk/res-auto" 18 android:title="@string/power_menu_setting_name"> 19 20 <!-- Animation uses embedded PNGs and lottie requires asset folder to be set despite 21 embedding. --> 22 <com.android.settingslib.widget.IllustrationPreference 23 android:key="gesture_power_menu_video" 24 settings:searchable="false" 25 settings:lottie_imageAssetsFolder="power_menu" 26 settings:lottie_rawRes="@raw/lottie_long_press_power_for_power_menu" 27 settings:controller="com.android.settings.gestures.LongPressPowerIllustrationPreferenceController"/> 28 29 <PreferenceCategory 30 android:key="gesture_power_menu_long_press_category" 31 android:title="@string/power_menu_long_press_category_title"> 32 <com.android.settingslib.widget.SelectorWithWidgetPreference 33 android:key="gesture_power_menu_long_press_for_power_menu" 34 android:title="@string/power_menu_long_press_for_power_menu_title" 35 settings:controller="com.android.settings.gestures.LongPressPowerForPowerMenuPreferenceController"/> 36 37 <com.android.settingslib.widget.SelectorWithWidgetPreference 38 android:key="gesture_power_menu_long_press_for_assistant" 39 android:title="@string/power_menu_long_press_for_assistant_title" 40 settings:controller="com.android.settings.gestures.LongPressPowerForAssistantPreferenceController"/> 41 </PreferenceCategory> 42 43 <com.android.settings.widget.LabeledSeekBarPreference 44 android:key="gesture_power_menu_long_press_for_assist_sensitivity" 45 android:title="@string/power_menu_long_press_for_assist_sensitivity_title" 46 android:summary="@string/power_menu_long_press_for_assist_sensitivity_summary" 47 settings:allowDividerAbove="true" 48 settings:textStart="@string/power_menu_long_press_for_assist_sensitivity_low_label" 49 settings:textEnd="@string/power_menu_long_press_for_assist_sensitivity_high_label" 50 settings:controller="com.android.settings.gestures.LongPressPowerSensitivityPreferenceController" 51 /> 52 53 <com.android.settingslib.widget.FooterPreference 54 android:key="power_menu_power_volume_up_hint" 55 android:title="@string/power_menu_power_volume_up_hint" 56 android:selectable="false" 57 settings:searchable="false" 58 settings:controller="com.android.settings.gestures.LongPressPowerFooterPreferenceController"/> 59</PreferenceScreen> 60