I have an
EditText and a
Button in my layout.
After writing in the edit field and clicking on the
Button, I want to hide the virtual keyboard when touching outside the keyboard. I assume that this is a simple piece of code, but where can I find an example of it?