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

LazyKeyboard是一款针对Android平台的安全性键盘库,支持字母、数字及符号三种键盘类型。通过简单的Gradle配置即可集成,并能轻松定制键盘样式。

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

   <LinearLayout
        android:id="@+id/container"
        ...">

        <com.gs.keyboard.SecurityEditText
            android:id="@+id/et_security_keyboard"
            android:layout_width="match_parent"
            ... />

        <EditText
            android:id="@+id/et_security_keyboard_two"
            ... />
    </LinearLayout>

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

letter symbol number

 

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值