blob: f95e6db4d1b3f87da4e7f3105df399c83d87c26f [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"
Fan Zhangc11cf272017-11-16 14:27:01 -080018 android:key="edit_emergency_info_settings"
Juan Lang432ad362017-05-04 16:20:22 -070019 android:title="@string/app_label">
20 <PreferenceCategory
21 android:key="medical_info"
22 android:title="@string/medical_info_title">
23 <com.android.emergency.preferences.NameAutoCompletePreference
24 android:enabled="false"
25 android:focusable="true"
26 android:icon="@drawable/ic_account_circle"
27 android:inputType="textCapWords|textPersonName"
28 android:key="name"
29 android:selectable="false"
30 android:shouldDisableView="false"
31 android:singleLine="true"
32 android:title="@string/name" />
mariagpuyol1a7c71e2016-01-26 15:24:40 -080033
Juan Lang432ad362017-05-04 16:20:22 -070034 <com.android.emergency.preferences.EmergencyEditTextPreference
35 android:enabled="false"
36 android:focusable="true"
37 android:icon="@drawable/ic_address_black_24dp"
38 android:key="address"
39 android:selectable="false"
40 android:shouldDisableView="false"
41 android:title="@string/address" />
mariagpuyol42103d32016-01-22 12:05:25 -080042
Juan Lang432ad362017-05-04 16:20:22 -070043 <com.android.emergency.preferences.EmergencyListPreference
44 xmlns:app="http://schemas.android.com/apk/res/com.android.emergency"
45 android:enabled="false"
46 android:focusable="true"
47 android:icon="@drawable/ic_bloodtype_black_24dp"
48 android:entries="@array/blood_type_entries"
49 android:entryValues="@array/blood_type_values"
50 android:key="blood_type"
51 android:selectable="false"
52 android:shouldDisableView="false"
53 android:title="@string/blood_type"
54 app:entryContentDescriptions="@array/blood_type_content_description" />
Akshay Kannancdb6c142016-01-20 18:25:44 -080055
Juan Lang432ad362017-05-04 16:20:22 -070056 <com.android.emergency.preferences.EmergencyEditTextPreference
57 android:enabled="false"
58 android:focusable="true"
59 android:icon="@drawable/ic_allergies_black_24dp"
60 android:key="allergies"
61 android:selectable="false"
62 android:shouldDisableView="false"
63 android:title="@string/allergies" />
Akshay Kannancdb6c142016-01-20 18:25:44 -080064
Juan Lang432ad362017-05-04 16:20:22 -070065 <com.android.emergency.preferences.EmergencyEditTextPreference
66 android:enabled="false"
67 android:focusable="true"
68 android:icon="@drawable/ic_medication_24dp"
69 android:key="medications"
70 android:selectable="false"
71 android:shouldDisableView="false"
72 android:title="@string/medications" />
Akshay Kannancdb6c142016-01-20 18:25:44 -080073
Juan Lang432ad362017-05-04 16:20:22 -070074 <com.android.emergency.preferences.EmergencyListPreference
75 android:enabled="false"
76 android:focusable="true"
77 android:icon="@drawable/ic_heart_black_24dp"
78 android:entries="@array/organ_donor_entries"
79 android:entryValues="@array/organ_donor_values"
80 android:key="organ_donor"
81 android:selectable="false"
82 android:shouldDisableView="false"
83 android:title="@string/organ_donor" />
mariagpuyol03ee5322016-03-04 10:59:03 -080084
Juan Lang432ad362017-05-04 16:20:22 -070085 <com.android.emergency.preferences.EmergencyEditTextPreference
86 android:enabled="false"
87 android:focusable="true"
88 android:icon="@drawable/ic_notes_black_24dp"
89 android:key="medical_conditions"
90 android:selectable="false"
91 android:shouldDisableView="false"
92 android:title="@string/medical_conditions" />
93
94 <Preference
95 android:key="edit_medical_info"
Juan Langf7b09ce2018-01-11 09:15:49 -080096 android:icon="@drawable/ic_mode_edit_24dp"
Juan Lang432ad362017-05-04 16:20:22 -070097 android:title="@string/edit_medical_info">
98 <intent android:action="android.emergency.EDIT_MEDICAL_INFO"/>
99 </Preference>
100 </PreferenceCategory>
101
102 <com.android.emergency.preferences.EmergencyContactsPreference
103 android:key="emergency_contacts"
104 android:title="@string/emergency_contacts_title"/>
105 <Preference
106 android:key="add_emergency_contact"
107 android:icon="@drawable/ic_add_24dp"
108 android:title="@string/add_emergency_contact"/>
Juan Lang1325ec62017-06-13 10:10:53 -0700109
110 <com.android.settingslib.widget.FooterPreference
111 android:title="@string/emergency_info_footer"
Fan Zhangc11cf272017-11-16 14:27:01 -0800112 android:key="footer_preference"
Juan Lang1325ec62017-06-13 10:10:53 -0700113 android:selectable="false"/>
Akshay Kannancdb6c142016-01-20 18:25:44 -0800114</PreferenceScreen>