Giter VIP home page Giter VIP logo

chen-keeplearn / splitedittextview Goto Github PK

View Code? Open in Web Editor NEW
257.0 257.0 36.0 27.27 MB

Android类似支付宝密码输入框,美团外卖验证码输入框,验证码粘贴等;有效果图,有demo;支持下划线,方框,连体框样式;可设置光标、光标颜色,下划线输入时高亮,边框大小、颜色、圆角等等;设置密码显示的样式

License: Apache License 2.0

Java 100.00%

splitedittextview's People

Contributors

chen-keeplearn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

splitedittextview's Issues

资源名称冲突

error: duplicate value for resource 'attr/cornerSize' with config
项目中的名称和谷歌其他包的冲突,编译的时候报出重复问题
谷歌 'com.google.android.material:material:1.1.0'

TransformationMethod 不生效

需要修改代码:

    /**
     * 根据输入内容显示模式,绘制内容是圆心还是明文的text
     */
    private void drawContent(Canvas canvas) {
        int cy = getHeight() / 2;
        TransformationMethod mTransformationMethod = getTransformationMethod();
        String password = getText().toString().trim();
        if(mTransformationMethod != null) {
            password = mTransformationMethod.getTransformation(password,this).toString();
        }
       //....
    }

输入框顶部被裁剪

如图:
image

配置如图:
image

layout_height 不管我设置多少,wrap_content、50dp、60dp、100dp等等,始终会被裁剪

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.