mariagpuyol | 16face3 | 2016-02-12 09:58:27 -0800 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2015 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 | --> |
Akshay Kannan | cdb6c14 | 2016-01-20 18:25:44 -0800 | [diff] [blame] | 16 | <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> |
| 17 | |
mariagpuyol | 42103d3 | 2016-01-22 12:05:25 -0800 | [diff] [blame] | 18 | <!-- NOTE: EditTextPreference accepts EditText attributes. --> |
| 19 | <!-- NOTE: EditTextPreference's summary should be set to its value by the activity code. --> |
mariagpuyol | 1a7c71e | 2016-01-26 15:24:40 -0800 | [diff] [blame] | 20 | <EditTextPreference |
mariagpuyol | 48a14b9 | 2016-01-26 16:19:08 -0800 | [diff] [blame] | 21 | android:inputType="textCapWords|textPersonName" |
| 22 | android:singleLine="true" |
mariagpuyol | 1a7c71e | 2016-01-26 15:24:40 -0800 | [diff] [blame] | 23 | android:key="name" |
| 24 | android:selectAllOnFocus="true" |
mariagpuyol | 539eeaf | 2016-01-26 15:56:04 -0800 | [diff] [blame] | 25 | android:summary="@string/default_summary_none" |
mariagpuyol | 1a7c71e | 2016-01-26 15:24:40 -0800 | [diff] [blame] | 26 | android:title="@string/name" /> |
| 27 | |
| 28 | <EditTextPreference |
mariagpuyol | 48a14b9 | 2016-01-26 16:19:08 -0800 | [diff] [blame] | 29 | android:inputType="textCapWords|textPostalAddress|textMultiLine" |
mariagpuyol | 1a7c71e | 2016-01-26 15:24:40 -0800 | [diff] [blame] | 30 | android:singleLine="false" |
| 31 | android:key="address" |
| 32 | android:selectAllOnFocus="true" |
mariagpuyol | 539eeaf | 2016-01-26 15:56:04 -0800 | [diff] [blame] | 33 | android:summary="@string/default_summary_none" |
mariagpuyol | 1a7c71e | 2016-01-26 15:24:40 -0800 | [diff] [blame] | 34 | android:title="@string/address" /> |
| 35 | |
mariagpuyol | 42103d3 | 2016-01-22 12:05:25 -0800 | [diff] [blame] | 36 | <com.android.emergency.DatePreference |
| 37 | android:key="date_of_birth" |
| 38 | android:selectAllOnFocus="true" |
mariagpuyol | 539eeaf | 2016-01-26 15:56:04 -0800 | [diff] [blame] | 39 | android:summary="@string/default_summary_none" |
mariagpuyol | 42103d3 | 2016-01-22 12:05:25 -0800 | [diff] [blame] | 40 | android:title="@string/date_of_birth" |
| 41 | android:persistent="true" |
| 42 | android:defaultValue=""/> |
| 43 | |
Akshay Kannan | cdb6c14 | 2016-01-20 18:25:44 -0800 | [diff] [blame] | 44 | <!-- NOTE: Hide buttons to simplify the UI. Users can touch outside the dialog to |
| 45 | dismiss it. --> |
| 46 | <!-- NOTE: ListPreference's summary should be set to its value by the activity code. --> |
| 47 | <ListPreference |
mariagpuyol | 539eeaf | 2016-01-26 15:56:04 -0800 | [diff] [blame] | 48 | android:defaultValue="@string/default_summary_none" |
Akshay Kannan | cdb6c14 | 2016-01-20 18:25:44 -0800 | [diff] [blame] | 49 | android:entries="@array/blood_type_values" |
| 50 | android:entryValues="@array/blood_type_values" |
| 51 | android:key="blood_type" |
| 52 | android:negativeButtonText="@null" |
| 53 | android:positiveButtonText="@null" |
mariagpuyol | 539eeaf | 2016-01-26 15:56:04 -0800 | [diff] [blame] | 54 | android:summary="@string/default_summary_none" |
Akshay Kannan | cdb6c14 | 2016-01-20 18:25:44 -0800 | [diff] [blame] | 55 | android:title="@string/blood_type" /> |
| 56 | |
Akshay Kannan | cdb6c14 | 2016-01-20 18:25:44 -0800 | [diff] [blame] | 57 | <EditTextPreference |
| 58 | android:capitalize="sentences" |
mariagpuyol | 94e8c9d | 2016-01-21 21:41:05 -0800 | [diff] [blame] | 59 | android:inputType="textMultiLine" |
| 60 | android:singleLine="false" |
Akshay Kannan | cdb6c14 | 2016-01-20 18:25:44 -0800 | [diff] [blame] | 61 | android:key="allergies" |
Akshay Kannan | cdb6c14 | 2016-01-20 18:25:44 -0800 | [diff] [blame] | 62 | android:selectAllOnFocus="true" |
mariagpuyol | 42103d3 | 2016-01-22 12:05:25 -0800 | [diff] [blame] | 63 | android:summary="@string/default_summary_none" |
Akshay Kannan | cdb6c14 | 2016-01-20 18:25:44 -0800 | [diff] [blame] | 64 | android:title="@string/allergies" /> |
| 65 | |
| 66 | <EditTextPreference |
| 67 | android:capitalize="sentences" |
mariagpuyol | 94e8c9d | 2016-01-21 21:41:05 -0800 | [diff] [blame] | 68 | android:inputType="textMultiLine" |
| 69 | android:singleLine="false" |
Akshay Kannan | cdb6c14 | 2016-01-20 18:25:44 -0800 | [diff] [blame] | 70 | android:key="medications" |
Akshay Kannan | cdb6c14 | 2016-01-20 18:25:44 -0800 | [diff] [blame] | 71 | android:selectAllOnFocus="true" |
mariagpuyol | 42103d3 | 2016-01-22 12:05:25 -0800 | [diff] [blame] | 72 | android:summary="@string/default_summary_none" |
Akshay Kannan | cdb6c14 | 2016-01-20 18:25:44 -0800 | [diff] [blame] | 73 | android:title="@string/medications" /> |
| 74 | |
| 75 | <EditTextPreference |
| 76 | android:capitalize="sentences" |
mariagpuyol | 94e8c9d | 2016-01-21 21:41:05 -0800 | [diff] [blame] | 77 | android:inputType="textMultiLine" |
Akshay Kannan | cdb6c14 | 2016-01-20 18:25:44 -0800 | [diff] [blame] | 78 | android:singleLine="false" |
mariagpuyol | 94e8c9d | 2016-01-21 21:41:05 -0800 | [diff] [blame] | 79 | android:key="medical_conditions" |
| 80 | android:selectAllOnFocus="true" |
mariagpuyol | 42103d3 | 2016-01-22 12:05:25 -0800 | [diff] [blame] | 81 | android:summary="@string/default_summary_none" |
Akshay Kannan | cdb6c14 | 2016-01-20 18:25:44 -0800 | [diff] [blame] | 82 | android:title="@string/medical_conditions" /> |
Akshay Kannan | b1d2a5b | 2016-01-21 15:24:06 -0800 | [diff] [blame] | 83 | |
mariagpuyol | 1a7c71e | 2016-01-26 15:24:40 -0800 | [diff] [blame] | 84 | <ListPreference |
mariagpuyol | 539eeaf | 2016-01-26 15:56:04 -0800 | [diff] [blame] | 85 | android:defaultValue="@string/default_summary_none" |
mariagpuyol | 1a7c71e | 2016-01-26 15:24:40 -0800 | [diff] [blame] | 86 | android:entries="@array/organ_donor_values" |
| 87 | android:entryValues="@array/organ_donor_values" |
| 88 | android:key="organ_donor" |
| 89 | android:negativeButtonText="@null" |
| 90 | android:positiveButtonText="@null" |
mariagpuyol | 539eeaf | 2016-01-26 15:56:04 -0800 | [diff] [blame] | 91 | android:summary="@string/default_summary_none" |
mariagpuyol | 1a7c71e | 2016-01-26 15:24:40 -0800 | [diff] [blame] | 92 | android:title="@string/organ_donor" /> |
| 93 | |
Akshay Kannan | b1d2a5b | 2016-01-21 15:24:06 -0800 | [diff] [blame] | 94 | <PreferenceCategory |
| 95 | android:key="emergency_contacts" |
| 96 | android:title="@string/emergency_contacts_title"> |
Akshay Kannan | cdb6c14 | 2016-01-20 18:25:44 -0800 | [diff] [blame] | 97 | </PreferenceCategory> |
| 98 | |
Akshay Kannan | b1d2a5b | 2016-01-21 15:24:06 -0800 | [diff] [blame] | 99 | <EditTextPreference |
| 100 | android:selectable="false" |
| 101 | android:clickable="false" |
| 102 | android:enabled="false" |
| 103 | android:shouldDisableView="false" |
| 104 | android:key="description" |
| 105 | android:summary="@string/description" /> |
Akshay Kannan | cdb6c14 | 2016-01-20 18:25:44 -0800 | [diff] [blame] | 106 | |
| 107 | </PreferenceScreen> |