How to Prevent Keyboard appearing for EditText that is not enabled

前端 未结 6 755

My activity has an EditText which is supposedly not editable until user clicks on edit button for the screen.

I did edit.setEnabled(false)

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-05 16:33

    in your layout file add the attribute to your EditText

    android:editable="false"

提交回复
热议问题