GithubHelp home page GithubHelp logo

liugedidai / paypwdedittext Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wanliyang1990/paypwdedittext

0.0 0.0 0.0 523 KB

支付密码框,和微信支付宝类似

License: Apache License 2.0

Java 100.00%

paypwdedittext's Introduction

PayPwdEditText

支付密码框,和微信支付宝类似

一、效果图:

image

二、设置代码

xml布局:

<com.ywl5320.widget.PayPwdEditText
    android:id="@+id/ppe_pwd"
    android:layout_width="match_parent"
    android:layout_height="45dp"
    android:layout_marginLeft="13dp"
    android:layout_marginRight="13dp"
    android:layout_marginTop="5dp"/>

java代码:

/**
 * @param bgdrawable 背景drawable
 * @param pwdlength 密码长度
 * @param splilinewidth 分割线宽度
 * @param splilinecolor 分割线颜色
 * @param pwdcolor 密码字体颜色
 * @param pwdsize 密码字体大小
 */
payPwdEditText.initStyle(R.drawable.edit_num_bg, 6, 0.33f, R.color.color999999, R.color.color999999, 20);
    payPwdEditText.setOnTextFinishListener(new PayPwdEditText.OnTextFinishListener() {
        @Override
        public void onFinish(String str) {//密码输入完后的回调
            Toast.makeText(MainActivity.this, str, Toast.LENGTH_SHORT).show();
        }
    });

create by ywl5320

paypwdedittext's People

Contributors

wanliyang1990 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.