• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?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-->
16<PreferenceScreen
17        xmlns:android="http://schemas.android.com/apk/res/android"
18        android:key="edit_emergency_info_settings"
19        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_filled_24dp"
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" />
33
34        <com.android.emergency.preferences.EmergencyEditTextPreference
35            android:enabled="false"
36            android:focusable="true"
37            android:icon="@drawable/ic_home_24dp"
38            android:key="address"
39            android:selectable="false"
40            android:shouldDisableView="false"
41            android:title="@string/address" />
42
43        <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_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" />
55
56        <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" />
64
65        <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" />
73
74        <com.android.emergency.preferences.EmergencyListPreference
75            android:enabled="false"
76            android:focusable="true"
77            android:icon="@drawable/ic_favorite_border_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" />
84
85        <com.android.emergency.preferences.EmergencyEditTextPreference
86            android:enabled="false"
87            android:focusable="true"
88            android:icon="@drawable/ic_note_alt_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"
96            android:icon="@drawable/ic_mode_edit"
97            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"/>
109
110    <com.android.settingslib.widget.FooterPreference
111        android:title="@string/emergency_info_footer"
112        android:key="footer_preference"
113        android:selectable="false"/>
114</PreferenceScreen>
115