Friday, 26 February 2021

hiding keyboard only makes keyboard semi-transparent/faded

I'm hiding a keyboard from a DialogFragment using this code...

etCustomerLookup.hideKeyboard()

Extension...

fun View.hideKeyboard() {
    val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
    imm.hideSoftInputFromWindow(windowToken, 0)
}

This is what I'm seeing....

enter image description here

Update: Even after commenting out the hideKeyboard() line, it changes nothing, still get the faded keyboard. Another note - all of the buttons "under" the faded keyboard are still accessible.



from hiding keyboard only makes keyboard semi-transparent/faded

No comments:

Post a Comment