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:app="http://schemas.android.com/apk/res-auto" 21 android:title="@string/emergency_gesture_screen_title"> 22 23 <com.android.settingslib.widget.MainSwitchPreference 24 android:key="gesture_emergency_button_switch_bar" 25 app:controller="com.android.settings.emergency.EmergencyGesturePreferenceController"/> 26 27 <com.android.settingslib.widget.TopIntroPreference 28 android:title="@string/emergency_gesture_screen_summary" 29 app:allowDividerAbove="false"/> 30 31 <SwitchPreference 32 android:key="emergency_gesture_sound" 33 android:icon="@drawable/ic_hearing" 34 android:title="@string/emergency_gesture_sound_setting_title" 35 android:summary="@string/emergency_gesture_sound_setting_summary" 36 app:keywords="@string/keywords_gesture" 37 app:controller="com.android.settings.emergency.EmergencyGestureSoundPreferenceController"/> 38 <PreferenceCategory 39 android:key="emergency_gesture_notify_for_help" 40 android:title="@string/emergency_gesture_category_call_for_help_title"> 41 <com.android.settings.emergency.EmergencyGestureNumberOverridePreference 42 android:key="emregency_gesture_number_override" 43 android:title="@string/emergency_gesture_call_for_help_title" 44 android:summary="@string/summary_placeholder" 45 android:icon="@drawable/ic_call_grey_24dp" 46 android:dialogTitle="@string/emergency_gesture_call_for_help_dialog_title" 47 android:dialogLayout="@layout/emergency_gesture_number_override_dialog" 48 android:positiveButtonText="@string/save" 49 app:controller="com.android.settings.emergency.EmergencyGestureNumberOverridePreferenceController"/> 50 </PreferenceCategory> 51</PreferenceScreen> 52