Alex1987 Alex1987 - 3 months ago 18x
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?


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.