Skip to content

☎️ This is an OTP library that focuses more on the ui/ux of otp forms

Notifications You must be signed in to change notification settings

jamesnyakush/otp-library

Repository files navigation

MaterialUI

This a collection of material ui with otp custom view

Download

Add jitpack to project level build.gradle

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

Then add the library to module level build.gradle.

 implementation 'com.github.jamesnyakush:MaterialUI:Tag'

Usage

Add OTPEditText to your layout to get started.

        <com.jamesnyakush.otp.OTPEditText
            android:id="@+id/etxt_four"
            android:layout_width="50dp"
            android:layout_height="50dp"
            android:layout_gravity="center"
            android:layout_marginLeft="15dp"
            android:background="@drawable/circle"
            android:gravity="center"
            android:hint="0"
            android:inputType="number"
            android:maxLength="1"
            android:textCursorDrawable="@color/black"/>

© jamesnyakush

About

☎️ This is an OTP library that focuses more on the ui/ux of otp forms

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published