I have an Android application with a form.
When the user sends in the information by clicking on “Send”,
the app validates the form.
If the problem is found, it scrolls up and shows a certain textView.
But how do I clear the keyboard? It takes in half of my screen.
To show the keyboard:
And to hide:
This code was taken from http://www.androidguys.com/2009/11/12/how-to-showhide-soft-keyboard-programmatically-dev-tips-tools/