0

I was expecting something like editText.setInputType(InputType.TYPE_NONE), but there is no such variable as TYPE_NONE. Can any body help me. It might be a simple question. I am using Android 2.1.

Muhammad Nabeel Arif
  • 19,140
  • 8
  • 51
  • 70

1 Answers1

2

You need to use TYPE_NULL.

As per doc: Set the type of the content with a constant as defined for inputType. This will take care of changing the key listener, by calling setKeyListener(KeyListener), to match the given content type. If the given content type is TYPE_NULL then a soft keyboard will not be displayed for this text view. Refer this link.

kosa
  • 65,990
  • 13
  • 130
  • 167