blob: 6c79a2ddc822b3c90a409faec80864311cb1080f [file] [log] [blame]
mariagpuyol16face32016-02-12 09:58:27 -08001<?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 Kannancdb6c142016-01-20 18:25:44 -080016<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
17
mariagpuyol42103d32016-01-22 12:05:25 -080018 <!-- NOTE: EditTextPreference accepts EditText attributes. -->
19 <!-- NOTE: EditTextPreference's summary should be set to its value by the activity code. -->
mariagpuyol1a7c71e2016-01-26 15:24:40 -080020 <EditTextPreference
mariagpuyol48a14b92016-01-26 16:19:08 -080021 android:inputType="textCapWords|textPersonName"
22 android:singleLine="true"
mariagpuyol1a7c71e2016-01-26 15:24:40 -080023 android:key="name"
24 android:selectAllOnFocus="true"
mariagpuyol539eeaf2016-01-26 15:56:04 -080025 android:summary="@string/default_summary_none"
mariagpuyol1a7c71e2016-01-26 15:24:40 -080026 android:title="@string/name" />
27
28 <EditTextPreference
mariagpuyol48a14b92016-01-26 16:19:08 -080029 android:inputType="textCapWords|textPostalAddress|textMultiLine"
mariagpuyol1a7c71e2016-01-26 15:24:40 -080030 android:singleLine="false"
31 android:key="address"
32 android:selectAllOnFocus="true"
mariagpuyol539eeaf2016-01-26 15:56:04 -080033 android:summary="@string/default_summary_none"
mariagpuyol1a7c71e2016-01-26 15:24:40 -080034 android:title="@string/address" />
35
mariagpuyol42103d32016-01-22 12:05:25 -080036 <com.android.emergency.DatePreference
37 android:key="date_of_birth"
38 android:selectAllOnFocus="true"
mariagpuyol539eeaf2016-01-26 15:56:04 -080039 android:summary="@string/default_summary_none"
mariagpuyol42103d32016-01-22 12:05:25 -080040 android:title="@string/date_of_birth"
41 android:persistent="true"
42 android:defaultValue=""/>
43
Akshay Kannancdb6c142016-01-20 18:25:44 -080044 <!-- 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
mariagpuyol539eeaf2016-01-26 15:56:04 -080048 android:defaultValue="@string/default_summary_none"
Akshay Kannancdb6c142016-01-20 18:25:44 -080049 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"
mariagpuyol539eeaf2016-01-26 15:56:04 -080054 android:summary="@string/default_summary_none"
Akshay Kannancdb6c142016-01-20 18:25:44 -080055 android:title="@string/blood_type" />
56
Akshay Kannancdb6c142016-01-20 18:25:44 -080057 <EditTextPreference
58 android:capitalize="sentences"
mariagpuyol94e8c9d2016-01-21 21:41:05 -080059 android:inputType="textMultiLine"
60 android:singleLine="false"
Akshay Kannancdb6c142016-01-20 18:25:44 -080061 android:key="allergies"
Akshay Kannancdb6c142016-01-20 18:25:44 -080062 android:selectAllOnFocus="true"
mariagpuyol42103d32016-01-22 12:05:25 -080063 android:summary="@string/default_summary_none"
Akshay Kannancdb6c142016-01-20 18:25:44 -080064 android:title="@string/allergies" />
65
66 <EditTextPreference
67 android:capitalize="sentences"
mariagpuyol94e8c9d2016-01-21 21:41:05 -080068 android:inputType="textMultiLine"
69 android:singleLine="false"
Akshay Kannancdb6c142016-01-20 18:25:44 -080070 android:key="medications"
Akshay Kannancdb6c142016-01-20 18:25:44 -080071 android:selectAllOnFocus="true"
mariagpuyol42103d32016-01-22 12:05:25 -080072 android:summary="@string/default_summary_none"
Akshay Kannancdb6c142016-01-20 18:25:44 -080073 android:title="@string/medications" />
74
75 <EditTextPreference
76 android:capitalize="sentences"
mariagpuyol94e8c9d2016-01-21 21:41:05 -080077 android:inputType="textMultiLine"
Akshay Kannancdb6c142016-01-20 18:25:44 -080078 android:singleLine="false"
mariagpuyol94e8c9d2016-01-21 21:41:05 -080079 android:key="medical_conditions"
80 android:selectAllOnFocus="true"
mariagpuyol42103d32016-01-22 12:05:25 -080081 android:summary="@string/default_summary_none"
Akshay Kannancdb6c142016-01-20 18:25:44 -080082 android:title="@string/medical_conditions" />
Akshay Kannanb1d2a5b2016-01-21 15:24:06 -080083
mariagpuyol1a7c71e2016-01-26 15:24:40 -080084 <ListPreference
mariagpuyol539eeaf2016-01-26 15:56:04 -080085 android:defaultValue="@string/default_summary_none"
mariagpuyol1a7c71e2016-01-26 15:24:40 -080086 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"
mariagpuyol539eeaf2016-01-26 15:56:04 -080091 android:summary="@string/default_summary_none"
mariagpuyol1a7c71e2016-01-26 15:24:40 -080092 android:title="@string/organ_donor" />
93
Akshay Kannanb1d2a5b2016-01-21 15:24:06 -080094 <PreferenceCategory
95 android:key="emergency_contacts"
96 android:title="@string/emergency_contacts_title">
Akshay Kannancdb6c142016-01-20 18:25:44 -080097 </PreferenceCategory>
98
Akshay Kannanb1d2a5b2016-01-21 15:24:06 -080099 <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 Kannancdb6c142016-01-20 18:25:44 -0800106
107</PreferenceScreen>