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 xmlns:app="http://schemas.android.com/apk/res-auto" 19 android:key="edit_medical_info_settings"> 20 21 <com.android.emergency.preferences.EmergencyNamePreference 22 android:icon="@drawable/ic_account_circle_filled_24dp" 23 android:key="name" 24 android:title="@string/name" 25 app:summary="@string/unknown_name" /> 26 27 <com.android.emergency.preferences.EmergencyEditTextPreference 28 android:icon="@drawable/ic_home_24dp" 29 android:inputType="textCapWords|textPostalAddress|textMultiLine" 30 android:key="address" 31 android:singleLine="false" 32 android:title="@string/address" 33 app:summary="@string/unknown_address" /> 34 35 <com.android.emergency.preferences.EmergencyListPreference 36 xmlns:app="http://schemas.android.com/apk/res/com.android.emergency" 37 android:defaultValue="" 38 android:entries="@array/blood_type_entries" 39 android:entryValues="@array/blood_type_values" 40 android:icon="@drawable/ic_bloodtype_24dp" 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 app:summary="@string/unknown_blood_type" /> 47 48 <com.android.emergency.preferences.EmergencyEditTextPreference 49 android:capitalize="sentences" 50 android:hint="@string/allergies_hint" 51 android:textColorHint="@color/hint_text_color" 52 android:icon="@drawable/ic_allergies_black_24dp" 53 android:inputType="textMultiLine" 54 android:key="allergies" 55 android:singleLine="false" 56 android:title="@string/allergies" 57 app:summary="@string/unknown_allergies" /> 58 59 <com.android.emergency.preferences.EmergencyEditTextPreference 60 android:capitalize="sentences" 61 android:hint="@string/medications_hint" 62 android:textColorHint="@color/hint_text_color" 63 android:icon="@drawable/ic_medication_24dp" 64 android:inputType="textMultiLine" 65 android:key="medications" 66 android:singleLine="false" 67 android:title="@string/medications" 68 app:summary="@string/unknown_medications" /> 69 70 <com.android.emergency.preferences.EmergencyListPreference 71 android:entries="@array/organ_donor_entries" 72 android:entryValues="@array/organ_donor_values" 73 android:icon="@drawable/ic_favorite_border_24dp" 74 android:key="organ_donor" 75 android:defaultValue="" 76 android:negativeButtonText="@null" 77 android:positiveButtonText="@null" 78 android:title="@string/organ_donor" 79 app:summary="@string/unknown_organ_donor" /> 80 81 <com.android.emergency.preferences.EmergencyEditTextPreference 82 android:capitalize="sentences" 83 android:hint="@string/medical_conditions_hint" 84 android:textColorHint="@color/hint_text_color" 85 android:icon="@drawable/ic_note_alt_24dp" 86 android:inputType="textMultiLine" 87 android:key="medical_conditions" 88 android:singleLine="false" 89 android:title="@string/medical_conditions" 90 app:summary="@string/unknown_medical_conditions" /> 91</PreferenceScreen> 92