我正在尝试使此代码正常工作。它已作为检测软键盘上“完成”或“下一步”按钮的解决方案发布,但我收到错误“必须实现继承的抽象方法..onEditorAction..”
import android.widget.TextView.OnEditorActionListener;
textEdit5.setOnEditorActionListener(new OnEditorActionListener() {
public boolean onEditorAction(TextView arg0, int keycode, KeyEvent event) {
if(arg1 == KeyEvent.FLAG_EDITOR_ACTION){
btnSave.requestFocus();
return true;
}
return false;
});