use of android.view.inputmethod.InputMethodManager in project SmartAndroidSource by jaychou2012.
the class SmartFragmentActivity method hideSoftKeyboard.
public void hideSoftKeyboard(View view) {
if (view != null) {
InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
}
}
use of android.view.inputmethod.InputMethodManager in project SmartAndroidSource by jaychou2012.
the class AssistTool method hideSoftKeyboard.
public void hideSoftKeyboard(View view) {
if (view != null) {
InputMethodManager imm = (InputMethodManager) c.getSystemService(c.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
}
}
use of android.view.inputmethod.InputMethodManager in project musicbrainz-android by jdamcd.
the class LoginFragment method tryLogin.
private void tryLogin() {
if (isFieldsPopulated()) {
InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(passwordField.getWindowToken(), 0);
startLogin();
} else {
Toast.makeText(context, R.string.toast_auth_err, Toast.LENGTH_SHORT).show();
}
}
use of android.view.inputmethod.InputMethodManager in project musicbrainz-android by jdamcd.
the class BarcodeSearchFragment method hideKeyboard.
private void hideKeyboard() {
InputMethodManager imm = (InputMethodManager) App.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(searchBox.getWindowToken(), 0);
}
use of android.view.inputmethod.InputMethodManager in project Android-Terminal-Emulator by jackpal.
the class Term method doToggleSoftKeyboard.
private void doToggleSoftKeyboard() {
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
}
Aggregations