How do I show the soft keyboard while dismissing DatePickerDialog?
-
01-06-2021 - |
Domanda
I'm trying to load the soft keyboard while I dismiss a DatePickerDialog. It appears to be a timing issue. The DatePickerDialog still has focus, so attempting to show the soft keyboard does nothing. However, if I use a handler to cause a delay, it works fine. Any ideas?
Soluzione
I solved the problem by showing the soft keyboard after a short delay. It's a hack, but it works.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow