You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
3.9 KiB
92 lines
3.9 KiB
<?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"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:key="edit_medical_info_settings">
|
|
|
|
<com.android.emergency.preferences.EmergencyNamePreference
|
|
android:icon="@drawable/ic_account_circle_filled_24dp"
|
|
android:key="name"
|
|
android:title="@string/name"
|
|
app:summary="@string/unknown_name" />
|
|
|
|
<com.android.emergency.preferences.EmergencyEditTextPreference
|
|
android:icon="@drawable/ic_home_24dp"
|
|
android:inputType="textCapWords|textPostalAddress|textMultiLine"
|
|
android:key="address"
|
|
android:singleLine="false"
|
|
android:title="@string/address"
|
|
app:summary="@string/unknown_address" />
|
|
|
|
<com.android.emergency.preferences.EmergencyListPreference
|
|
xmlns:app="http://schemas.android.com/apk/res/com.android.emergency"
|
|
android:defaultValue=""
|
|
android:entries="@array/blood_type_entries"
|
|
android:entryValues="@array/blood_type_values"
|
|
android:icon="@drawable/ic_bloodtype_24dp"
|
|
android:key="blood_type"
|
|
android:negativeButtonText="@null"
|
|
android:positiveButtonText="@null"
|
|
android:title="@string/blood_type"
|
|
app:entryContentDescriptions="@array/blood_type_content_description"
|
|
app:summary="@string/unknown_blood_type" />
|
|
|
|
<com.android.emergency.preferences.EmergencyEditTextPreference
|
|
android:capitalize="sentences"
|
|
android:hint="@string/allergies_hint"
|
|
android:textColorHint="@color/hint_text_color"
|
|
android:icon="@drawable/ic_allergies_black_24dp"
|
|
android:inputType="textMultiLine"
|
|
android:key="allergies"
|
|
android:singleLine="false"
|
|
android:title="@string/allergies"
|
|
app:summary="@string/unknown_allergies" />
|
|
|
|
<com.android.emergency.preferences.EmergencyEditTextPreference
|
|
android:capitalize="sentences"
|
|
android:hint="@string/medications_hint"
|
|
android:textColorHint="@color/hint_text_color"
|
|
android:icon="@drawable/ic_medication_24dp"
|
|
android:inputType="textMultiLine"
|
|
android:key="medications"
|
|
android:singleLine="false"
|
|
android:title="@string/medications"
|
|
app:summary="@string/unknown_medications" />
|
|
|
|
<com.android.emergency.preferences.EmergencyListPreference
|
|
android:entries="@array/organ_donor_entries"
|
|
android:entryValues="@array/organ_donor_values"
|
|
android:icon="@drawable/ic_favorite_border_24dp"
|
|
android:key="organ_donor"
|
|
android:defaultValue=""
|
|
android:negativeButtonText="@null"
|
|
android:positiveButtonText="@null"
|
|
android:title="@string/organ_donor"
|
|
app:summary="@string/unknown_organ_donor" />
|
|
|
|
<com.android.emergency.preferences.EmergencyEditTextPreference
|
|
android:capitalize="sentences"
|
|
android:hint="@string/medical_conditions_hint"
|
|
android:textColorHint="@color/hint_text_color"
|
|
android:icon="@drawable/ic_note_alt_24dp"
|
|
android:inputType="textMultiLine"
|
|
android:key="medical_conditions"
|
|
android:singleLine="false"
|
|
android:title="@string/medical_conditions"
|
|
app:summary="@string/unknown_medical_conditions" />
|
|
</PreferenceScreen>
|