Android - How to hide keyboard when search button of the keyboard is pressed?
Android – How to hide keyboard when search button of the keyboard is pressed?
How to hide keyboard when search button of the keyboard is pressed?
When the user finishes inputing in edittext and press ‘search button’ fo the keyboard, the keyboard should be hidden..
Answer
Set imeOptions to “actionSearch” in your xlm for edit text
Initialize listeners for your EditText
searchEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public…
View On WordPress








