diff --git a/LimeStudio/app/build.gradle b/LimeStudio/app/build.gradle index b5948e9..f95b748 100644 --- a/LimeStudio/app/build.gradle +++ b/LimeStudio/app/build.gradle @@ -34,8 +34,8 @@ android { minSdkVersion 23 targetSdkVersion 30 - versionCode 641 - versionName '6.4.1' + versionCode 642 + versionName '6.4.2' } buildTypes { release { diff --git a/LimeStudio/app/src/main/java/net/toload/main/hd/keyboard/LIMEBaseKeyboard.java b/LimeStudio/app/src/main/java/net/toload/main/hd/keyboard/LIMEBaseKeyboard.java index 6684c73..d28eb42 100644 --- a/LimeStudio/app/src/main/java/net/toload/main/hd/keyboard/LIMEBaseKeyboard.java +++ b/LimeStudio/app/src/main/java/net/toload/main/hd/keyboard/LIMEBaseKeyboard.java @@ -224,12 +224,12 @@ public class LIMEBaseKeyboard { /** * Reserved space in the middle in unit of columns for separated keyboard in landscape mode. */ - protected static int mReservedColumnsForSplitedKeyboard = 2; + protected static int mReservedColumnsForSplitedKeyboard = 3; /** * Key width reduction scale for separated keyboard in landscape mode. */ - protected static float mSplitedKeyWidthScale = 1f; + protected static float mSplitedKeyWidthScale = 0.8f; /** * Key width for separated keyboard in landscape mode. @@ -1348,7 +1348,7 @@ private void parseKeyboardAttributes(Resources res, XmlResourceParser parser) { mReservedColumnsForSplitedKeyboard = (int) (res.getInteger(R.integer.reserved_columns_for_seperated_keyboard)); mKeysInRow = Math.round(mDisplayWidth / mDefaultWidth); - mSplitKeyWidth = Math.round(mDisplayWidth / (mKeysInRow + mReservedColumnsForSplitedKeyboard)); + mSplitKeyWidth = (int)(Math.round(mDisplayWidth / (mKeysInRow + mReservedColumnsForSplitedKeyboard)) * 0.8); mSplitedKeyWidthScale = (float) (mSplitKeyWidth) / (float) (mDefaultWidth); if (DEBUG) Log.i(TAG, "mKeysInRow = " + mKeysInRow