If managing the soft keyboard is not the most frustrating aspect of Android development, I don't know what is. A brief survey of S/O questions on the topic...
Close/hide the Android Soft Keyboard
How to show soft-keyboard when edittext is focused
Programatically Hide/Show Android Soft Keyboard
The first is the most popular, with the top answer receiving over 1600 votes. Still, it has a comment with over 200 votes that says that that method doesn't work on 4.1.
I've tried every method mentioned on all of these threads and others and found that some work better than others, but none are foolproof, especially when fragments come into play (and particularly with FragmentPagerAdapter).
Does anyone know of a good library to manage the soft keyboard consistently across versions/devices? Or at least showKeyboard() and hideKeyboard() methods that work consistently?
0 comments:
Post a Comment