EditCodeView

Additional

Language
Java
Version
N/A
Created
Jul 3, 2017
Updated
Nov 27, 2017
Owner
Aleksandr Grizhinku (Onum)
Contributor
Aleksandr Grizhinku (Onum)
1
Activity
Badge
Generate
Download
Source code

Blurb

EditCodeView

Installation

Gradle

compile 'com.bigbangbutton:editcodeview:1.0.5'

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
fontStyle 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.