I have an external button that SHOULD clear/hide the soft keyboard when it is pressed, but the edittext IS IN FOCUS!
All these tips are not for the same use case.
Close/hide the Android Soft Keyboard
I’ve even tried clearFocus()
Basically I want to simulate an imeDone event!
Add this for your activity in your manifest
android:windowSoftInputMode="stateAlwaysHidden"Another approach is to move the focus to another view, e.g: transfer the focus to the layout