A Custom Pin entry EditText View, which extends AppCompatEditText This custom view is purely written in Kotlin language.
This class PinEntryEditText extends AppCompatEditText and draws boxes for user to enter pin code. You can modify following attributes in the XML for this PinEntryEditText:
- mNumChars : The number of chars in the passcode
- mIsMask : true, if the mask is required; false otherwise
- mMaskChar: The mask character if, mask is required
- mBorderColor : The color of the rectangle border for each box
- mTextColor: The color of the text for pin
Masking:- The characters are masked as follows: When you type and move to the next character, the previous character is masked. Eg.: 12345 will be displayed as ****5
Demo Video : https://github.com/karan4c6/PinEntryEditText/blob/master/extras/CustomPinEntryEditText_Demo.mp4