Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

input method manager hide keyboard

// Check if no view has focus:
View view = this.getCurrentFocus();
if (view != null) {  
    InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
    imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #input #method #manager #hide #keyboard
ADD COMMENT
Topic
Name
5+1 =