如何禁止在 Android 中的 EditText
字段中输入内容?
最佳答案
您可以使用 EditText.setFocusable(false)
禁用编辑EditText.setFocusableInTouchMode(true)
启用编辑;
关于android - 如何在 Android 中禁用 EditText,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5879250/
如何禁止在 Android 中的 EditText
字段中输入内容?
最佳答案
您可以使用 EditText.setFocusable(false)
禁用编辑EditText.setFocusableInTouchMode(true)
启用编辑;
关于android - 如何在 Android 中禁用 EditText,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5879250/