I want to display an EditText
which will be edited mostly by selecting parts of it and pressing buttons to insert new values. (The values are long hex strings which I don't want the user to have to type.) Therefore, I want to suppress the display of the soft keyboard unless the user deliberately calls it up.
This question describes almost exactly the same requirement, but the accepted answer does not work on Android 5.1. When the input mode is changed to InputType.TYPE_NULL
, the EditText
disables all editing functionality, not just the soft keyboard. There's no cursor, no click-drag selection, etc.
Overriding onCheckIsTextEditor()
as suggested in this answer behaves the same way.
Is there any way to accomplish this on Android 5?