OTPVIew

Additional

Language
Kotlin
Version
0.1.0 (Mar 22, 2019)
Created
Mar 22, 2019
Updated
Mar 26, 2019 (Retired)
Owner
Affan Ahmad (anonymous-ME)
Contributor
Affan Ahmad (anonymous-ME)
1
Activity
Badge
Generate
Download
Source code

Advertisement

Android PinView / OtpView

Custom view that contains EditTexts for typing and X number of digits depending on the set pin length.

How to integrate the library in your app?

Add it in your root build.gradle at the end of repositories:

allprojects {
 repositories {
  maven { url "https://jitpack.io" }
 }
}

Step 2. Add the dependency

dependencies {
 implementation 'com.github.anonymous-ME:OTPView:0.1.0'
}

Step 3. Add OTPView to your layout file

    <affan.ahmad.otp.OTPView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"/>

Screenshot