Custom OTP view
A simple solution for creating custom OTP component. It will give you the solution for
- How to create custom OTP view
- When you have to show Number to user for particular time
- Autofill OTP when received by sms
- You can decide if you want to show typed number or directly masked it
If you don't want to show typed number of user then Just refactor changeInputType method like below
private fun changeInputType(otp: AppCompatEditText) { otp.transformationMethod = BiggerDotPasswordTransformationMethod }