mETCommentContent.setOnEditorActionListener(new OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
if (actionId == EditorInfo.IME_ACTION_DONE) {
hideSoftInput();
}
return false;
}
});Android监听键盘上的确定键等
最新推荐文章于 2021-08-11 22:56:48 发布
本文详细介绍了如何使用mETCommentContent组件的onEditorActionListener方法,结合EditorInfo.IME_ACTION_DONE属性,实现文本输入框的事件监听与软键盘隐藏功能,提升用户体验。
1万+

被折叠的 条评论
为什么被折叠?



