Create OTP Screen Simply using SimpleOTP Library
Add in project level build.gradle
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
Add to application level build.gradle
dependencies {
implementation 'com.github.dhinakaransdk:SimpleOTP:1.0'
}
<in.dhinakaran.simpleotplibrary.SimpleOTP
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
SimpleOTP simpleOTP;
simpleOTP = findViewById(R.id.otp_view);
simpleOTP.getOtp();