The library using for otp code in Android.
An Android library that provides an easy enter and verify otp code.
Made with ❤ by phong.
You can install otp-loading-view
with Maven Central
and Gradle
:
// In your module's `build.gradle`
dependencies {
implementation 'com.github.phong016688:otp-code-android-view:0.1.1'
}
Make sure to include maven { url 'https://jitpack.io' }
in your repositories
repositories {
maven { url 'https://jitpack.io' }
}
<com.otp.otp_code_view.OtpCodeView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="100dp"/>
video_black.webm
<com.otp.otp_code_view.OtpCodeView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:code_color="#CC171717"
app:code_stroke_color="#185C1F"
app:code_done_stroke_color="#1AA327"
app:code_background_color="#667A7979"
app:code_error_color="#A50202"
app:code_stroke_error_color="#F11919"
app:code_length="4"
app:code_radius="10dp"
app:code_length="8"
app:code_stroke_width="2dp"/>
Note: Length code is range 1 to 8.
device-2023-07-06-122055.webm
Copyright 2020
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.