三个都要写,不写setKeyListener编辑框会有光标的影子
mEditText.setEnabled(false);
mEditText.setFocusable(false);
mEditText.setKeyListener(null);//重点
不设置addTextChangedListener,或设置为null
android设置编辑框不可输入
最新推荐文章于 2022-10-19 18:19:02 发布
三个都要写,不写setKeyListener编辑框会有光标的影子
mEditText.setEnabled(false);
mEditText.setFocusable(false);
mEditText.setKeyListener(null);//重点
不设置addTextChangedListener,或设置为null