1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > Android开发 字母 符号 数字自定义安全键盘

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

时间:2022-03-30 03:43:31

相关推荐

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.AddSecurityEditTextinto your layout

<LinearLayoutandroid:id="@+id/container"..."><com.gs.keyboard.SecurityEditTextandroid:id="@+id/et_security_keyboard"android:layout_width="match_parent"... /><EditTextandroid:id="@+id/et_security_keyboard_two"... /></LinearLayout>

Step 2.initSecurityKeyboardwith the layout containsSecurityEditText

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

Basic Result

项目地址:/onlyloveyd/LazyKeyboard

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。