Changeset View
Changeset View
Standalone View
Standalone View
res/xml/preferences.xml
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
| <androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" | <androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" | ||||
| xmlns:app="http://schemas.android.com/apk/res-auto"> | xmlns:app="http://schemas.android.com/apk/res-auto"> | ||||
| <androidx.preference.PreferenceCategory | <androidx.preference.PreferenceCategory | ||||
| android:title="General"> | android:title="@string/general_settings"> | ||||
| <androidx.preference.SwitchPreferenceCompat | <androidx.preference.SwitchPreferenceCompat | ||||
| android:defaultValue="false" | android:defaultValue="false" | ||||
| android:title="@string/settings_experimental" android:key="@string/pref_key_experimental"/> | android:title="@string/settings_experimental" android:key="@string/pref_key_experimental"/> | ||||
| </androidx.preference.PreferenceCategory> | </androidx.preference.PreferenceCategory> | ||||
| <androidx.preference.PreferenceCategory | <androidx.preference.PreferenceCategory | ||||
| android:title="@string/pref_recents_group_title"> | android:title="@string/pref_recents_group_title"> | ||||
| <!-- | |||||
| <androidx.preference.EditTextPreference | <androidx.preference.EditTextPreference | ||||
| android:defaultValue="10" | android:defaultValue="10" | ||||
| android:selectAllOnFocus="true" | android:selectAllOnFocus="true" | ||||
| android:singleLine="true" | android:singleLine="true" | ||||
| android:title="@string/pref_num_elements" android:key="@string/pref_key_num_recents" android:inputType="numberDecimal" | android:inputType="number" | ||||
| android:title="@string/pref_num_elements" android:key="@string/pref_key_num_recents" | |||||
| app:useSimpleSummaryProvider="true" | |||||
| android:digits="0123456789" | |||||
| /> | |||||
| --> | |||||
| <androidx.preference.SeekBarPreference | |||||
| android:title="@string/pref_num_elements" android:key="@string/pref_key_num_recents" | |||||
| android:defaultValue="6" | |||||
| android:max="60" | |||||
| app:min="1" | |||||
| android:layout_width="match_parent" | |||||
| android:layout_height="wrap_content" | |||||
| app:showSeekBarValue="true" | |||||
| android:digits="0123456789" android:ems="10" | |||||
| /> | /> | ||||
| <androidx.preference.SeekBarPreference | <androidx.preference.SeekBarPreference | ||||
| android:title="@string/settings_search_radius" | android:title="@string/settings_search_radius" | ||||
| android:key="@string/pref_key_radius_recents" | android:key="@string/pref_key_radius_recents" | ||||
| android:defaultValue="500" | android:defaultValue="500" | ||||
| android:max="1000" | android:max="1000" | ||||
| app:min="20" | app:min="100" | ||||
| android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
| android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
| android:gravity="center_vertical" | app:showSeekBarValue="true" | ||||
| /> | /> | ||||
| </androidx.preference.PreferenceCategory> | </androidx.preference.PreferenceCategory> | ||||
| <!-- | <!-- | ||||
| <androidx.preference.Preference | <androidx.preference.Preference | ||||
| android:layout="@layout/pref_extra_version" | android:layout="@layout/pref_extra_version" | ||||
| android:key="version" | android:key="version" | ||||
| /> | /> | ||||
| --> | --> | ||||
| </androidx.preference.PreferenceScreen> | </androidx.preference.PreferenceScreen> | ||||
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register