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