So verbergen Sie Keybord im Android Studio

  
fun hideKeybord() {
            val view = this.currentFocus
            if (view != null) {
                val hideKey = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
                hideKey.hideSoftInputFromWindow(view.windowToken, 0)
            } else {
                window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN)
            }
        }

// Call your function whatever you want

	hideKeybord() 
an-jorge