Laixer / Swabbr-Android

Swabbr Android application
2 stars 0 forks source link

No proper native way of hiding the soft input keyboard. #197

Open tabeckers opened 3 years ago

tabeckers commented 3 years ago

The Android docs specify that we* shouldn't hide the keyboard programmatically once it's visible as the OS handles this by itself. In some cases however (login & registration) the keyboard does't disappear. To fix this we have to ignore said advice.

https://developer.android.com/training/keyboard-input/visibility

This article was used as a reference for a solution.

https://rmirabelle.medium.com/close-hide-the-soft-keyboard-in-android-db1da22b09d2