OTP View in Android (Easy)
OTP View implementation from — https://github.com/criminact/OTPView
Nov 22, 2021
Since Firebase Mobile Auth seems razzmatazz to the Android newbies. They fell short of a way to fill OTPs in candy UI and Since native EditText can’t be styled into divided Boxes. OTPView Lib is at the rescue —
Step 1.1— Add Dependencies to build.gradle(Module: Example.app)
Step 1.2— Add JitPack Repo to build.gradle(Project: Example)
For versions < Artic Fox
For versions ≥ Artic Fox
Step 2 — Add OTPView in the xml
Step 3— Handle OTPView Completion in the Fragment or Activity
And Voila! The implementation is done and ready to test & deploy.
Thanks for following up until here. Feel free to request for features and contribute to this open source lib 🙌.