You can force Android to hide the virtual keyboard using the InputMethodManager, calling
hideSoftInputFromWindow
, passing in the token of the window containing your edit field.InputMethodManager imm = (InputMethodManager)getSystemService(
Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(myEditText.getWindowToken(), 0);
No comments:
Post a Comment