OtpinVerification
OtpinVerification & Dialog
Description:
Extremely useful library for validating EditText inputs whether by using just the validator (OtpinVerification) for your custom view or using library's extremely resizable & customisable dialog (OtpinDialogCreator)
Features:
- OtpinVerification for validating your EditTexts from your own layout view
- OtpinDialogCreator (library's customisable dialog)
Setup.
To get a Git project into your build:
- Add the JitPack repository to you root build.gradle at the end of repositories:
- Add the dependency
Usage
1. OtpinVerification (Use to power your own custom layout view)
Add CountDown
2. OtpinDialogCreator
Styling Used Underneath
OtpinDialogCreator uses the following attr and styles under the hood with values that you can easily adjust to suit your brand
Styling Yours
So to style yours simply create a theme that extends otpDialogTheme then use any precreated styles or extend them for further customization.
for example to change the title font & size, see titleAppearance and buttonStyle below.
Color
For colors add these below to your color.xml
Licence
MIT Licence
Copyright (c) [2021] Ehma Ugbogo
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.