mukeshsolanki / android-otpview-pinview

A custom view to enter otp of different sizes used usually in cases of authentication.
MIT License
714 stars 206 forks source link

How to add space between text input and keyboard? #79

Closed meidikawardana closed 5 years ago

meidikawardana commented 5 years ago

My problem is similar to this issue: https://stackoverflow.com/questions/17630336/space-between-keyboard-and-edittext-in-android

but because this otpview has its own background, I cannot modify the background as I pleased.

Maybe you should add one more attribute like app:distanceWithKeyboard="4dp" ?

Thank you for this useful library

qvinh0704 commented 5 years ago

My problem is similar to this issue: https://stackoverflow.com/questions/17630336/space-between-keyboard-and-edittext-in-android

but because this otpview has its own background, I cannot modify the background as I pleased.

Maybe you should add one more attribute like app:distanceWithKeyboard="4dp" ?

Thank you for this useful library

You can add an EditText which is transparent into your layout, and make sure it's under an OtpView. After that, you need to setText() for OtpView on afterTextChanged() of EditText. Finally, you just add android:windowSoftInputMode="adjustPan" in AndroidManifest.xml for your activity. Hope this help.

mukeshsolanki commented 5 years ago

not an issue with the library