Skip to content
Proyectos

StomHong/CustomizeKeyboard

Ver en GitHub

Acerca de

Teclado seguro para Android totalmente personalizable

Seguridad y privacidad

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

自定义Android键盘

用法:


allprojects {
    repositories {
        maven { url "https://www.jitpack.io" }
    }
}

buildscript {
    repositories {
        maven { url "https://www.jitpack.io" }
    }
}

//新依赖地址
dependencies{
   implementation 'com.github.StomHong:CustomizeKeyboard:1.0.2'
}

1.0.2版本更新说明:1.重新改写,不再需要parent,也不需要scrollView。2.修复了一些bug

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

初始化

    private void initMoveKeyBoard() {
        keyboardUtil = new KeyboardUtil(this);
        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));
    }

关于键盘输入状态

     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;     // 数字,右下角 为下一个

效果图如下

Explorar proyectos relacionados

Cargando…