@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); txtUser.setOnEditorActionListener(this); txtPwd.setOnEditorActionListener(this); presenter.initView(); }
@Override public void onDestroyView() { super.onDestroyView(); presenter.onDestroyView(); }
@OnClick(R.id.btnLogin) void login() { btnLogin.setEnabled(false); presenter.login(txtUser.getText().toString(), txtPwd.getText().toString()); }