How to set editable true/false EditText in Android programmatically?

前端 未结 12 1227
予麋鹿
予麋鹿 2020-12-09 02:04

We can set editable property of EditText in XML layout but not programatically, but there is no setEditable() method!

If EditText

12条回答
  •  醉话见心
    2020-12-09 02:26

    I did it in a easier way , setEditable and setFocusable false. but you should check this.

    How to replicate android:editable="false" in code?

提交回复
热议问题