带有键盘和字符显示的自定义视图,用于身份验证
A custom view with keyboard and character display to be used for authentication.
The view has a bunch customisation options to make to look and work the way whichever needed.
Add gradle dependency
repositories {
jcenter()
}
dependencies {
compile 'in.arjsna:passcodeview:1.2.1'
}
Add the view in the layout file
View attributes that can be included in xml are
digits - number of digits in passcode
filled_drawable - drawable to be show for filled digits
empty_drawable - drawable to be show for empty digits
key_text_size - size of text in keyboard's key
digit_spacing - horizontal space between each digit
digit_vertical_padding - vertical padding of digits
divider_visible - boolean to show or hide divider between digits and keyboard
Other customisations options available are
…暂无开放 Issues,或尚未同步最近议题。