https://kotlinlang.org logo
#compose
Title
# compose
j

julioromano

04/01/2022, 2:03 PM
When switching focus (by tapping) between 2 `BasicTextField`s (which both have
keyboardType = KeyboardType.Number
set) I can see the on screen keyboard briefly switching back to
KeyboardType.Text
and then re-switch to
KeyboardType.Number
. It doesn’t happens always. Please see video. Any idea on how to avoid this unnecessary keyboard “flickering”?
Happens when switching composables. If you press back and open the same one, it wont happen. That was my conclusion but i didnt check if it is fixed
j

julioromano

04/02/2022, 9:22 AM
I'm not sure it's the same bug: that bug talks about different text fields and moving them in and out of the composition. In this case the text fields never leave the composition. It is only the focus that changes.
m

myanmarking

04/02/2022, 9:31 AM
Oh you right i misred the screen. Well, use a single textfield and use transformers to add the unit - it should skip the bug.
1
🙏 1
r

Rene Win

06/14/2022, 9:21 AM
@julioromano i just ran into the same issue - have you found a solution when using 2 textfields?
j

julioromano

06/14/2022, 9:36 AM
Unfortunately not, I had to abandon that approach and change the UI.
r

Rene Win

06/14/2022, 10:14 AM
3 Views