CustomizeKeyboard

by StomHong

完全自定义的Android安全键盘

452 Stars 134 Forks Last release: Not found 17 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

自定义Android键盘

用法:

依赖: ```java

dependencies{ implementation 'com.stomhong:customizekeyboard:1.0.1' } ```

1.0.1版本更新说明:去掉了键盘头部“安全键盘文字”,更改了包名

初始化

 private void initMoveKeyBoard() {
         keyboardUtil = new KeyboardUtil(this, rootView, scrollView);
         keyboardUtil.setOtherEdittext(normalEd);
         // monitor the KeyBarod state
         keyboardUtil.setKeyBoardStateChangeListener(new KeyBoardStateListener());
         // monitor the finish or next Key
         keyboardUtil.setInputOverListener(new inputOverListener());
         specialEd.setOnTouchListener(new KeyboardTouchListener(keyboardUtil, KeyboardUtil.INPUTTYPE_ABC, -1));
     }

关于键盘输入状态

     public static int inputType = 1;                   // 默认
     public static final int INPUTTYPE_NUM = 1;         // 数字,右下角 为空
     public static final int INPUTTYPE_NUM_FINISH = 2;  // 数字,右下角 完成
     public static final int INPUTTYPE_NUM_POINT = 3;   // 数字,右下角 为点
     public static final int INPUTTYPE_NUM_X = 4;       // 数字,右下角 为X
     public static final int INPUTTYPE_NUM_NEXT = 5;    // 数字,右下角 为下一个
     public static final int INPUTTYPE_ABC = 6;         // 一般的abc
     public static final int INPUTTYPE_SYMBOL = 7;      // 标点键盘
     public static final int INPUTTYPE_NUM_ABC = 8;     // 数字,右下角 为下一个

效果图如下

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.