Alex1987 Alex1987 - 1 year ago 96
Android Question

Android: Force EditText to remove focus?

I would like to be able to remove the focus from the EditText. For example if the Keyboard appears, and the user hides it with the back button, I would like the focus and the cursor to disappear. How can it be done?

Answer Source

You can add this to onCreate and it will hide the keyboard everytime the activty starts.

You could also programatically change the focus to another item.