0

我在屏幕上有一个编辑文本。我想做某事按钮完成。在 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;
        }
    });

提前致谢, 拉卢卡

4

1 回答 1

0

AFAIK,IME 操作在设备供应商之间不一致。我的建议是保留您的听众,并在您的设计中提供一个按钮,以防听众不触发。

于 2011-10-11T14:09:34.790 回答