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