EditText设置失去焦点和重新获取焦点

1.失去焦点

editText.setFocusable(false);

2.重新获取焦点

editText.setFocusable(ture);

editText.setFocusableInTouchMode(true);

editText.requestFocus();

发布了33 篇原创文章 · 获赞 5 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/hjiangshujing/article/details/50955651
今日推荐