blob: 5f4ff735ec3551c16aa3650d455ed93a5158eec1 [file] [log] [blame]
mariagpuyol16face32016-02-12 09:58:27 -08001<?xml version="1.0" encoding="utf-8"?>
Juan Lang432ad362017-05-04 16:20:22 -07002<!-- Copyright (C) 2017 The Android Open Source Project
mariagpuyol16face32016-02-12 09:58:27 -08003
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 Lang432ad362017-05-04 16:20:22 -070016<PreferenceScreen
17 xmlns:android="http://schemas.android.com/apk/res/android"
18 android:title="@string/app_label">
19 <PreferenceCategory
20 android:key="medical_info"
21 android:title="@string/medical_info_title">
22 <com.android.emergency.preferences.NameAutoCompletePreference
23 android:enabled="false"
24 android:focusable="true"
25 android:icon="@drawable/ic_account_circle"
26 android:inputType="textCapWords|textPersonName"
27 android:key="name"
28 android:selectable="false"
29 android:shouldDisableView="false"
30 android:singleLine="true"
31 android:title="@string/name" />
mariagpuyol1a7c71e2016-01-26 15:24:40 -080032
Juan Lang432ad362017-05-04 16:20:22 -070033 <com.android.emergency.preferences.EmergencyEditTextPreference
34 android:enabled="false"
35 android:focusable="true"
36 android:icon="@drawable/ic_address_black_24dp"
37 android:key="address"
38 android:selectable="false"
39 android:shouldDisableView="false"
40 android:title="@string/address" />
mariagpuyol42103d32016-01-22 12:05:25 -080041
Juan Lang432ad362017-05-04 16:20:22 -070042 <com.android.emergency.preferences.EmergencyListPreference
43 xmlns:app="http://schemas.android.com/apk/res/com.android.emergency"
44 android:enabled="false"
45 android:focusable="true"
46 android:icon="@drawable/ic_bloodtype_black_24dp"
47 android:entries="@array/blood_type_entries"
48 android:entryValues="@array/blood_type_values"
49 android:key="blood_type"
50 android:selectable="false"
51 android:shouldDisableView="false"
52 android:title="@string/blood_type"
53 app:entryContentDescriptions="@array/blood_type_content_description" />
Akshay Kannancdb6c142016-01-20 18:25:44 -080054
Juan Lang432ad362017-05-04 16:20:22 -070055 <com.android.emergency.preferences.EmergencyEditTextPreference
56 android:enabled="false"
57 android:focusable="true"
58 android:icon="@drawable/ic_allergies_black_24dp"
59 android:key="allergies"
60 android:selectable="false"
61 android:shouldDisableView="false"
62 android:title="@string/allergies" />
Akshay Kannancdb6c142016-01-20 18:25:44 -080063
Juan Lang432ad362017-05-04 16:20:22 -070064 <com.android.emergency.preferences.EmergencyEditTextPreference
65 android:enabled="false"
66 android:focusable="true"
67 android:icon="@drawable/ic_medication_24dp"
68 android:key="medications"
69 android:selectable="false"
70 android:shouldDisableView="false"
71 android:title="@string/medications" />
Akshay Kannancdb6c142016-01-20 18:25:44 -080072
Juan Lang432ad362017-05-04 16:20:22 -070073 <com.android.emergency.preferences.EmergencyListPreference
74 android:enabled="false"
75 android:focusable="true"
76 android:icon="@drawable/ic_heart_black_24dp"
77 android:entries="@array/organ_donor_entries"
78 android:entryValues="@array/organ_donor_values"
79 android:key="organ_donor"
80 android:selectable="false"
81 android:shouldDisableView="false"
82 android:title="@string/organ_donor" />
mariagpuyol03ee5322016-03-04 10:59:03 -080083
Juan Lang432ad362017-05-04 16:20:22 -070084 <com.android.emergency.preferences.EmergencyEditTextPreference
85 android:enabled="false"
86 android:focusable="true"
87 android:icon="@drawable/ic_notes_black_24dp"
88 android:key="medical_conditions"
89 android:selectable="false"
90 android:shouldDisableView="false"
91 android:title="@string/medical_conditions" />
92
93 <Preference
94 android:key="edit_medical_info"
95 android:icon="@drawable/ic_mode_edit_googblue_24dp"
96 android:title="@string/edit_medical_info">
97 <intent android:action="android.emergency.EDIT_MEDICAL_INFO"/>
98 </Preference>
99 </PreferenceCategory>
100
101 <com.android.emergency.preferences.EmergencyContactsPreference
102 android:key="emergency_contacts"
103 android:title="@string/emergency_contacts_title"/>
104 <Preference
105 android:key="add_emergency_contact"
106 android:icon="@drawable/ic_add_24dp"
107 android:title="@string/add_emergency_contact"/>
Akshay Kannancdb6c142016-01-20 18:25:44 -0800108</PreferenceScreen>