abouttreesummaryrefslogcommitdiff
path: root/res
diff options
context:
space:
mode:
authorJules Aguillon2023-01-15 19:19:07 +0100
committerJules Aguillon2023-01-15 19:19:07 +0100
commitfd0f0d54766de6c5621e5a09e192f75f3c05782c (patch)
tree6e87f2af3b6cababb86d9efaf8d57d2d4021da38 /res
parenta1999621178ad9fd1de713a9b9f485f110e4d899 (diff)
downloadunexpected-keyboard-fd0f0d54766de6c5621e5a09e192f75f3c05782c.tar.gz
unexpected-keyboard-fd0f0d54766de6c5621e5a09e192f75f3c05782c.zip
Separate option for bottom margin in landscape mode
A large margin in portrait mode is desirable but generally not in landscape mode.
Diffstat (limited to 'res')
-rw-r--r--res/values-land/dimens.xml1
-rw-r--r--res/xml/settings.xml5
2 files changed, 5 insertions, 1 deletions
diff --git a/res/values-land/dimens.xml b/res/values-land/dimens.xml
index 7cdc3b5..2e3517f 100644
--- a/res/values-land/dimens.xml
+++ b/res/values-land/dimens.xml
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="horizontal_margin">28dp</dimen>
+ <dimen name="margin_bottom">3dp</dimen>
<dimen name="emoji_type_button_height">48dp</dimen>
</resources>
diff --git a/res/xml/settings.xml b/res/xml/settings.xml
index 5554b8f..b48ec84 100644
--- a/res/xml/settings.xml
+++ b/res/xml/settings.xml
@@ -57,7 +57,10 @@
<juloo.common.IntSlideBarPreference android:key="keyboard_opacity" android:title="@string/pref_keyboard_opacity" android:summary="%s%%" android:defaultValue="100" min="30" max="100"/>
<juloo.common.IntSlideBarPreference android:key="key_opacity" android:title="@string/pref_key_opacity" android:summary="%s%%" android:defaultValue="100" min="30" max="100"/>
<juloo.common.IntSlideBarPreference android:key="key_activated_opacity" android:title="@string/pref_key_activated_opacity" android:summary="%s%%" android:defaultValue="100" min="30" max="100"/>
- <juloo.common.IntSlideBarPreference android:key="margin_bottom" android:title="@string/pref_margin_bottom_title" android:summary="%sdp" android:defaultValue="5" min="0" max="100"/>
+ <PreferenceScreen android:title="@string/pref_margin_bottom_title">
+ <juloo.common.IntSlideBarPreference android:key="margin_bottom_portrait" android:title="@string/pref_portrait" android:summary="%sdp" android:defaultValue="7" min="0" max="100"/>
+ <juloo.common.IntSlideBarPreference android:key="margin_bottom_landscape" android:title="@string/pref_landscape" android:summary="%sdp" android:defaultValue="3" min="0" max="100"/>
+ </PreferenceScreen>
<juloo.common.IntSlideBarPreference android:key="keyboard_height" android:title="@string/pref_keyboard_height_title" android:summary="%s%%" android:defaultValue="35" min="10" max="50"/>
<juloo.common.IntSlideBarPreference android:key="keyboard_height_landscape" android:title="@string/pref_keyboard_height_landscape_title" android:summary="%s%%" android:defaultValue="50" min="20" max="65"/>
<PreferenceScreen android:title="@string/pref_horizontal_margin_title">