Whenever I click in the EditText
the Android keyboard popup window appears, but I don't want the keyboard to pop up.
I want to permanently hide the android keyboard popup for my current application.
How can I do this?
Whenever I click in the EditText
the Android keyboard popup window appears, but I don't want the keyboard to pop up.
I want to permanently hide the android keyboard popup for my current application.
How can I do this?
These two line should do what you want:
Solution can be found here :
Try to add this in yout
onCreate()
method.Not tested but It Should work!!
Works for all Android versions.
In your XML use the property
android:textIsSelectable="true"
And, in your Java class:
In Kotlin:
In your xml file you can use this:
Setting the flag
textIsSelectable
totrue
disables the soft keyboard.You can set it in your xml layout like this:
Or programmatically, like this:
The cursor will still be present, you'll be able to
select/copy/cut/paste
but the soft keyboard will never show.