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

Kshitij Patil

12/04/2020, 10:15 AM
Has anyone faced the problem of keyboard not showing up after focusing a textfield? I'm using an
OutilnedTextField
with
savedInstanceState (<textfield-saver>) { TextFieldValue(state.text) }
Putting app in background an reopening fixes this issue. I'm not sure if I'm doing any wrong or there's a subtle issue in compose
2
v

Vivek Sharma

12/04/2020, 10:25 AM
I used BasicTextField, but yeah the soft keybord doesnt show up , so I just click on any keyboard key as it enters 1 letter and then it shows up
j

jim

12/04/2020, 3:04 PM
cc @Siyamed
s

Sam

12/04/2020, 6:10 PM
I frequently experience the soft keyboard failing to show up, but there is also a new bug in
alpha08
where the textfield won’t receive focus if a composable is on top, i.e. if you’ve created your own placeholder like in JetChat. The workaround is to put your placeholder behind the
BasicTextField
within a
Box
, instead of in front.
r

robnik

12/15/2020, 2:19 PM
I've noticed with
TextField
the keyboard won't show up for me unless I explicitly pass in the KeyboardOptions.
k

Kshitij Patil

12/15/2020, 2:30 PM
My observation is that, it has something to do with
savedInstanceState
used to store
TextFieldValue
. When I use simple
remember
, this doesn't seem to happen.
2 Views