A PIN view library for Android. Use to enter PIN/OTP/password etc.
A PIN view library for Android. Use to enter PIN/OTP/password etc.
Provides a widget for enter PIN/OTP/password etc on Android 4.1+ (API 16).
repositories {
maven {
jcenter()
}
}
dependencies {
implementation 'com.chaos.view:pinview:1.4.4'
}
repositories {
maven {
mavenCentral()
}
}
dependencies {
implementation 'io.github.chaosleung:pinview:1.4.4'
}
Note that
MavenCentralusesio.github.chaosleungas the group id
PinView inherits from EditText, which means you can use all the APIs from EditText.
Add PinView in your layout.
…
Specifies pinViewStyle in your theme,
or use the PinWidget.PinView style.
To highlight current item, use 'selected' state, in other words,
add android:state_selected="true" to app:lineColor
or add android:cursorVisible="true".
rectangle, line or none.Copyright 2017-2018 Chaos Leong
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
No open issues yet, or sync has not completed.