autocompletextview remove the key when selecting the list



  • Colleagues, performed autocompletextview, when I choose the right parameter, I press on the pre-game key, but the keyboard doesn't close.
    How do you make the keyboard closing?



  • Purely hiding the keyboard.

    // butCalculate - это кнопка
    InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
    imm.hideSoftInputFromWindow(butCalculate.getWindowToken(),
            InputMethodManager.HIDE_NOT_ALWAYS);
    

    Example. http://developer.alexanderklimov.ru/android/keyboard.php#hide




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2