Skip to content

Commit 5b41df3

Browse files
committed
change 1.0.2 README.md
1 parent 4de8e0d commit 5b41df3

File tree

4 files changed

+13
-16
lines changed

4 files changed

+13
-16
lines changed

README.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@ buildscript {
2020

2121
//新依赖地址
2222
dependencies{
23-
implementation 'com.github.StomHong:CustomizeKeyboard:1.0.1'
23+
implementation 'com.github.StomHong:CustomizeKeyboard:1.0.2'
2424
}
2525

26-
//旧依赖地址
27-
dependencies{
28-
implementation 'com.stomhong:customizekeyboard:1.0.1'
2926
}
3027
```
3128

@@ -34,15 +31,15 @@ dependencies{
3431
初始化
3532

3633
```java
37-
private void initMoveKeyBoard() {
38-
keyboardUtil = new KeyboardUtil(this, rootView, scrollView);
39-
keyboardUtil.setOtherEdittext(normalEd);
40-
// monitor the KeyBarod state
41-
keyboardUtil.setKeyBoardStateChangeListener(new KeyBoardStateListener());
42-
// monitor the finish or next Key
43-
keyboardUtil.setInputOverListener(new inputOverListener());
44-
specialEd.setOnTouchListener(new KeyboardTouchListener(keyboardUtil, KeyboardUtil.INPUTTYPE_ABC, -1));
45-
}
34+
private void initMoveKeyBoard() {
35+
keyboardUtil = new KeyboardUtil(this);
36+
keyboardUtil.setOtherEdittext(normalEd);
37+
// monitor the KeyBarod state
38+
keyboardUtil.setKeyBoardStateChangeListener(new KeyBoardStateListener());
39+
// monitor the finish or next Key
40+
keyboardUtil.setInputOverListener(new inputOverListener());
41+
specialEd.setOnTouchListener(new KeyboardTouchListener(keyboardUtil, KeyboardUtil.INPUTTYPE_ABC));
42+
}
4643
```
4744

4845
关于键盘输入状态

app/src/main/java/com/stomhong/customkeyboard/FirstActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private void initMoveKeyBoard() {
5252
keyboardUtil.setKeyBoardStateChangeListener(new KeyBoardStateListener());
5353
// monitor the finish or next Key
5454
keyboardUtil.setInputOverListener(new inputOverListener());
55-
specialEd.setOnTouchListener(new KeyboardTouchListener(keyboardUtil, KeyboardUtil.INPUTTYPE_ABC, -1));
55+
specialEd.setOnTouchListener(new KeyboardTouchListener(keyboardUtil, KeyboardUtil.INPUTTYPE_ABC));
5656
}
5757

5858
class KeyBoardStateListener implements KeyboardUtil.KeyBoardStateChangeListener {

app/src/main/java/com/stomhong/customkeyboard/TestFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private void initMoveKeyBoard() {
4444
keyboardUtil.setKeyBoardStateChangeListener(new KeyBoardStateListener());
4545
// monitor the finish or next Key
4646
keyboardUtil.setInputOverListener(new inputOverListener());
47-
specialEd.setOnTouchListener(new KeyboardTouchListener(keyboardUtil, KeyboardUtil.INPUTTYPE_ABC, -1));
47+
specialEd.setOnTouchListener(new KeyboardTouchListener(keyboardUtil, KeyboardUtil.INPUTTYPE_ABC));
4848
}
4949

5050
class KeyBoardStateListener implements KeyboardUtil.KeyBoardStateChangeListener {

library/src/main/java/com/stomhong/library/KeyboardTouchListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class KeyboardTouchListener implements View.OnTouchListener {
1111
private KeyboardUtil keyboardUtil;
1212
private int keyboardType = 1;
1313

14-
public KeyboardTouchListener(KeyboardUtil util, int keyboardType, int scrollTo) {
14+
public KeyboardTouchListener(KeyboardUtil util, int keyboardType) {
1515
this.keyboardUtil = util;
1616
this.keyboardType = keyboardType;
1717
}

0 commit comments

Comments
 (0)