Search in sources :

Example 76 with InputMethodManager

use of android.view.inputmethod.InputMethodManager in project Klyph by jonathangerbaud.

the class PlacePickerFragment method onDetach.

@Override
public void onDetach() {
    super.onDetach();
    if (searchBox != null) {
        InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
        imm.hideSoftInputFromWindow(searchBox.getWindowToken(), 0);
    }
}
Also used : InputMethodManager(android.view.inputmethod.InputMethodManager)

Example 77 with InputMethodManager

use of android.view.inputmethod.InputMethodManager in project archi by ivacf.

the class MainActivity method hideSoftKeyboard.

private void hideSoftKeyboard() {
    InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
    imm.hideSoftInputFromWindow(editTextUsername.getWindowToken(), 0);
}
Also used : InputMethodManager(android.view.inputmethod.InputMethodManager)

Example 78 with InputMethodManager

use of android.view.inputmethod.InputMethodManager in project archi by ivacf.

the class MainActivity method hideSoftKeyboard.

private void hideSoftKeyboard() {
    InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
    imm.hideSoftInputFromWindow(editTextUsername.getWindowToken(), 0);
}
Also used : InputMethodManager(android.view.inputmethod.InputMethodManager)

Example 79 with InputMethodManager

use of android.view.inputmethod.InputMethodManager in project archi by ivacf.

the class MainActivity method hideSoftKeyboard.

private void hideSoftKeyboard() {
    InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
    imm.hideSoftInputFromWindow(binding.editTextUsername.getWindowToken(), 0);
}
Also used : InputMethodManager(android.view.inputmethod.InputMethodManager)

Example 80 with InputMethodManager

use of android.view.inputmethod.InputMethodManager in project Talon-for-Twitter by klinker24.

the class SearchPager method removeKeyboard.

public void removeKeyboard() {
    try {
        InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
        imm.hideSoftInputFromWindow(searchView.getWindowToken(), 0);
    } catch (Exception e) {
    }
}
Also used : InputMethodManager(android.view.inputmethod.InputMethodManager) TwitterException(twitter4j.TwitterException)

Aggregations

InputMethodManager (android.view.inputmethod.InputMethodManager)631 View (android.view.View)120 TextView (android.widget.TextView)67 Paint (android.graphics.Paint)43 Spannable (android.text.Spannable)34 Editable (android.text.Editable)33 EditText (android.widget.EditText)33 ImageView (android.widget.ImageView)31 Intent (android.content.Intent)29 RemoteException (android.os.RemoteException)23 KeyEvent (android.view.KeyEvent)22 TextPaint (android.text.TextPaint)21 Point (android.graphics.Point)18 InputMethodInfo (android.view.inputmethod.InputMethodInfo)18 AdapterView (android.widget.AdapterView)18 Button (android.widget.Button)16 RemoteView (android.widget.RemoteViews.RemoteView)16 Resources (android.content.res.Resources)15 ListView (android.widget.ListView)15 InputMethodSubtype (android.view.inputmethod.InputMethodSubtype)14