thorium-fork/app/src/main/res/xml/root_preferences.xml
Florian CUNY 12e4c7fa35 Made the preferences not retain the margin reserved to icons in SettingsActivity
Android reserves some space next to a preference to let developers put an icon there.
As there aren't any icons, I added app:iconSpaceReserved="false" to all the preferences in order to "remove" this useless blank space.
2020-07-04 21:41:24 +02:00

94 lines
3.5 KiB
XML

<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
<PreferenceCategory app:title="@string/settings_activity_look_and_feel_category_title" app:iconSpaceReserved="false">
<ListPreference
app:defaultValue="@array/empty_array"
app:entries="@array/supportedLanguagesArray"
app:entryValues="@array/supportedLanguagesValues"
app:key="pref_language_app"
app:summary="@string/pref_description_language_app"
app:title="@string/pref_language_app"
app:iconSpaceReserved="false"/>
<ListPreference
app:defaultValue="AppTheme.BLUE"
app:entries="@array/themeArray"
app:entryValues="@array/themeValues"
app:key="pref_theme"
app:summary="@string/pref_description_app_theme"
app:title="@string/pref_title_app_theme"
app:iconSpaceReserved="false"/>
<SwitchPreference
app:defaultValue="false"
app:key="pref_dark_mode"
app:summary="@string/pref_description_dark_mode"
app:title="@string/pref_title_dark_mode"
app:iconSpaceReserved="false"/>
</PreferenceCategory>
<PreferenceCategory app:title="@string/settings_activity_video_list_category_title" app:iconSpaceReserved="false">
<SwitchPreference
app:defaultValue="false"
app:key="pref_show_nsfw"
app:summary="@string/pref_description_show_nsfw"
app:title="@string/pref_title_show_nsfw"
app:iconSpaceReserved="false"/>
<MultiSelectListPreference
app:defaultValue="@array/empty_array"
app:entries="@array/languageArray"
app:entryValues="@array/languageValues"
app:key="pref_language"
app:summary="@string/pref_description_language"
app:title="@string/pref_language"
app:iconSpaceReserved="false"/>
</PreferenceCategory>
<PreferenceCategory app:title="@string/settings_activity_video_playback_category_title" app:iconSpaceReserved="false">
<SwitchPreference
app:defaultValue="true"
app:key="pref_back_pause"
app:summary="@string/pref_description_back_pause"
app:title="@string/pref_title_back_pause"
app:iconSpaceReserved="false"/>
<ListPreference
app:defaultValue="@array/empty_array"
app:entries="@array/backgroundBehavior"
app:entryValues="@array/backgroundBehaviorValues"
app:key="pref_background_behavior"
app:summary="@string/pref_background_behavior_summary"
app:title="@string/pref_background_behavior"
app:iconSpaceReserved="false"/>
<SwitchPreference
app:defaultValue="false"
app:key="pref_torrent_player"
app:summary="@string/pref_description_torrent_player"
app:title="@string/pref_title_torrent_player"
app:iconSpaceReserved="false"/>
</PreferenceCategory>
<PreferenceCategory app:title="@string/settings_activity_about_category_title" app:iconSpaceReserved="false">
<Preference
app:summary="@string/versionName"
app:title="@string/pref_title_version"
app:iconSpaceReserved="false"/>
<Preference
app:summary="@string/pref_description_license"
app:title="@string/pref_title_license"
app:iconSpaceReserved="false"/>
</PreferenceCategory>
</PreferenceScreen>