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 | |||||
android:title="@string/general_settings"> | |||||
<androidx.preference.SwitchPreferenceCompat | |||||
android:defaultValue="false" | |||||
android:title="@string/settings_experimental" android:key="@string/pref_key_experimental"/> | |||||
</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:inputType="number" | android:inputType="number" | ||||
Show All 36 Lines | <androidx.preference.PreferenceCategory android:title="@string/arrival_times"> | ||||
<androidx.preference.ListPreference | <androidx.preference.ListPreference | ||||
android:title="@string/pref_directions_capitalize" | android:title="@string/pref_directions_capitalize" | ||||
android:entries="@array/directions_capitalize" | android:entries="@array/directions_capitalize" | ||||
android:entryValues="@array/directions_capitalize_keys" | android:entryValues="@array/directions_capitalize_keys" | ||||
android:key="@string/pref_arrival_times_capit" | android:key="@string/pref_arrival_times_capit" | ||||
/> | /> | ||||
</androidx.preference.PreferenceCategory> | </androidx.preference.PreferenceCategory> | ||||
<!--TODO: If we want lines preferences (eg showing arrivals on click) | |||||
<androidx.preference.PreferenceCategory android:title="@string/lines"> | |||||
<androidx.preference.CheckBoxPreference | |||||
android:title="" | |||||
/> | |||||
</androidx.preference.PreferenceCategory> | |||||
--> | |||||
<androidx.preference.PreferenceCategory android:title="Database"> | <androidx.preference.PreferenceCategory android:title="Database"> | ||||
<androidx.preference.Preference | <androidx.preference.Preference | ||||
android:title="@string/database_update_req" | android:title="@string/database_update_req" | ||||
android:summary="@string/database_update_req_descr" | android:summary="@string/database_update_req_descr" | ||||
android:key="pref_db_update_now" | android:key="pref_db_update_now" | ||||
/> | /> | ||||
</androidx.preference.PreferenceCategory> | </androidx.preference.PreferenceCategory> | ||||
<androidx.preference.PreferenceCategory | |||||
android:title="@string/settings_experimental"> | |||||
<androidx.preference.SwitchPreferenceCompat | |||||
android:defaultValue="false" | |||||
android:title="@string/pref_experimental_msg" android:key="@string/pref_key_experimental"/> | |||||
</androidx.preference.PreferenceCategory> | |||||
</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