1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2017 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 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<PreferenceScreen 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:key="edit_emergency_info_settings" 19 android:title="@string/app_label"> 20 <PreferenceCategory 21 android:key="medical_info" 22 android:title="@string/medical_info_title"> 23 <com.android.emergency.preferences.EmergencyNamePreference 24 android:icon="@drawable/ic_account_circle_filled_24dp" 25 android:key="name" 26 android:title="@string/name" 27 android:summary="@string/unknown_name" /> 28 29 <com.android.emergency.preferences.EmergencyEditTextPreference 30 android:icon="@drawable/ic_home_24dp" 31 android:key="address" 32 android:singleLine="false" 33 android:inputType="textCapWords|textPostalAddress|textMultiLine" 34 android:title="@string/address" /> 35 36 <com.android.emergency.preferences.EmergencyListPreference 37 xmlns:app="http://schemas.android.com/apk/res/com.android.emergency" 38 android:icon="@drawable/ic_bloodtype_24dp" 39 android:entries="@array/blood_type_entries" 40 android:entryValues="@array/blood_type_values" 41 android:key="blood_type" 42 android:negativeButtonText="@null" 43 android:positiveButtonText="@null" 44 android:title="@string/blood_type" 45 app:entryContentDescriptions="@array/blood_type_content_description" /> 46 47 <com.android.emergency.preferences.EmergencyEditTextPreference 48 android:capitalize="sentences" 49 android:icon="@drawable/ic_allergies_black_24dp" 50 android:hint="@string/allergies_hint" 51 android:textColorHint="@color/hint_text_color" 52 android:key="allergies" 53 android:inputType="textMultiLine" 54 android:singleLine="false" 55 android:title="@string/allergies" /> 56 57 <com.android.emergency.preferences.EmergencyEditTextPreference 58 android:capitalize="sentences" 59 android:icon="@drawable/ic_medication_24dp" 60 android:hint="@string/medications_hint" 61 android:textColorHint="@color/hint_text_color" 62 android:key="medications" 63 android:inputType="textMultiLine" 64 android:singleLine="false" 65 android:title="@string/medications" /> 66 67 <com.android.emergency.preferences.EmergencyListPreference 68 android:icon="@drawable/ic_favorite_border_24dp" 69 android:entries="@array/organ_donor_entries" 70 android:entryValues="@array/organ_donor_values" 71 android:key="organ_donor" 72 android:negativeButtonText="@null" 73 android:positiveButtonText="@null" 74 android:title="@string/organ_donor" /> 75 76 <com.android.emergency.preferences.EmergencyEditTextPreference 77 android:capitalize="sentences" 78 android:hint="@string/medical_conditions_hint" 79 android:textColorHint="@color/hint_text_color" 80 android:icon="@drawable/ic_note_alt_24dp" 81 android:key="medical_conditions" 82 android:inputType="textMultiLine" 83 android:singleLine="false" 84 android:title="@string/medical_conditions" /> 85 86 <Preference 87 android:key="edit_medical_info" 88 android:icon="@drawable/ic_add_24dp" 89 android:title="@string/add_medical_info"> 90 <intent android:action="android.emergency.EDIT_MEDICAL_INFO"/> 91 </Preference> 92 </PreferenceCategory> 93 94 <com.android.emergency.preferences.EmergencyContactsPreference 95 android:key="emergency_contacts" 96 android:title="@string/emergency_contacts_title"/> 97 <Preference 98 android:key="add_emergency_contact" 99 android:icon="@drawable/ic_add_24dp" 100 android:title="@string/add_emergency_contact"/> 101 102 <com.android.settingslib.widget.FooterPreference 103 android:title="@string/emergency_info_footer" 104 android:key="footer_preference" 105 android:selectable="false"/> 106</PreferenceScreen> 107