blob: 5795e11bb87152573850bcef348349501c7e6e88 [file] [log] [blame]
Juan Lang432ad362017-05-04 16:20:22 -07001<?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 Lang881b3de2017-08-17 15:28:35 -070016<PreferenceScreen
17 xmlns:android="http://schemas.android.com/apk/res/android"
Fan Zhangc11cf272017-11-16 14:27:01 -080018 xmlns:app="http://schemas.android.com/apk/res-auto"
19 android:key="edit_medical_info_settings">
Juan Lang881b3de2017-08-17 15:28:35 -070020
Juan Lang432ad362017-05-04 16:20:22 -070021 <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 Lang881b3de2017-08-17 15:28:35 -070026 android:title="@string/name"
Juan Langc12698e2018-01-12 09:55:47 -080027 app:summary="@string/unknown_name"
28 style="@style/NameAutoCompletePreference" />
Juan Lang432ad362017-05-04 16:20:22 -070029
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 Lang881b3de2017-08-17 15:28:35 -070035 android:title="@string/address"
36 app:summary="@string/unknown_address" />
Juan Lang432ad362017-05-04 16:20:22 -070037
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 Lang432ad362017-05-04 16:20:22 -070047 android:title="@string/blood_type"
Juan Lang881b3de2017-08-17 15:28:35 -070048 app:entryContentDescriptions="@array/blood_type_content_description"
49 app:summary="@string/unknown_blood_type" />
Juan Lang432ad362017-05-04 16:20:22 -070050
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 Lang881b3de2017-08-17 15:28:35 -070059 android:title="@string/allergies"
60 app:summary="@string/unknown_allergies" />
Juan Lang432ad362017-05-04 16:20:22 -070061
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 Lang881b3de2017-08-17 15:28:35 -070070 android:title="@string/medications"
71 app:summary="@string/unknown_medications" />
Juan Lang432ad362017-05-04 16:20:22 -070072
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 Lang881b3de2017-08-17 15:28:35 -070081 android:title="@string/organ_donor"
82 app:summary="@string/unknown_organ_donor" />
Juan Lang432ad362017-05-04 16:20:22 -070083
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 Lang881b3de2017-08-17 15:28:35 -070092 android:title="@string/medical_conditions"
93 app:summary="@string/unknown_medical_conditions" />
Juan Lang432ad362017-05-04 16:20:22 -070094</PreferenceScreen>