Skip to content

支持圆角、修改选中色等功能的支付密码框控件,内置了如何发布Jcenter的代码。

Notifications You must be signed in to change notification settings

iceuncle/PasswordBox

Repository files navigation

PasswordBox

a password widget suports round corners and chosen color.

Gradle

dependencies {
   compile 'com.iceuncle:passwordbox:1.1.3'
}

Usage

    <com.iceuncle.passwordbox.PasswordBox
        android:id="@+id/password_view"
        android:layout_width="240dp"
        android:layout_height="40dp"
        android:layout_centerInParent="true"
        app:pwdBackgroundColor="#FFFFFF"
        app:pwdChosenColor="#ff9c09"
        app:pwdNormalBorderColor="#c3c3c3"
        app:pwdTextSize="25sp"
        app:pwdViewCorners="6dp"
        app:pwdViewLineWidth="1dp" />

Get password

final PasswordBox passwordBox = (PasswordBox) findViewById(R.id.password_view);
       passwordBox.setInputCompleteListener(new PasswordBox.InputCompleteListener() {
           @Override
           public void inputComplete() {
               Log.d("pwd", passwordBox.getStrPassword());
           }
       });

get EditText

passwordBox.getEditText()

clear

passwordBox.clear()

introduction

pwdBackgroundColor     背景色         background
pwdChosenColor         选中色         chosen color
pwdNormalBorderColor   默认边框色      default border color
pwdTextSize            圆点字体大小    dot font size
pwdViewCorners         圆角大小        round coner size 
pwdViewLineWidth       边框线宽        border line width

About

支持圆角、修改选中色等功能的支付密码框控件,内置了如何发布Jcenter的代码。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages