Skip to content

alahammad/android-OTP-View

Repository files navigation

OTP-View

Alot of OTP-View for android but this library to make your life easy, i merge otp-view with sms catcher in single library, feel free to use it.

alt text

alt text

Code Example

You can find example code to how to use it in simple way.

Installation

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

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

Add the dependency

dependencies {
        compile 'com.github.alahammad:android-OTP-View:1.0.2'
}

Then add this code to your layout

    <com.alahammad.otp_view.OtpView
    android:id="@+id/otp"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginBottom="8dp"
    android:layout_marginEnd="8dp"
    android:layout_marginStart="8dp"
    android:layout_marginTop="8dp"
    android:inputType="number"
    app:otp_number="4" />

License

Copyright 2018 Ala Hammad

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

OTP-View for android with Sms catcher

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages