Skip to content

Commit

Permalink
优化细节
Browse files Browse the repository at this point in the history
  • Loading branch information
jenly1314 committed Nov 18, 2021
1 parent a68573b commit a24221f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ allprojects {

2. 在Module的 **build.gradle** 里面添加引入依赖项
```gradle
implementation 'com.github.jenly1314:kingkeyboard:1.0.3'
implementation 'com.github.jenly1314:kingkeyboard:1.0.4'
```

Expand Down Expand Up @@ -262,6 +262,9 @@ implementation 'com.king.keyboard:kingkeyboard:1.0.0'

## 版本记录

#### v1.0.4:2021-11-18
* 修复动态修改默认键盘字体大小不生效问题

#### v1.0.3:2021-10-22
* 优化细节

Expand Down
Binary file modified app/release/app-release.apk
Binary file not shown.
2 changes: 1 addition & 1 deletion app/release/output.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":4,"versionName":"1.0.3","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"app-release.apk","properties":{}}]
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":5,"versionName":"1.0.4","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"app-release.apk","properties":{}}]
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official

VERSION_NAME=1.0.3
VERSION_CODE=4
VERSION_NAME=1.0.4
VERSION_CODE=5
GROUP=com.github.jenly1314

POM_DESCRIPTION=KingKeyboard for Android
Expand All @@ -37,4 +37,4 @@ POM_DEVELOPER_ID=jenly
POM_DEVELOPER_NAME=Jenly Yu
RELEASE_REPOSITORY_URL=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
SNAPSHOT_REPOSITORY_URL=https://s01.oss.sonatype.org/content/repositories/snapshots/
RELEASE_SIGNING_ENABLED=false
RELEASE_SIGNING_ENABLED=false
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public interface OnKeyboardActionListener {
private Drawable mKeyBackground;

private static final int REPEAT_INTERVAL = 50; // ~20 keys per second
private static final int REPEAT_START_DELAY = 400;
private static final int REPEAT_START_DELAY = 300;
private static final int LONGPRESS_TIMEOUT = ViewConfiguration.getLongPressTimeout();

private static int MAX_NEARBY_KEYS = 12;
Expand All @@ -238,7 +238,7 @@ public interface OnKeyboardActionListener {
private int mTapCount;
private long mLastTapTime;
private boolean mInMultiTap;
private static final int MULTITAP_INTERVAL = 800; // milliseconds
private static final int MULTITAP_INTERVAL = 600; // milliseconds
private StringBuilder mPreviewLabel = new StringBuilder(1);

/** Whether the keyboard bitmap needs to be redrawn before it's blitted. **/
Expand Down Expand Up @@ -299,7 +299,7 @@ public KeyboardView(Context context, AttributeSet attrs, int defStyleAttr, int d
} else if (attr == R.styleable.King_KeyboardView_android_keyTextSize) {
mKeyTextSize = a.getDimensionPixelSize(attr, 18);
} else if (attr == R.styleable.King_KeyboardView_android_keyTextColor) {
mKeyTextColor = a.getColor(attr, 0xFF000000);
mKeyTextColor = a.getColor(attr, 0xFF333333);
} else if (attr == R.styleable.King_KeyboardView_android_labelTextSize) {
mLabelTextSize = a.getDimensionPixelSize(attr, 14);
} else if (attr == R.styleable.King_KeyboardView_android_popupLayout) {
Expand Down
4 changes: 2 additions & 2 deletions versions.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//App
def app_version = [:]
app_version.versionCode = 4
app_version.versionName = "1.0.3"
app_version.versionCode = 5
app_version.versionName = "1.0.4"
ext.app_version = app_version

//build version
Expand Down

0 comments on commit a24221f

Please sign in to comment.