Here are the examples of the java api class android.view.inputmethod.InputMethodManager taken from open source projects.
1. InAppBrowser#navigate()
Project: mobilot
File: InAppBrowser.java
File: InAppBrowser.java
/** * Navigate to the new page * * @param url to load */ private void navigate(final String url) { InputMethodManager imm = (InputMethodManager) this.cordova.getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(edittext.getWindowToken(), 0); this.cordova.getActivity().runOnUiThread(new Runnable() { public void run() { if (!url.startsWith("http") && !url.startsWith("file:")) { InAppBrowser.this.inAppWebView.loadUrl("http://" + url); } else { InAppBrowser.this.inAppWebView.loadUrl(url); } InAppBrowser.this.inAppWebView.requestFocus(); } }); }
2. InAppBrowser#navigate()
Project: mobilot
File: InAppBrowser.java
File: InAppBrowser.java
/** * Navigate to the new page * * @param url to load */ private void navigate(final String url) { InputMethodManager imm = (InputMethodManager) this.cordova.getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(edittext.getWindowToken(), 0); this.cordova.getActivity().runOnUiThread(new Runnable() { public void run() { if (!url.startsWith("http") && !url.startsWith("file:")) { InAppBrowser.this.inAppWebView.loadUrl("http://" + url); } else { InAppBrowser.this.inAppWebView.loadUrl(url); } InAppBrowser.this.inAppWebView.requestFocus(); } }); }
3. HighlightDialogFragment#hideKeyboard()
Project: k-9
File: HighlightDialogFragment.java
File: HighlightDialogFragment.java
private void hideKeyboard() { Activity activity = getActivity(); if (activity == null) { return; } // check if no view has focus View v = activity.getCurrentFocus(); if (v == null) { return; } InputMethodManager inputManager = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE); inputManager.hideSoftInputFromWindow(v.getWindowToken(), 0); }
4. AccountFormFragment#finishFragment()
Project: gnucash-android
File: AccountFormFragment.java
File: AccountFormFragment.java
/** * Finishes the fragment appropriately. * Depends on how the fragment was loaded, it might have a backstack or not */ private void finishFragment() { InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(mNameEditText.getWindowToken(), 0); final String action = getActivity().getIntent().getAction(); if (action != null && action.equals(Intent.ACTION_INSERT_OR_EDIT)) { getActivity().setResult(Activity.RESULT_OK); getActivity().finish(); } else { getActivity().getSupportFragmentManager().popBackStack(); } }
5. InAppBrowser#navigate()
Project: cordova-plugin-inappbrowser
File: InAppBrowser.java
File: InAppBrowser.java
/** * Navigate to the new page * * @param url to load */ private void navigate(final String url) { InputMethodManager imm = (InputMethodManager) this.cordova.getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(edittext.getWindowToken(), 0); this.cordova.getActivity().runOnUiThread(new Runnable() { public void run() { if (!url.startsWith("http") && !url.startsWith("file:")) { InAppBrowser.this.inAppWebView.loadUrl("http://" + url); } else { InAppBrowser.this.inAppWebView.loadUrl(url); } InAppBrowser.this.inAppWebView.requestFocus(); } }); }
6. ContactListFilterView#setContactNickname()
Project: ChatSecureAndroid
File: ContactListFilterView.java
File: ContactListFilterView.java
/** * @param value */ protected void setContactNickname(String aAddress, String aNickname, IImConnection conn) { try { IContactListManager listManager = conn.getContactListManager(); int result = listManager.setContactName(aAddress, aNickname); if (result != ImErrorInfo.NO_ERROR) { // TODO -LS error handling Toast.makeText(mContext, mContext.getString(R.string.error_prefix) + result, Toast.LENGTH_LONG).show(); } } catch (Exception e) { Toast.makeText(mContext, mContext.getString(R.string.error_prefix) + e.getMessage(), Toast.LENGTH_LONG).show(); } mFilterList.invalidate(); final InputMethodManager imm = (InputMethodManager) mContext.getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(getWindowToken(), 0); }
7. SetPassphraseDialogFragment#hideKeyboard()
Project: apg
File: SetPassphraseDialogFragment.java
File: SetPassphraseDialogFragment.java
private void hideKeyboard() { if (getActivity() == null) { return; } InputMethodManager inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); //check if no view has focus: View v = getActivity().getCurrentFocus(); if (v == null) return; inputManager.hideSoftInputFromWindow(v.getWindowToken(), 0); }
8. AddUserIdDialogFragment#hideKeyboard()
Project: apg
File: AddUserIdDialogFragment.java
File: AddUserIdDialogFragment.java
private void hideKeyboard() { if (getActivity() == null) { return; } InputMethodManager inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); // check if no view has focus: View v = getActivity().getCurrentFocus(); if (v == null) return; inputManager.hideSoftInputFromWindow(v.getWindowToken(), 0); }
9. AddKeyserverDialogFragment#hideKeyboard()
Project: apg
File: AddKeyserverDialogFragment.java
File: AddKeyserverDialogFragment.java
private void hideKeyboard() { if (getActivity() == null) { return; } InputMethodManager inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); //check if no view has focus: View v = getActivity().getCurrentFocus(); if (v == null) return; inputManager.hideSoftInputFromWindow(v.getWindowToken(), 0); }
10. AddEmailDialogFragment#hideKeyboard()
Project: apg
File: AddEmailDialogFragment.java
File: AddEmailDialogFragment.java
private void hideKeyboard() { if (getActivity() == null) { return; } InputMethodManager inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); // check if no view has focus: View v = getActivity().getCurrentFocus(); if (v == null) return; inputManager.hideSoftInputFromWindow(v.getWindowToken(), 0); }
11. CreateKeyPassphraseFragment#hideKeyboard()
Project: apg
File: CreateKeyPassphraseFragment.java
File: CreateKeyPassphraseFragment.java
private void hideKeyboard() { if (getActivity() == null) { return; } InputMethodManager inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); // check if no view has focus View v = getActivity().getCurrentFocus(); if (v == null) return; inputManager.hideSoftInputFromWindow(v.getWindowToken(), 0); }
12. MyAccount#login()
Project: Anki-Android
File: MyAccount.java
File: MyAccount.java
private void login() { // Hide soft keyboard InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); inputMethodManager.hideSoftInputFromWindow(mUsername.getWindowToken(), 0); // trim spaces, issue 1586 String username = mUsername.getText().toString().trim(); String password = mPassword.getText().toString(); if (!"".equalsIgnoreCase(username) && !"".equalsIgnoreCase(password)) { Connection.login(loginListener, new Connection.Payload(new Object[] { username, password })); } else { UIUtils.showSimpleSnackbar(this, R.string.invalid_username_password, true); } }
13. GoBackClickListener#onClick()
Project: YiBo
File: GoBackClickListener.java
File: GoBackClickListener.java
@Override public void onClick(View v) { InputMethodManager inputMethodManager = (InputMethodManager) v.getContext().getSystemService(Context.INPUT_METHOD_SERVICE); inputMethodManager.hideSoftInputFromWindow(v.getWindowToken(), 0); Activity activity = (Activity) v.getContext(); activity.finish(); if (enterAnim != -1) { CompatibilityUtil.overridePendingTransition(activity, enterAnim, android.R.anim.fade_out); } }
14. CreatePostFragment#sendNewPost()
Project: XDA-One
File: CreatePostFragment.java
File: CreatePostFragment.java
private void sendNewPost() { final InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(mMessageEditText.getWindowToken(), 0); if (mPosts == null || mPosts.length == 0) { mClient.createNewPostAsync(mDefaultUnifiedThread, mMessageEditText.getText().toString()); } else { mClient.createNewPostAsync(mPosts[0], mMessageEditText.getText().toString()); } mDialog.show(); }
15. WizardFragment#onStepChanged()
Project: WizarDroid
File: WizardFragment.java
File: WizardFragment.java
/** * Called during step switch. Default implementation hides keyboard. **/ @Override public void onStepChanged() { // in order to hide software input method we need to authorize with window token from focused window // this code relies on (somewhat fragile) assumption, that the only window, that can hold // software keyboard focus during fragment switch, one with fragment itself. final InputMethodManager mgr = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); View focusedWindowChild = wizard.getCurrentStep().getView(); if (focusedWindowChild == null) focusedWindowChild = getActivity().getCurrentFocus(); if (focusedWindowChild == null) focusedWindowChild = new View(getActivity()); mgr.hideSoftInputFromWindow(focusedWindowChild.getWindowToken(), 0); }
16. SearchBox#closeSearch()
Project: WeGit
File: SearchBox.java
File: SearchBox.java
private void closeSearch() { if (animateDrawerLogo) { this.materialMenu.animateState(IconState.BURGER); this.drawerLogo.setVisibility(View.VISIBLE); } this.logo.setVisibility(View.VISIBLE); this.search.setVisibility(View.GONE); this.results.setVisibility(View.GONE); if (tint != null && rootLayout != null) { rootLayout.removeView(tint); } if (listener != null) listener.onSearchClosed(); micStateChanged(true); mic.setImageDrawable(context.getResources().getDrawable(R.drawable.ic_action_mic)); InputMethodManager inputMethodManager = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); inputMethodManager.hideSoftInputFromWindow(getApplicationWindowToken(), 0); searchOpen = false; }
17. VimTouch#doToggleSoftKeyboard()
Project: vimtouch
File: VimTouch.java
File: VimTouch.java
private void doToggleSoftKeyboard() { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); // force leave fullscreen first WindowManager.LayoutParams attrs = getWindow().getAttributes(); if ((attrs.flags & WindowManager.LayoutParams.FLAG_FULLSCREEN) != 0) { attrs.flags &= (~WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().setAttributes(attrs); mFullscreen = false; mOptionMenu.findItem(R.id.menu_fullscreen).setChecked(mFullscreen); } imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0); }
18. InAppBrowser#navigate()
Project: VallasciApp-ionic
File: InAppBrowser.java
File: InAppBrowser.java
/** * Navigate to the new page * * @param url to load */ private void navigate(final String url) { InputMethodManager imm = (InputMethodManager) this.cordova.getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(edittext.getWindowToken(), 0); this.cordova.getActivity().runOnUiThread(new Runnable() { public void run() { if (!url.startsWith("http") && !url.startsWith("file:")) { InAppBrowser.this.inAppWebView.loadUrl("http://" + url); } else { InAppBrowser.this.inAppWebView.loadUrl(url); } InAppBrowser.this.inAppWebView.requestFocus(); } }); }
19. MainActivity#closeKeyBoard()
Project: turbo-editor
File: MainActivity.java
File: MainActivity.java
// closes the soft keyboard private void closeKeyBoard() throws NullPointerException { // Central system API to the overall input method framework (IMF) architecture InputMethodManager inputManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); // Base interface for a remotable object IBinder windowToken = getCurrentFocus().getWindowToken(); // Hide type int hideType = InputMethodManager.HIDE_NOT_ALWAYS; // Hide the KeyBoard inputManager.hideSoftInputFromWindow(windowToken, hideType); }
20. InAppBrowser#navigate()
Project: reacteu-app
File: InAppBrowser.java
File: InAppBrowser.java
/** * Navigate to the new page * * @param url to load */ private void navigate(final String url) { InputMethodManager imm = (InputMethodManager) this.cordova.getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(edittext.getWindowToken(), 0); this.cordova.getActivity().runOnUiThread(new Runnable() { public void run() { if (!url.startsWith("http") && !url.startsWith("file:")) { InAppBrowser.this.inAppWebView.loadUrl("http://" + url); } else { InAppBrowser.this.inAppWebView.loadUrl(url); } InAppBrowser.this.inAppWebView.requestFocus(); } }); }
21. InAppBrowser#navigate()
Project: Projeto_PG
File: InAppBrowser.java
File: InAppBrowser.java
/** * Navigate to the new page * * @param url to load */ private void navigate(final String url) { InputMethodManager imm = (InputMethodManager) this.cordova.getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(edittext.getWindowToken(), 0); this.cordova.getActivity().runOnUiThread(new Runnable() { public void run() { if (!url.startsWith("http") && !url.startsWith("file:")) { InAppBrowser.this.inAppWebView.loadUrl("http://" + url); } else { InAppBrowser.this.inAppWebView.loadUrl(url); } InAppBrowser.this.inAppWebView.requestFocus(); } }); }
22. MapActivity#handleSearchButton()
Project: osmbonuspack
File: MapActivity.java
File: MapActivity.java
/** * Geocoding of the departure or destination address */ public void handleSearchButton(int index, int editResId) { EditText locationEdit = (EditText) findViewById(editResId); //Hide the soft keyboard: InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(locationEdit.getWindowToken(), 0); String locationAddress = locationEdit.getText().toString(); if (locationAddress.equals("")) { removePoint(index); map.invalidate(); return; } Toast.makeText(this, "Searching:\n" + locationAddress, Toast.LENGTH_LONG).show(); AutoCompleteOnPreferences.storePreference(this, locationAddress, SHARED_PREFS_APPKEY, PREF_LOCATIONS_KEY); new GeocodingTask().execute(locationAddress, index); }
23. SetPassphraseDialogFragment#hideKeyboard()
Project: open-keychain
File: SetPassphraseDialogFragment.java
File: SetPassphraseDialogFragment.java
private void hideKeyboard() { if (getActivity() == null) { return; } InputMethodManager inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); //check if no view has focus: View v = getActivity().getCurrentFocus(); if (v == null) return; inputManager.hideSoftInputFromWindow(v.getWindowToken(), 0); }
24. AddUserIdDialogFragment#hideKeyboard()
Project: open-keychain
File: AddUserIdDialogFragment.java
File: AddUserIdDialogFragment.java
private void hideKeyboard() { if (getActivity() == null) { return; } InputMethodManager inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); // check if no view has focus: View v = getActivity().getCurrentFocus(); if (v == null) return; inputManager.hideSoftInputFromWindow(v.getWindowToken(), 0); }
25. AddEmailDialogFragment#hideKeyboard()
Project: open-keychain
File: AddEmailDialogFragment.java
File: AddEmailDialogFragment.java
private void hideKeyboard() { if (getActivity() == null) { return; } InputMethodManager inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); // check if no view has focus: View v = getActivity().getCurrentFocus(); if (v == null) return; inputManager.hideSoftInputFromWindow(v.getWindowToken(), 0); }
26. AddEditKeyserverDialogFragment#hideKeyboard()
Project: open-keychain
File: AddEditKeyserverDialogFragment.java
File: AddEditKeyserverDialogFragment.java
private void hideKeyboard() { if (getActivity() == null) { return; } InputMethodManager inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); //check if no view has focus: View v = getActivity().getCurrentFocus(); if (v == null) return; inputManager.hideSoftInputFromWindow(v.getWindowToken(), 0); }
27. CreateSecurityTokenPinFragment#hideKeyboard()
Project: open-keychain
File: CreateSecurityTokenPinFragment.java
File: CreateSecurityTokenPinFragment.java
private void hideKeyboard() { if (getActivity() == null) { return; } InputMethodManager inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); // check if no view has focus View v = getActivity().getCurrentFocus(); if (v == null) return; inputManager.hideSoftInputFromWindow(v.getWindowToken(), 0); }
28. CreateKeyPassphraseFragment#hideKeyboard()
Project: open-keychain
File: CreateKeyPassphraseFragment.java
File: CreateKeyPassphraseFragment.java
private void hideKeyboard() { if (getActivity() == null) { return; } InputMethodManager inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); // check if no view has focus View v = getActivity().getCurrentFocus(); if (v == null) return; inputManager.hideSoftInputFromWindow(v.getWindowToken(), 0); }
29. CreateKeyEmailFragment#hideKeyboard()
Project: open-keychain
File: CreateKeyEmailFragment.java
File: CreateKeyEmailFragment.java
private void hideKeyboard() { if (getActivity() == null) { return; } InputMethodManager inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); // check if no view has focus View v = getActivity().getCurrentFocus(); if (v == null) return; inputManager.hideSoftInputFromWindow(v.getWindowToken(), 0); }
30. CryptoOperationFragment#hideKeyboard()
Project: open-keychain
File: CryptoOperationFragment.java
File: CryptoOperationFragment.java
public void hideKeyboard() { Activity activity = getActivity(); if (activity == null) { return; } InputMethodManager inputManager = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE); // check if no view has focus View v = activity.getCurrentFocus(); if (v == null) return; inputManager.hideSoftInputFromWindow(v.getWindowToken(), 0); }
31. KeyboardUtils#hideKeyboard()
Project: Omni-Notes
File: KeyboardUtils.java
File: KeyboardUtils.java
public static void hideKeyboard(View view) { if (view == null) { return; } InputMethodManager imm = (InputMethodManager) view.getContext().getSystemService(Context.INPUT_METHOD_SERVICE); if (!imm.isActive()) { return; } imm.hideSoftInputFromWindow(view.getWindowToken(), 0); // if (!isKeyboardShowed(view)) { // imm.toggleSoftInput(InputMethodManager.HIDE_NOT_ALWAYS, InputMethodManager.RESULT_HIDDEN); // } }
32. KeyboardUtils#showKeyboard()
Project: Omni-Notes
File: KeyboardUtils.java
File: KeyboardUtils.java
public static void showKeyboard(View view) { if (view == null) { return; } view.requestFocus(); InputMethodManager inputManager = (InputMethodManager) view.getContext().getSystemService(Context.INPUT_METHOD_SERVICE); inputManager.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT); ((InputMethodManager) view.getContext().getSystemService(Context.INPUT_METHOD_SERVICE)).showSoftInput(view, 0); if (!isKeyboardShowed(view)) { inputManager.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0); } }
33. InAppBrowser#navigate()
Project: mobilot
File: InAppBrowser.java
File: InAppBrowser.java
/** * Navigate to the new page * * @param url to load */ private void navigate(final String url) { InputMethodManager imm = (InputMethodManager) this.cordova.getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(edittext.getWindowToken(), 0); this.cordova.getActivity().runOnUiThread(new Runnable() { public void run() { if (!url.startsWith("http") && !url.startsWith("file:")) { InAppBrowser.this.inAppWebView.loadUrl("http://" + url); } else { InAppBrowser.this.inAppWebView.loadUrl(url); } InAppBrowser.this.inAppWebView.requestFocus(); } }); }
34. MaterialTextField#setHasFocus()
Project: MaterialTextField
File: MaterialTextField.java
File: MaterialTextField.java
public void setHasFocus(boolean hasFocus) { this.hasFocus = hasFocus; final InputMethodManager inputMethodManager = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE); if (hasFocus) { expand(); editText.postDelayed(new Runnable() { public void run() { editText.requestFocusFromTouch(); inputMethodManager.showSoftInput(editText, 0); } }, 300); } else { reduce(); } }
35. DialogUtils#hideKeyboard()
Project: material-dialogs
File: DialogUtils.java
File: DialogUtils.java
public static void hideKeyboard(@NonNull final DialogInterface di, @NonNull final MaterialDialog.Builder builder) { final MaterialDialog dialog = (MaterialDialog) di; if (dialog.getInputEditText() == null) return; InputMethodManager imm = (InputMethodManager) builder.getContext().getSystemService(Context.INPUT_METHOD_SERVICE); if (imm != null) { final View currentFocus = dialog.getCurrentFocus(); final IBinder windowToken = currentFocus != null ? currentFocus.getWindowToken() : dialog.getView().getWindowToken(); if (windowToken != null) { imm.hideSoftInputFromWindow(windowToken, 0); } } }
36. DigitsEditText#applyKeyboardShowHide()
Project: CSipSimple
File: DigitsEditText.java
File: DigitsEditText.java
/* @Override public boolean requestFocus(int direction, Rect previouslyFocusedRect) { boolean ret = false; if(!isDigit) { ret = super.requestFocus(direction, previouslyFocusedRect); } applyKeyboardShowHide(false); return ret; } */ private void applyKeyboardShowHide(boolean autofocus) { final InputMethodManager imm = ((InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE)); if (imm != null) { if (isDigit) { if (imm.isActive(this)) { imm.hideSoftInputFromWindow(getApplicationWindowToken(), 0); } } else if (autofocus) { imm.showSoftInput(this, 0); } } }
37. ImportKeysCloudFragment#toggleKeyboard()
Project: apg
File: ImportKeysCloudFragment.java
File: ImportKeysCloudFragment.java
private void toggleKeyboard(boolean show) { if (getActivity() == null) { return; } InputMethodManager inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); // check if no view has focus View v = getActivity().getCurrentFocus(); if (v == null) { return; } if (show) { inputManager.showSoftInput(v, InputMethodManager.SHOW_IMPLICIT); } else { inputManager.hideSoftInputFromWindow(v.getWindowToken(), 0); } }
38. EditTextUtils#showSoftInput()
Project: WordPress-Android
File: EditTextUtils.java
File: EditTextUtils.java
/** * show the soft keyboard for the passed EditText */ public static void showSoftInput(EditText edit) { if (edit == null) { return; } edit.requestFocus(); InputMethodManager imm = getInputMethodManager(edit); if (imm != null) { imm.showSoftInput(edit, InputMethodManager.SHOW_IMPLICIT); } }
39. CardWheelHorizontalView#showSoftInput()
Project: Tower
File: CardWheelHorizontalView.java
File: CardWheelHorizontalView.java
private void showSoftInput(T currentValue) { final Context context = getContext(); final InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); if (imm != null) { if (currentValue instanceof Unit) mNumberInputText.setText(String.valueOf(((Unit) currentValue).getValue())); else { mNumberInputText.setText(currentValue.toString()); } mNumberInputText.setVisibility(VISIBLE); mNumberInputText.requestFocus(); imm.showSoftInput(mNumberInputText, 0); } }
40. ProcessorPhoneticLetters#processKeyboardKeyEvent()
Project: talkback
File: ProcessorPhoneticLetters.java
File: ProcessorPhoneticLetters.java
/** * Handle an event that indicates a key is held on the soft keyboard. */ private void processKeyboardKeyEvent(AccessibilityEvent event) { final CharSequence text = AccessibilityEventUtils.getEventTextOrDescription(event); if (TextUtils.isEmpty(text)) { return; } String localeString = FALLBACK_LOCALE; InputMethodManager inputMethodManager = (InputMethodManager) mService.getSystemService(Context.INPUT_METHOD_SERVICE); InputMethodSubtype inputMethod = inputMethodManager.getCurrentInputMethodSubtype(); if (inputMethod != null) { localeString = inputMethod.getLocale(); } String phoneticLetter = getPhoneticLetter(localeString, text.toString()); if (phoneticLetter != null) { postPhoneticLetterRunnable(phoneticLetter); } }
41. ImeUtils#showIme()
Project: sbt-android
File: ImeUtils.java
File: ImeUtils.java
public static void showIme(@NonNull View view) { InputMethodManager imm = (InputMethodManager) view.getContext().getSystemService(Context.INPUT_METHOD_SERVICE); // the public methods don't seem to work for me, so… reflection. try { Method showSoftInputUnchecked = InputMethodManager.class.getMethod("showSoftInputUnchecked", int.class, ResultReceiver.class); showSoftInputUnchecked.setAccessible(true); showSoftInputUnchecked.invoke(imm, 0, null); } catch (Exception e) { } }
42. PUI#showVirtualKeys()
Project: Protocoder
File: PUI.java
File: PUI.java
// it only works with absolute layout and only when // mContext layout is been used @ProtoMethod(description = "Show the virtual keyboard", example = "") @ProtoMethodParam(params = { "boolean" }) public void showVirtualKeys(boolean show) { initializeLayout(); InputMethodManager imm = (InputMethodManager) getContext().getSystemService(getContext().INPUT_METHOD_SERVICE); if (show) { imm.showSoftInput(getActivity().getCurrentFocus(), InputMethodManager.SHOW_FORCED); uiAbsoluteLayout.setFocusable(true); uiAbsoluteLayout.setFocusableInTouchMode(true); } else { imm.hideSoftInputFromWindow(getActivity().getCurrentFocus().getWindowToken(), 0); } }
43. ImeUtils#showIme()
Project: plaid
File: ImeUtils.java
File: ImeUtils.java
public static void showIme(@NonNull View view) { InputMethodManager imm = (InputMethodManager) view.getContext().getSystemService(Context.INPUT_METHOD_SERVICE); // the public methods don't seem to work for me, so… reflection. try { Method showSoftInputUnchecked = InputMethodManager.class.getMethod("showSoftInputUnchecked", int.class, ResultReceiver.class); showSoftInputUnchecked.setAccessible(true); showSoftInputUnchecked.invoke(imm, 0, null); } catch (Exception e) { } }
44. BaseUtils#showInputMethod()
Project: orz
File: BaseUtils.java
File: BaseUtils.java
public static void showInputMethod(Activity activity) { InputMethodManager imm = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE); View currentFocus = activity.getCurrentFocus(); if (currentFocus != null) { imm.hideSoftInputFromWindow(currentFocus.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); imm.showSoftInput(currentFocus, InputMethodManager.SHOW_IMPLICIT); } // if (imm != null) { // imm.viewClicked(this); // } // if (imm != null && getShowSoftInputOnFocus()) { // imm.showSoftInput(this, 0); // } }
45. ImportKeysCloudFragment#toggleKeyboard()
Project: open-keychain
File: ImportKeysCloudFragment.java
File: ImportKeysCloudFragment.java
private void toggleKeyboard(boolean show) { if (getActivity() == null) { return; } InputMethodManager inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); // check if no view has focus View v = getActivity().getCurrentFocus(); if (v == null) { return; } if (show) { inputManager.showSoftInput(v, InputMethodManager.SHOW_IMPLICIT); } else { inputManager.hideSoftInputFromWindow(v.getWindowToken(), 0); } }
46. InAppBrowser#navigate()
Project: mobilot
File: InAppBrowser.java
File: InAppBrowser.java
/** * Navigate to the new page * * @param url to load */ private void navigate(String url) { InputMethodManager imm = (InputMethodManager) this.cordova.getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(edittext.getWindowToken(), 0); if (!url.startsWith("http") && !url.startsWith("file:")) { this.inAppWebView.loadUrl("http://" + url); } else { this.inAppWebView.loadUrl(url); } this.inAppWebView.requestFocus(); }
47. InAppBrowser#navigate()
Project: mobilot
File: InAppBrowser.java
File: InAppBrowser.java
/** * Navigate to the new page * * @param url to load */ private void navigate(String url) { InputMethodManager imm = (InputMethodManager) this.cordova.getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(edittext.getWindowToken(), 0); if (!url.startsWith("http") && !url.startsWith("file:")) { this.inAppWebView.loadUrl("http://" + url); } else { this.inAppWebView.loadUrl(url); } this.inAppWebView.requestFocus(); }
48. WizardView#hideKeyboard()
Project: mobileorg-android
File: WizardView.java
File: WizardView.java
// hide keyboard if showing private void hideKeyboard() { InputMethodManager imm = (InputMethodManager) ((Activity) getContext()).getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(getWindowToken(), 0); }
49. AddToDoActivity#hideKeyboard()
Project: Minimal-Todo
File: AddToDoActivity.java
File: AddToDoActivity.java
public void hideKeyboard(EditText et) { InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(et.getWindowToken(), 0); }
50. MaterialSearchView#showKeyboard()
Project: MaterialSearchView
File: MaterialSearchView.java
File: MaterialSearchView.java
public void showKeyboard(View view) { if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.GINGERBREAD_MR1 && view.hasFocus()) { view.clearFocus(); } view.requestFocus(); InputMethodManager imm = (InputMethodManager) view.getContext().getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(view, 0); }
51. MaterialSearchView#hideKeyboard()
Project: MaterialSearchView
File: MaterialSearchView.java
File: MaterialSearchView.java
public void hideKeyboard(View view) { InputMethodManager imm = (InputMethodManager) view.getContext().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(view.getWindowToken(), 0); }
52. SingleInputFormActivity#hideSoftInput()
Project: material-singleinputform
File: SingleInputFormActivity.java
File: SingleInputFormActivity.java
private void hideSoftInput() { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); View v = getCurrentFocus(); if (v == null) return; imm.hideSoftInputFromWindow(v.getWindowToken(), 0); }
53. ToolbarSearch#hideSoftKeyboard()
Project: material-design-library
File: ToolbarSearch.java
File: ToolbarSearch.java
private void hideSoftKeyboard(View view) { view.clearFocus(); InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(view.getWindowToken(), 0); }
54. SearchWidgetActivity#hideKeyboard()
Project: Material-Animation-Samples
File: SearchWidgetActivity.java
File: SearchWidgetActivity.java
private boolean hideKeyboard() { Log.i(TAG, "hideKeyboard"); InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); return imm.hideSoftInputFromWindow(mEtSearch.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); }
55. KnifeText#showSoftInput()
Project: Knife
File: KnifeText.java
File: KnifeText.java
public void showSoftInput() { requestFocus(); InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0); }
56. KnifeText#hideSoftInput()
Project: Knife
File: KnifeText.java
File: KnifeText.java
public void hideSoftInput() { clearFocus(); InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(getWindowToken(), 0); }
57. MainActivity#hideKeyboard()
Project: KitKatEmoji
File: MainActivity.java
File: MainActivity.java
private void hideKeyboard() { InputMethodManager inputMethodManager = (InputMethodManager) this.getSystemService(Context.INPUT_METHOD_SERVICE); inputMethodManager.hideSoftInputFromWindow(this.getCurrentFocus().getWindowToken(), 0); }
58. MainActivity#showKeyboard()
Project: KitKatEmoji
File: MainActivity.java
File: MainActivity.java
private void showKeyboard(View view) { InputMethodManager keyboard = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); keyboard.showSoftInput(view, 0); }
59. MainActivity#showKeyboard()
Project: KISS
File: MainActivity.java
File: MainActivity.java
@Override public void showKeyboard() { searchEditText.requestFocus(); InputMethodManager mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); mgr.showSoftInput(searchEditText, InputMethodManager.SHOW_IMPLICIT); }
60. RecipientSelectView#showAlternates()
Project: k-9
File: RecipientSelectView.java
File: RecipientSelectView.java
private void showAlternates(Recipient recipient) { if (!attachedToWindow) { return; } InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(getWindowToken(), 0); alternatesPopupRecipient = recipient; loaderManager.restartLoader(LOADER_ID_ALTERNATES, null, RecipientSelectView.this); }
61. RecipientSelectView#displayKeyboard()
Project: k-9
File: RecipientSelectView.java
File: RecipientSelectView.java
private void displayKeyboard() { InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE); if (imm == null) { return; } imm.showSoftInput(this, InputMethodManager.SHOW_IMPLICIT); }
62. KeyboardUtil#hideKeyboard()
Project: JKeyboardPanelSwitch
File: KeyboardUtil.java
File: KeyboardUtil.java
public static void hideKeyboard(final View view) { InputMethodManager imm = (InputMethodManager) view.getContext().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(view.getWindowToken(), 0); }
63. KeyboardUtil#showKeyboard()
Project: JKeyboardPanelSwitch
File: KeyboardUtil.java
File: KeyboardUtil.java
public static void showKeyboard(final View view) { view.requestFocus(); InputMethodManager inputManager = (InputMethodManager) view.getContext().getSystemService(Context.INPUT_METHOD_SERVICE); inputManager.showSoftInput(view, 0); }
64. ChattingUnresolvedActivity#hideKeyboard()
Project: JKeyboardPanelSwitch
File: ChattingUnresolvedActivity.java
File: ChattingUnresolvedActivity.java
private void hideKeyboard() { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); mSendEdt.clearFocus(); imm.hideSoftInputFromWindow(mSendEdt.getWindowToken(), 0); }
65. ChattingUnresolvedActivity#showKeyboard()
Project: JKeyboardPanelSwitch
File: ChattingUnresolvedActivity.java
File: ChattingUnresolvedActivity.java
private void showKeyboard() { mSendEdt.requestFocus(); InputMethodManager inputManager = (InputMethodManager) mSendEdt.getContext().getSystemService(Context.INPUT_METHOD_SERVICE); inputManager.showSoftInput(mSendEdt, 0); }
66. StepEditActivity#saveStep()
Project: iFixitAndroid
File: StepEditActivity.java
File: StepEditActivity.java
private void saveStep(int savePosition) { GuideStep step = mGuide.getStep(savePosition); if (!stepHasLineContent(step)) { Toast.makeText(this, getResources().getString(R.string.guide_create_edit_must_add_line_content), Toast.LENGTH_SHORT).show(); return; } if (!mIsStepDirty || mLockSave) { return; } mSavePosition = savePosition; mIsStepDirty = false; InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0); showLoading(mLoadingContainer, getString(R.string.saving)); toggleSave(mIsStepDirty); if (step.getRevisionid() != null) { Api.call(this, ApiCall.editStep(step, mGuide.getGuideid())); } else { Api.call(this, ApiCall.createStep(step, mGuide.getGuideid(), mPagePosition + 1, mGuide.getRevisionid())); } }
67. CommentsActivity#showSoftKeyboard()
Project: iFixitAndroid
File: CommentsActivity.java
File: CommentsActivity.java
private void showSoftKeyboard() { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInputFromWindow(mAddCommentField.getApplicationWindowToken(), InputMethodManager.SHOW_FORCED, 0); }
68. RegisterFragment#showKeyboard()
Project: iFixitAndroid
File: RegisterFragment.java
File: RegisterFragment.java
private void showKeyboard() { InputMethodManager in = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); in.toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY); }
69. LoginFragment#showKeyboard()
Project: iFixitAndroid
File: LoginFragment.java
File: LoginFragment.java
private void showKeyboard() { InputMethodManager in = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); in.toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY); }
70. LoginFragment#onStop()
Project: HttpTest
File: LoginFragment.java
File: LoginFragment.java
//*********************************************************************************************************************************** // ??????? //*********************************************************************************************************************************** @Override public /**Fragment?????????*/ void onStop() { super.onStop(); InputMethodManager imm = (InputMethodManager) mContext.getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(et_account.getWindowToken(), 0); }
71. AddEditThoughtActivity#closeIMEAndFinish()
Project: HeartBeat
File: AddEditThoughtActivity.java
File: AddEditThoughtActivity.java
private void closeIMEAndFinish(int delay) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); if (imm.isActive()) imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS); new Timer().schedule(new TimerTask() { @Override public void run() { finish(); } }, delay); }
72. TransactionFormFragment#onOptionsItemSelected()
Project: gnucash-android
File: TransactionFormFragment.java
File: TransactionFormFragment.java
@Override public boolean onOptionsItemSelected(MenuItem item) { //hide the keyboard if it is visible InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(mDescriptionEditText.getApplicationWindowToken(), 0); switch(item.getItemId()) { case android.R.id.home: finish(Activity.RESULT_CANCELED); return true; case R.id.menu_save: if (canSave()) { saveNewTransaction(); } else { if (mAmountEditText.getValue() == null) { Toast.makeText(getActivity(), R.string.toast_transanction_amount_required, Toast.LENGTH_SHORT).show(); } if (mUseDoubleEntry && mTransferAccountSpinner.getCount() == 0) { Toast.makeText(getActivity(), R.string.toast_disable_double_entry_to_save_transaction, Toast.LENGTH_LONG).show(); } } return true; default: return super.onOptionsItemSelected(item); } }
73. UiUtils#hideImeForView()
Project: gh4a
File: UiUtils.java
File: UiUtils.java
public static void hideImeForView(View view) { if (view == null) { return; } InputMethodManager imm = (InputMethodManager) view.getContext().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); }
74. UiHelper#showInputMethod()
Project: GanWuMei
File: UiHelper.java
File: UiHelper.java
/** ????? */ public static void showInputMethod(Context context) { InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS); }
75. UIUtils#hideKeyboardFromActivity()
Project: frostwire-android
File: UIUtils.java
File: UIUtils.java
public static void hideKeyboardFromActivity(Activity activity) { InputMethodManager inputMethodManager = (InputMethodManager) activity.getSystemService(Activity.INPUT_METHOD_SERVICE); View view = activity.getCurrentFocus(); if (view == null) { view = new View(activity); } inputMethodManager.hideSoftInputFromWindow(view.getWindowToken(), 0); }
76. UIUtils#showKeyboard()
Project: frostwire-android
File: UIUtils.java
File: UIUtils.java
public static void showKeyboard(Context context, View view) { view.requestFocus(); InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT); }
77. TransfersFragment#hideAddTransfersKeyboard()
Project: frostwire-android
File: TransfersFragment.java
File: TransfersFragment.java
private void hideAddTransfersKeyboard() { InputMethodManager imm = (InputMethodManager) addTransferUrlTextView.getContext().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(addTransferUrlTextView.getWindowToken(), 0); }
78. BasePlaylistDialog#closeKeyboard()
Project: frostwire-android
File: BasePlaylistDialog.java
File: BasePlaylistDialog.java
/** * Closes the soft keyboard */ protected void closeKeyboard() { final InputMethodManager mInputMethodManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); mInputMethodManager.hideSoftInputFromWindow(mPlaylist.getWindowToken(), 0); }
79. BasePlaylistDialog#openKeyboard()
Project: frostwire-android
File: BasePlaylistDialog.java
File: BasePlaylistDialog.java
/** * Opens the soft keyboard */ protected void openKeyboard() { final InputMethodManager mInputMethodManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); mInputMethodManager.toggleSoftInputFromWindow(mPlaylist.getApplicationWindowToken(), InputMethodManager.SHOW_FORCED, 0); }
80. CommonHelper#hideKeyboard()
Project: fanfouapp-opensource
File: CommonHelper.java
File: CommonHelper.java
public static void hideKeyboard(final Context context, final EditText input) { final InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(input.getWindowToken(), 0); }
81. AppHelper#showSoftInput()
Project: EhViewer
File: AppHelper.java
File: AppHelper.java
public static void showSoftInput(Context context, View view, boolean requestFocus) { if (requestFocus) { view.requestFocus(); } InputMethodManager imm = (InputMethodManager) context.getSystemService(Service.INPUT_METHOD_SERVICE); imm.showSoftInput(view, 0); }
82. SearchBar#hideImeAndSuggestionsList()
Project: EhViewer
File: SearchBar.java
File: SearchBar.java
private void hideImeAndSuggestionsList(boolean animation) { // Hide ime InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(this.getWindowToken(), 0); // Hide suggestions list if (animation) { ObjectAnimator oa = ObjectAnimator.ofFloat(this, "progress", 0f); oa.setDuration(ANIMATE_TIME); oa.setInterpolator(AnimationUtils.SLOW_FAST_INTERPOLATOR); oa.addListener(new SimpleAnimatorListener() { @Override public void onAnimationStart(Animator animation) { mInAnimation = true; } @Override public void onAnimationEnd(Animator animation) { mListContainer.setVisibility(View.GONE); mInAnimation = false; } }); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) { oa.setAutoCancel(true); } oa.start(); } else { setProgress(0f); mListContainer.setVisibility(View.GONE); } }
83. SearchBar#showImeAndSuggestionsList()
Project: EhViewer
File: SearchBar.java
File: SearchBar.java
public void showImeAndSuggestionsList(boolean animation) { // Show ime InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(mEditText, 0); // update suggestion for show suggestions list updateSuggestions(); // Show suggestions list if (animation) { ObjectAnimator oa = ObjectAnimator.ofFloat(this, "progress", 1f); oa.setDuration(ANIMATE_TIME); oa.setInterpolator(AnimationUtils.FAST_SLOW_INTERPOLATOR); oa.addListener(new SimpleAnimatorListener() { @Override public void onAnimationStart(Animator animation) { mListContainer.setVisibility(View.VISIBLE); mInAnimation = true; } @Override public void onAnimationEnd(Animator animation) { mInAnimation = false; } }); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) { oa.setAutoCancel(true); } oa.start(); } else { mListContainer.setVisibility(View.VISIBLE); setProgress(1f); } }
84. ViewOnlineEvent#hideKeyboardRG()
Project: eeVee-Final-Presentation
File: ViewOnlineEvent.java
File: ViewOnlineEvent.java
public void hideKeyboardRG(RadioGroup name) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(name.getApplicationWindowToken(), 0); }
85. ViewOnlineEvent#hideKeyboard()
Project: eeVee-Final-Presentation
File: ViewOnlineEvent.java
File: ViewOnlineEvent.java
public void hideKeyboard(EditText name) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(name.getApplicationWindowToken(), 0); }
86. UserDetailsInput#hideKeyboardRelativeLayout()
Project: eeVee-Final-Presentation
File: UserDetailsInput.java
File: UserDetailsInput.java
public void hideKeyboardRelativeLayout(RelativeLayout name) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(name.getApplicationWindowToken(), 0); }
87. UserDetailsInput#hideKeyboardRadioGroup()
Project: eeVee-Final-Presentation
File: UserDetailsInput.java
File: UserDetailsInput.java
public void hideKeyboardRadioGroup(RadioGroup name) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(name.getApplicationWindowToken(), 0); }
88. TaskInput#hideKeyboardRadioGroup()
Project: eeVee-Final-Presentation
File: TaskInput.java
File: TaskInput.java
public void hideKeyboardRadioGroup(RadioGroup name) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(name.getApplicationWindowToken(), 0); }
89. TaskInput#hideKeyboard()
Project: eeVee-Final-Presentation
File: TaskInput.java
File: TaskInput.java
public void hideKeyboard(EditText name) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(name.getApplicationWindowToken(), 0); }
90. EventInput#hideKeyboardRadioGroup()
Project: eeVee-Final-Presentation
File: EventInput.java
File: EventInput.java
public void hideKeyboardRadioGroup(RadioGroup name) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(name.getApplicationWindowToken(), 0); }
91. EventInput#hideKeyboard()
Project: eeVee-Final-Presentation
File: EventInput.java
File: EventInput.java
public void hideKeyboard(EditText name) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(name.getApplicationWindowToken(), 0); }
92. EditAndViewTask#hideKeyboardRadioGroup()
Project: eeVee-Final-Presentation
File: EditAndViewTask.java
File: EditAndViewTask.java
public void hideKeyboardRadioGroup(RadioGroup name) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(name.getApplicationWindowToken(), 0); }
93. EditAndViewTask#hideKeyboardLinearLayout()
Project: eeVee-Final-Presentation
File: EditAndViewTask.java
File: EditAndViewTask.java
public void hideKeyboardLinearLayout(LinearLayout name) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(name.getApplicationWindowToken(), 0); }
94. EditAndViewTask#hideKeyboard()
Project: eeVee-Final-Presentation
File: EditAndViewTask.java
File: EditAndViewTask.java
public void hideKeyboard(EditText name) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(name.getApplicationWindowToken(), 0); }
95. EditAndViewEvent#hideKeyboardLinearLayout()
Project: eeVee-Final-Presentation
File: EditAndViewEvent.java
File: EditAndViewEvent.java
public void hideKeyboardLinearLayout(LinearLayout name) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(name.getApplicationWindowToken(), 0); }
96. EditAndViewEvent#hideKeyboardRG()
Project: eeVee-Final-Presentation
File: EditAndViewEvent.java
File: EditAndViewEvent.java
public void hideKeyboardRG(RadioGroup name) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(name.getApplicationWindowToken(), 0); }
97. EditAndViewEvent#hideKeyboard()
Project: eeVee-Final-Presentation
File: EditAndViewEvent.java
File: EditAndViewEvent.java
public void hideKeyboard(EditText name) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(name.getApplicationWindowToken(), 0); }
98. KeyboardUtils#hideKeyboard()
Project: DroidMVP
File: KeyboardUtils.java
File: KeyboardUtils.java
public static void hideKeyboard(Activity activity) { InputMethodManager inputManager = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE); inputManager.hideSoftInputFromWindow(activity.findViewById(android.R.id.content).getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); }
99. CubeFragmentActivity#forceShowKeyboard()
Project: cube-sdk
File: CubeFragmentActivity.java
File: CubeFragmentActivity.java
public void forceShowKeyboard() { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0); }
100. CubeFragmentActivity#showKeyboardAtView()
Project: cube-sdk
File: CubeFragmentActivity.java
File: CubeFragmentActivity.java
public void showKeyboardAtView(View view) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT); }