composeuisuite / ohteepee

A Simple, Customizable, Easy-to-use OTP/Pin Jetpack Compose Library
Apache License 2.0
145 stars 11 forks source link

Keyboard Focus #16

Open KamilK2003 opened 10 months ago

KamilK2003 commented 10 months ago

Hi, I'm dealing with an issue where, when I switch focus from one tile to another, my view jumps. This is probably related to the fact that the keyboard raises the content higher.

ilyasipek commented 10 months ago

Hi @KamilK2003 Probably it's related to your activity's soft keyboard mode https://stackoverflow.com/a/6765848

Maybe you should android:windowSoftInputMode="adjustPan"

If that doesn't work please share with us a video and the code to be able to help u

KamilK2003 commented 10 months ago

I suspect that the issue is related to the fact that when transitioning from one tile to another, the focus goes wrong, and the content doesn't keep up with the fact that it should be constantly raised above the keyboard. If I'm mistaken and it's an error in my code, please let me know what I could fix. Regards, Kamil.

https://github.com/composeuisuite/ohteepee/assets/114185778/285d8e1b-eb00-45e1-88ec-cf2ba0126f36

Zrzut ekranu 2023-11-12 o 18 10 03

@ilyasipek