Skip to content

dhinakaransdk/SimpleOTP

Repository files navigation

SimpleOTP

Introduction

Create OTP Screen Simply using SimpleOTP Library

Import as dependency

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'
}

Sample Code

layout xml

<in.dhinakaran.simpleotplibrary.SimpleOTP
  android:layout_width="match_parent"  
  android:layout_height="wrap_content"/>

Activity java class file code

SimpleOTP simpleOTP;

simpleOTP = findViewById(R.id.otp_view);

To get a Entered OTP

simpleOTP.getOtp();

Screenshot