TextView.OnEditorActionListener()的Android错误

时间:2015-07-10 15:59:02

标签: android-studio

如何修复此错误?该方法不会覆盖其supeprclass中的方法,并且错误出现在[TextView.OnEditorActionListener]匿名类中。

此错误始终在TextView.OnEditorActionListener()中显示@overrride错误和错误 - [并且在editoraction中存在相同的错误]。

private EditText mUserName;
private EditText mPassword;
private Button mButton;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.mlogin_page);

    mUserName = (EditText) findViewById(R.id.usernameet);
    mUserName.setOnEditorActionListener(new TextView.OnEditorActionListener(){
        @Override

    public boolean onEditiraction(TextView textView, int i, KeyEvent keyEvent)
        {
            if (i == EditorInfo.IME_ACTION_NEXT || i == EditorInfo.IME_ACTION_DONE)
            {
                mPassword.requestFocus();
            }
            return false;
        }

    });



    mPassword = (EditText) findViewById(R.id.passwordet);
    mButton = (Button) findViewById(R.id.signinbtn);

0 个答案:

没有答案