Alex1987 Alex1987 - 1 year ago 143
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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download