| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2015 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"> |
| |
| <!-- NOTE: EditTextPreference accepts EditText attributes. --> |
| <!-- NOTE: EditTextPreference's summary should be set to its value by the activity code. --> |
| <EditTextPreference |
| android:inputType="textCapWords|textPersonName" |
| android:singleLine="true" |
| android:key="name" |
| android:selectAllOnFocus="true" |
| android:summary="@string/default_summary_none" |
| android:title="@string/name" /> |
| |
| <EditTextPreference |
| android:inputType="textCapWords|textPostalAddress|textMultiLine" |
| android:singleLine="false" |
| android:key="address" |
| android:selectAllOnFocus="true" |
| android:summary="@string/default_summary_none" |
| android:title="@string/address" /> |
| |
| <com.android.emergency.DatePreference |
| android:key="date_of_birth" |
| android:selectAllOnFocus="true" |
| android:summary="@string/default_summary_none" |
| android:title="@string/date_of_birth" |
| android:persistent="true" |
| android:defaultValue=""/> |
| |
| <!-- NOTE: Hide buttons to simplify the UI. Users can touch outside the dialog to |
| dismiss it. --> |
| <!-- NOTE: ListPreference's summary should be set to its value by the activity code. --> |
| <ListPreference |
| android:defaultValue="@string/default_summary_none" |
| android:entries="@array/blood_type_values" |
| android:entryValues="@array/blood_type_values" |
| android:key="blood_type" |
| android:negativeButtonText="@null" |
| android:positiveButtonText="@null" |
| android:summary="@string/default_summary_none" |
| android:title="@string/blood_type" /> |
| |
| <EditTextPreference |
| android:capitalize="sentences" |
| android:inputType="textMultiLine" |
| android:singleLine="false" |
| android:key="allergies" |
| android:selectAllOnFocus="true" |
| android:summary="@string/default_summary_none" |
| android:title="@string/allergies" /> |
| |
| <EditTextPreference |
| android:capitalize="sentences" |
| android:inputType="textMultiLine" |
| android:singleLine="false" |
| android:key="medications" |
| android:selectAllOnFocus="true" |
| android:summary="@string/default_summary_none" |
| android:title="@string/medications" /> |
| |
| <EditTextPreference |
| android:capitalize="sentences" |
| android:inputType="textMultiLine" |
| android:singleLine="false" |
| android:key="medical_conditions" |
| android:selectAllOnFocus="true" |
| android:summary="@string/default_summary_none" |
| android:title="@string/medical_conditions" /> |
| |
| <ListPreference |
| android:defaultValue="@string/default_summary_none" |
| android:entries="@array/organ_donor_values" |
| android:entryValues="@array/organ_donor_values" |
| android:key="organ_donor" |
| android:negativeButtonText="@null" |
| android:positiveButtonText="@null" |
| android:summary="@string/default_summary_none" |
| android:title="@string/organ_donor" /> |
| |
| <PreferenceCategory |
| android:key="emergency_contacts" |
| android:title="@string/emergency_contacts_title"> |
| </PreferenceCategory> |
| |
| <EditTextPreference |
| android:selectable="false" |
| android:clickable="false" |
| android:enabled="false" |
| android:shouldDisableView="false" |
| android:key="description" |
| android:summary="@string/description" /> |
| |
| </PreferenceScreen> |