Android开发 字母,符号,数字&自定义安全键盘

LazyKeyboard

A SecurityKeyBoard for Android. Supporting three kinds of keyboard: Letter, Number, Symbol.

中文版

Installation

Gradle

Step 1. Add it in your root build.gradle at the end of repositories:

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

Step 2. Add the dependency

dependencies {
    implementation 'com.github.onlyloveyd:LazyKeyboard:v1.3'
}

Basic Usage

Step 1. Add SecurityEditText into your layout

   

        

        
    

Step 2. init SecurityKeyboard with the layout contains SecurityEditText

   SecurityConfigure configure = new SecurityConfigure()
           .setDefaultKeyboardType(KeyboardType.NUMBER)
           .setLetterEnabled(false);
   securityKeyboard = new SecurityKeyboard(binding.loginLayout, configure);

Basic Result

Android开发 字母,符号,数字&自定义安全键盘_第1张图片 Android开发 字母,符号,数字&自定义安全键盘_第2张图片 Android开发 字母,符号,数字&自定义安全键盘_第3张图片

 

项目地址:https://github.com/onlyloveyd/LazyKeyboard

你可能感兴趣的:(Android开发 字母,符号,数字&自定义安全键盘)