| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2017 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <PreferenceScreen |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:title="@string/app_label"> |
| <PreferenceCategory |
| android:key="medical_info" |
| android:title="@string/medical_info_title"> |
| <com.android.emergency.preferences.NameAutoCompletePreference |
| android:enabled="false" |
| android:focusable="true" |
| android:icon="@drawable/ic_account_circle" |
| android:inputType="textCapWords|textPersonName" |
| android:key="name" |
| android:selectable="false" |
| android:shouldDisableView="false" |
| android:singleLine="true" |
| android:title="@string/name" /> |
| |
| <com.android.emergency.preferences.EmergencyEditTextPreference |
| android:enabled="false" |
| android:focusable="true" |
| android:icon="@drawable/ic_address_black_24dp" |
| android:key="address" |
| android:selectable="false" |
| android:shouldDisableView="false" |
| android:title="@string/address" /> |
| |
| <com.android.emergency.preferences.EmergencyListPreference |
| xmlns:app="http://schemas.android.com/apk/res/com.android.emergency" |
| android:enabled="false" |
| android:focusable="true" |
| android:icon="@drawable/ic_bloodtype_black_24dp" |
| android:entries="@array/blood_type_entries" |
| android:entryValues="@array/blood_type_values" |
| android:key="blood_type" |
| android:selectable="false" |
| android:shouldDisableView="false" |
| android:title="@string/blood_type" |
| app:entryContentDescriptions="@array/blood_type_content_description" /> |
| |
| <com.android.emergency.preferences.EmergencyEditTextPreference |
| android:enabled="false" |
| android:focusable="true" |
| android:icon="@drawable/ic_allergies_black_24dp" |
| android:key="allergies" |
| android:selectable="false" |
| android:shouldDisableView="false" |
| android:title="@string/allergies" /> |
| |
| <com.android.emergency.preferences.EmergencyEditTextPreference |
| android:enabled="false" |
| android:focusable="true" |
| android:icon="@drawable/ic_medication_24dp" |
| android:key="medications" |
| android:selectable="false" |
| android:shouldDisableView="false" |
| android:title="@string/medications" /> |
| |
| <com.android.emergency.preferences.EmergencyListPreference |
| android:enabled="false" |
| android:focusable="true" |
| android:icon="@drawable/ic_heart_black_24dp" |
| android:entries="@array/organ_donor_entries" |
| android:entryValues="@array/organ_donor_values" |
| android:key="organ_donor" |
| android:selectable="false" |
| android:shouldDisableView="false" |
| android:title="@string/organ_donor" /> |
| |
| <com.android.emergency.preferences.EmergencyEditTextPreference |
| android:enabled="false" |
| android:focusable="true" |
| android:icon="@drawable/ic_notes_black_24dp" |
| android:key="medical_conditions" |
| android:selectable="false" |
| android:shouldDisableView="false" |
| android:title="@string/medical_conditions" /> |
| |
| <Preference |
| android:key="edit_medical_info" |
| android:icon="@drawable/ic_mode_edit_googblue_24dp" |
| android:title="@string/edit_medical_info"> |
| <intent android:action="android.emergency.EDIT_MEDICAL_INFO"/> |
| </Preference> |
| </PreferenceCategory> |
| |
| <com.android.emergency.preferences.EmergencyContactsPreference |
| android:key="emergency_contacts" |
| android:title="@string/emergency_contacts_title"/> |
| <Preference |
| android:key="add_emergency_contact" |
| android:icon="@drawable/ic_add_24dp" |
| android:title="@string/add_emergency_contact"/> |
| </PreferenceScreen> |