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:title="@string/app_label"> 19 <PreferenceCategory 20 android:key="medical_info" 21 android:title="@string/medical_info_title"> 22 <com.android.emergency.preferences.NameAutoCompletePreference 23 android:enabled="false" 24 android:focusable="true" 25 android:icon="@drawable/ic_account_circle" 26 android:inputType="textCapWords|textPersonName" 27 android:key="name" 28 android:selectable="false" 29 android:shouldDisableView="false" 30 android:singleLine="true" 31 android:title="@string/name" /> 32 33 <com.android.emergency.preferences.EmergencyEditTextPreference 34 android:enabled="false" 35 android:focusable="true" 36 android:icon="@drawable/ic_address_black_24dp" 37 android:key="address" 38 android:selectable="false" 39 android:shouldDisableView="false" 40 android:title="@string/address" /> 41 42 <com.android.emergency.preferences.EmergencyListPreference 43 xmlns:app="http://schemas.android.com/apk/res/com.android.emergency" 44 android:enabled="false" 45 android:focusable="true" 46 android:icon="@drawable/ic_bloodtype_black_24dp" 47 android:entries="@array/blood_type_entries" 48 android:entryValues="@array/blood_type_values" 49 android:key="blood_type" 50 android:selectable="false" 51 android:shouldDisableView="false" 52 android:title="@string/blood_type" 53 app:entryContentDescriptions="@array/blood_type_content_description" /> 54 55 <com.android.emergency.preferences.EmergencyEditTextPreference 56 android:enabled="false" 57 android:focusable="true" 58 android:icon="@drawable/ic_allergies_black_24dp" 59 android:key="allergies" 60 android:selectable="false" 61 android:shouldDisableView="false" 62 android:title="@string/allergies" /> 63 64 <com.android.emergency.preferences.EmergencyEditTextPreference 65 android:enabled="false" 66 android:focusable="true" 67 android:icon="@drawable/ic_medication_24dp" 68 android:key="medications" 69 android:selectable="false" 70 android:shouldDisableView="false" 71 android:title="@string/medications" /> 72 73 <com.android.emergency.preferences.EmergencyListPreference 74 android:enabled="false" 75 android:focusable="true" 76 android:icon="@drawable/ic_heart_black_24dp" 77 android:entries="@array/organ_donor_entries" 78 android:entryValues="@array/organ_donor_values" 79 android:key="organ_donor" 80 android:selectable="false" 81 android:shouldDisableView="false" 82 android:title="@string/organ_donor" /> 83 84 <com.android.emergency.preferences.EmergencyEditTextPreference 85 android:enabled="false" 86 android:focusable="true" 87 android:icon="@drawable/ic_notes_black_24dp" 88 android:key="medical_conditions" 89 android:selectable="false" 90 android:shouldDisableView="false" 91 android:title="@string/medical_conditions" /> 92 93 <Preference 94 android:key="edit_medical_info" 95 android:icon="@drawable/ic_mode_edit_googblue_24dp" 96 android:title="@string/edit_medical_info"> 97 <intent android:action="android.emergency.EDIT_MEDICAL_INFO"/> 98 </Preference> 99 </PreferenceCategory> 100 101 <com.android.emergency.preferences.EmergencyContactsPreference 102 android:key="emergency_contacts" 103 android:title="@string/emergency_contacts_title"/> 104 <Preference 105 android:key="add_emergency_contact" 106 android:icon="@drawable/ic_add_24dp" 107 android:title="@string/add_emergency_contact"/> 108 109 <com.android.settingslib.widget.FooterPreference 110 android:title="@string/emergency_info_footer" 111 android:selectable="false"/> 112 </PreferenceScreen> 113