There is a method that hides the keyboard
private fun hideKeyboard() { val imm = activity.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager imm?.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS) } It works, but toggleSoftInput() always works when you click on an element. It hides, it shows the keyboard, and I only need to hide. How can I modify the method? So I understand how it is using iBinder'a ?