1((InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(_pay_box_helper.getWindowToken(), 0);
2
1fun View.showKeyboard() = ViewCompat.getWindowInsetsController(this)
2 ?.show(WindowInsetsCompat.Type.ime())
3
4//Now you can just call editText.showKeyboard() to show the keyboard for the EditText
1((InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE)).toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY);
2