我在屏幕上有一个编辑文本。我想做某事按钮完成。在 google nexus s 和 samsung Galaxy 上运行完美。在键盘上,按钮显示为“完成”文本。在 htc 上,该按钮没有出现,它出现输入 simbol。我尝试在代码或子句中添加广告来处理事件输入,但它没有响应
edit1.setImeOptions(EditorInfo.IME_ACTION_DONE);
edit1.setOnEditorActionListener(new OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView arg0, int arg1, KeyEvent arg2) {
if (arg1 == EditorInfo.IME_ACTION_DONE) {
chercher.performClick();
}
return true;
}
});
提前致谢, 拉卢卡