I am using the following code to hide the soft keyboard from screen
InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
inputMethodManager.hideSoftInputFromWindow(
mSearchView.getWindowToken(), 0);
When the keyboard closes a white box appears in the space that had been covered it for a small period of time, can this be avoided?