How to disable the keyboard when I click on EditText?
问题 Hello I would like to do the next thing : when I click on an EditText I would like to hide the keyboard but seeing the cursor. I tried to do this : editText_test!!.setCursorVisible(false); editText_test!!.setFocusableInTouchMode(false); editText_test!!.setFocusable(true); Obviously I don't see the keyboard but I can't click on my EditText. How can I do this ? To be precise I am using Kotlin. Thank you ! 回答1: If you have minimum API >= 21 : editText_test!!.showSoftInputOnFocus = false To deal