47
GitHub - onlyloveyd/LazyKeyboard: ??字母,符号,数字&自定义安全键盘??
source link: https://github.com/onlyloveyd/LazyKeyboard
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
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.2'
}
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
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK