The new version LazyKeyboard security keyboard V1.4

LazyKeyboard

Custom letters, symbols, numbers, security keypad. The initial version uses PopupWindow of ways. Recent taking the time to upgrade to v1.4 version . The main aspects have been adjusted as follows.

  • Migrating to AndroidX
  • Implementation using Dialog
  • Add custom properties (keyboard type selected / non-selected color, background keyboard type selection area, the background area of ​​the keyboard)
  • Deletion of the code, as concisely as possible

Use

Add dependent

Project root directory build.gradle

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

Introducing dependent module

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

Basic use

Use more concise than before, you can just add SecurityEditText in the 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>

Custom property value

Property Value meaning
chooserSelectedColor Keyboard Type Select text color
chooserUnselectedColor Keyboard type is not selected text color
chooserBackground BACKGROUND keyboard type selection area
keyboardBackground Keyboard input area background
isKeyPreview Click the preview is enabled

Introduction property

Source Address

https://github.com/onlyloveyd/LazyKeyboard

Published 159 original articles · won praise 264 · views 320 000 +

Guess you like

Origin blog.csdn.net/poorkick/article/details/103570881