forked from organicmaps/organicmaps
[android] Allow preference titles to use multiple lines
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
parent
c095c3f278
commit
ac95cb98d7
1 changed files with 31 additions and 7 deletions
|
@ -1,10 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.preference.PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<Preference
|
||||
android:key="@string/pref_osm_profile"
|
||||
android:title="@string/profile"
|
||||
app:singleLineTitle="false"
|
||||
android:order="1"/>
|
||||
<androidx.preference.PreferenceCategory
|
||||
android:key="@string/pref_settings_general"
|
||||
|
@ -13,6 +15,7 @@
|
|||
<ListPreference
|
||||
android:key="@string/pref_munits"
|
||||
android:title="@string/measurement_units"
|
||||
app:singleLineTitle="false"
|
||||
android:summary="@string/measurement_units_summary"
|
||||
android:entries="@array/measument_units"
|
||||
android:entryValues="@array/measument_units_values"
|
||||
|
@ -20,45 +23,54 @@
|
|||
<SwitchPreferenceCompat
|
||||
android:key="@string/pref_show_zoom_buttons"
|
||||
android:title="@string/pref_zoom_title"
|
||||
app:singleLineTitle="false"
|
||||
android:summary="@string/pref_zoom_summary"
|
||||
android:order="2"/>
|
||||
<SwitchPreferenceCompat
|
||||
android:key="@string/pref_3d_buildings"
|
||||
android:title="@string/pref_map_3d_buildings_title"
|
||||
app:singleLineTitle="false"
|
||||
android:order="3"/>
|
||||
<SwitchPreferenceCompat
|
||||
android:key="@string/pref_autodownload"
|
||||
android:title="@string/autodownload"
|
||||
app:singleLineTitle="false"
|
||||
android:order="4"/>
|
||||
<SwitchPreferenceCompat
|
||||
android:key="@string/pref_large_fonts_size"
|
||||
android:title="@string/big_font"
|
||||
app:singleLineTitle="false"
|
||||
android:defaultValue="false"
|
||||
android:order="6"/>
|
||||
<SwitchPreferenceCompat
|
||||
android:key="@string/pref_transliteration"
|
||||
android:title="@string/transliteration_title"
|
||||
app:singleLineTitle="false"
|
||||
android:defaultValue="false"
|
||||
android:order="7"/>
|
||||
<Preference
|
||||
android:key="@string/pref_storage"
|
||||
android:title="@string/maps_storage"
|
||||
app:singleLineTitle="false"
|
||||
android:summary="@string/maps_storage_summary"
|
||||
android:order="8"/>
|
||||
<SwitchPreferenceCompat
|
||||
android:key="@string/pref_enable_logging"
|
||||
android:title="@string/enable_logging"
|
||||
app:singleLineTitle="false"
|
||||
android:summary="@string/enable_logging_warning_message"
|
||||
android:defaultValue="false"
|
||||
android:order="12"/>
|
||||
<SwitchPreferenceCompat
|
||||
android:key="@string/pref_emulate_bad_external_storage"
|
||||
android:title="@string/setting_emulate_bad_storage"
|
||||
app:singleLineTitle="false"
|
||||
android:defaultValue="false"
|
||||
android:order="13"/>
|
||||
<ListPreference
|
||||
android:key="@string/pref_use_mobile_data"
|
||||
android:title="@string/mobile_data"
|
||||
app:singleLineTitle="false"
|
||||
android:summary="@string/mobile_data_description"
|
||||
android:entries="@array/mobile_data_options"
|
||||
android:entryValues="@array/mobile_data_options_values"
|
||||
|
@ -66,6 +78,7 @@
|
|||
<ListPreference
|
||||
android:key="@string/pref_power_management"
|
||||
android:title="@string/power_managment_title"
|
||||
app:singleLineTitle="false"
|
||||
android:summary="@string/power_managment_description"
|
||||
android:entries="@array/power_management_scheme"
|
||||
android:entryValues="@array/power_management_scheme_values"
|
||||
|
@ -73,16 +86,17 @@
|
|||
<SwitchPreferenceCompat
|
||||
android:key="@string/pref_screen_sleep"
|
||||
android:title="@string/enable_screen_sleep"
|
||||
app:singleLineTitle="false"
|
||||
android:summary="@string/enable_screen_sleep_description"
|
||||
android:defaultValue="false"
|
||||
android:order="16"/>
|
||||
|
||||
<SwitchPreferenceCompat
|
||||
android:key="@string/pref_show_on_lock_screen"
|
||||
android:title="@string/enable_show_on_lock_screen"
|
||||
android:summary="@string/enable_show_on_lock_screen_description"
|
||||
android:defaultValue="true"
|
||||
android:order="17"/>
|
||||
android:key="@string/pref_show_on_lock_screen"
|
||||
android:title="@string/enable_show_on_lock_screen"
|
||||
app:singleLineTitle="false"
|
||||
android:summary="@string/enable_show_on_lock_screen_description"
|
||||
android:defaultValue="true"
|
||||
android:order="17"/>
|
||||
</androidx.preference.PreferenceCategory>
|
||||
|
||||
<androidx.preference.PreferenceCategory
|
||||
|
@ -92,29 +106,35 @@
|
|||
<ListPreference
|
||||
android:key="@string/pref_map_style"
|
||||
android:title="@string/pref_map_style_title"
|
||||
app:singleLineTitle="false"
|
||||
android:entries="@array/map_style"
|
||||
android:entryValues="@array/map_style_values"
|
||||
android:order="1"/>
|
||||
<SwitchPreferenceCompat
|
||||
android:key="@string/pref_3d"
|
||||
android:title="@string/pref_map_3d_title"
|
||||
app:singleLineTitle="false"
|
||||
android:order="2"/>
|
||||
<SwitchPreferenceCompat
|
||||
android:key="@string/pref_auto_zoom"
|
||||
android:title="@string/pref_map_auto_zoom"
|
||||
app:singleLineTitle="false"
|
||||
android:order="3"/>
|
||||
<androidx.preference.PreferenceScreen
|
||||
android:key="@string/pref_tts_screen"
|
||||
android:title="@string/pref_tts_enable_title"
|
||||
app:singleLineTitle="false"
|
||||
android:persistent="false"
|
||||
android:order="4">
|
||||
<SwitchPreferenceCompat
|
||||
android:key="@string/pref_tts_enabled"
|
||||
android:title="@string/pref_tts_enable_title"
|
||||
app:singleLineTitle="false"
|
||||
android:order="1"/>
|
||||
<ListPreference
|
||||
android:key="@string/pref_tts_language"
|
||||
android:title="@string/pref_tts_language_title"
|
||||
app:singleLineTitle="false"
|
||||
android:order="2"/>
|
||||
<Preference
|
||||
android:key="@string/pref_tts_info"
|
||||
|
@ -134,6 +154,7 @@
|
|||
<ListPreference
|
||||
android:key="@string/pref_speed_cameras"
|
||||
android:title="@string/speedcams_alert_title"
|
||||
app:singleLineTitle="false"
|
||||
android:entries="@array/speed_cameras"
|
||||
android:entryValues="@array/speed_cameras_values"
|
||||
android:defaultValue="@string/auto_enum_value"
|
||||
|
@ -155,6 +176,7 @@
|
|||
<SwitchPreferenceCompat
|
||||
android:key="@string/pref_play_services"
|
||||
android:title="Google Play Services"
|
||||
app:singleLineTitle="false"
|
||||
android:summary="@string/pref_use_google_play"
|
||||
android:defaultValue="true"
|
||||
android:order="1"/>
|
||||
|
@ -162,6 +184,7 @@
|
|||
android:key="@string/pref_crash_reports"
|
||||
android:defaultValue="true"
|
||||
android:title="@string/crash_reports"
|
||||
app:singleLineTitle="false"
|
||||
android:summary="@string/crash_reports_description"
|
||||
android:order="2"/>
|
||||
</androidx.preference.PreferenceCategory>
|
||||
|
@ -172,6 +195,7 @@
|
|||
<Preference
|
||||
android:key="@string/pref_help"
|
||||
android:title="@string/help"
|
||||
app:singleLineTitle="false"
|
||||
android:order="1">
|
||||
</Preference>
|
||||
</androidx.preference.PreferenceCategory>
|
||||
|
|
Loading…
Add table
Reference in a new issue