Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 670 Bytes

README.md

File metadata and controls

28 lines (25 loc) · 670 Bytes

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

Screenshot