android:layout_height="match_parent"
>
- <CheckBoxPreference
- android:key="example_checkbox"
- android:title="@string/pref_title_social_recommendations"
- android:summary="@string/pref_description_social_recommendations"
- android:defaultValue="true" />
-
<!-- NOTE: EditTextPreference accepts EditText attributes. -->
<!-- NOTE: EditTextPreference's summary should be set to its value by the activity code. -->
<EditTextPreference
dismiss it. -->
<!-- NOTE: ListPreference's summary should be set to its value by the activity code. -->
<ListPreference
- android:key="example_list"
- android:title="@string/pref_title_add_friends_to_messages"
- android:defaultValue="-1"
- android:entries="@array/pref_example_list_titles"
- android:entryValues="@array/pref_example_list_values"
+ android:key="@string/pref_units_key"
+ android:title="@string/pref_units_title"
+ android:defaultValue="@string/pref_units_default"
+ android:entries="@array/pref_units_labels"
+ android:entryValues="@array/pref_units_values"
+ android:summary="%s"
android:negativeButtonText="@null"
android:positiveButtonText="@null" />