就像textview那样,因为我在recyclerview中用,有的能输入,有的不能输入如果我设置setKeyListener(null),需要点击两次才响应点击事件,而不是点击就相应如果设置setEnabled(false),点击都不会响应了应该怎么弄啊
闭关修行中......
Can be set in code
editText.setFocusable(false);
or set in XML
android:focusable="false"
That’s it, refer to How to make edit text not editable but clickable in JAVA
Setting setEnabled(false) will call setClickable(false), so it cannot respond to click events
android:editable="false"
Can be set in code
or set in XML
That’s it, refer to How to make edit text not editable but clickable in JAVA
Setting setEnabled(false) will call setClickable(false), so it cannot respond to click events
android:editable="false"