Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.
/ EditCodeView Public archive

Simple custom view implementation that allows you to control the input of a numeric code

License

Notifications You must be signed in to change notification settings

Onum/EditCodeView

Repository files navigation

This repo no longer supported

EditCodeView

Bintray License: MIT

Installation

Gradle

compile 'com.bigbangbutton:editcodeview:1.0.6'

Customized attributes

Attrs Type
textSize dimension
textColor color
codeLength integer
codeHiddenMode boolean
codeHiddenMask string
underlineStroke dimension
underlineReductionScale float
underlineFilledColor color
underlineSelectedColor color
underlineBaseColor color
underlineCursorColor color
underlineCursorEnabled boolean
font_style enum

How to get code

EditCodeView editCodeView = (EditCodeView) findViewById(R.id.edit_code);
        editCodeView.setEditCodeListener(new EditCodeListener() {
            @Override
            public void onCodeReady(String code) {
                // ...
            }
        });

Tip

Use the paddingBottom that would raise the underline to the text

License

The library is distributed under the MIT LICENSE.

About

Simple custom view implementation that allows you to control the input of a numeric code

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages