Skip to content

Commit

Permalink
make split keyboard narrower.
Browse files Browse the repository at this point in the history
  • Loading branch information
plateaukao committed Jan 5, 2022
1 parent cd2bfd8 commit 935a47c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions LimeStudio/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ android {

minSdkVersion 23
targetSdkVersion 30
versionCode 641
versionName '6.4.1'
versionCode 642
versionName '6.4.2'
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 935a47c

Please sign in to comment.