请问一下,怎么让软键盘的回车键的文字变为“完成”?

解决方案 »

  1.   

    这个要看你使用的输入法啦,如果是系统自带的输入法,应该在packages\inputmethods下边的res中修改
      

  2.   

    http://blog.163.com/hero_213/blog/static/398912142011292184991/
    这个就可以
      

  3.   

    不好意思,发错了。
    完成需要自己根据当前编辑框的状态来自己改变。
    参考sdk里sample中自带的softkeyboard示例,
    在onStartInput函数里判断当前的编辑框属性,在这个函数最后调用了setImeOptions
    这里面做了“完成”,“下一步”这样按钮文字的改变处理。
    参考setImeOptions函数提示:
       /**
         * This looks at the ime options given by the current editor, to set the
         * appropriate label on the keyboard's enter key (if it has one).
         */