android设置编辑框不可输入

三个都要写,不写setKeyListener编辑框会有光标的影子
mEditText.setEnabled(false);
mEditText.setFocusable(false);
mEditText.setKeyListener(null);//重点
不设置addTextChangedListener,或设置为null

猜你喜欢

转载自blog.csdn.net/ShiXinXin_Harbour/article/details/108763483
今日推荐