1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2020 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 18<PreferenceScreen 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:settings="http://schemas.android.com/apk/res-auto" 21 xmlns:app="http://schemas.android.com/apk/res-auto" 22 android:persistent="false" 23 android:title="@string/one_handed_title"> 24 25 <com.android.settingslib.widget.TopIntroPreference 26 android:key="gesture_one_handed_mode_intro" 27 android:title="@string/one_handed_mode_intro_text" 28 settings:searchable="false"/> 29 30 <com.android.settingslib.widget.IllustrationPreference 31 android:key="one_handed_header" 32 settings:searchable="false" 33 app:lottie_rawRes="@raw/lottie_one_hand_mode"/> 34 35 <com.android.settingslib.widget.MainSwitchPreference 36 android:key="gesture_one_handed_mode_enabled_main_switch" 37 android:title="@string/one_handed_mode_enabled" 38 settings:keywords="@string/keywords_one_handed" 39 settings:controller="com.android.settings.gestures.OneHandedMainSwitchPreferenceController"/> 40 41 <PreferenceCategory 42 android:key="gesture_one_handed_mode_swipe_down" 43 android:title="@string/one_handed_mode_swipe_down_category" 44 settings:controller="com.android.settings.gestures.OneHandedPreferenceCategoryController"> 45 46 <com.android.settingslib.widget.SelectorWithWidgetPreference 47 android:key="gesture_one_handed_action_pull_screen_down" 48 android:title="@string/one_handed_action_pull_down_screen_title" 49 android:summary="@string/one_handed_action_pull_down_screen_summary" 50 settings:controller="com.android.settings.gestures.OneHandedActionPullDownPrefController"/> 51 52 <com.android.settingslib.widget.SelectorWithWidgetPreference 53 android:key="gesture_one_handed_action_show_notification" 54 android:title="@string/one_handed_action_show_notification_title" 55 android:summary="@string/one_handed_action_show_notification_summary" 56 settings:controller="com.android.settings.gestures.OneHandedActionShowNotificationPrefController"/> 57 </PreferenceCategory> 58 59 <com.android.settingslib.widget.FooterPreference 60 android:key="one_handed_mode_footer" 61 android:title="@string/one_handed_mode_footer_text" 62 android:selectable="false" 63 settings:searchable="false"/> 64</PreferenceScreen> 65