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