Why can I type into a disabled EditText?

后端 未结 8 1715
时光取名叫无心
时光取名叫无心 2021-01-11 19:52

If I disable an EditText widget using

editText.setEnabled(false);

I can still type into it using the on-screen input method (in

8条回答
  •  庸人自扰
    2021-01-11 20:10

    I notice that you can't activate the on-screen keyboard by tapping on a disabled EditText, and also the DEL key doesn't work, so this looks like a bug to me. I filed it as issue 2771 in the Android issue tracker.

提交回复
热议问题