public void onClickCancel(View v) {
   hideKeyboard();
   textNickName.setText(loggedUser.getNickName());
   textEmail.setText(loggedUser.getUsername());
   cancelButton.requestFocus();
   RelativeLayout myLayout = (RelativeLayout) findViewById(R.id.activity_user_profile_root);
   myLayout.requestFocus();
   cancelButton.setVisibility(View.GONE);
 }
Пример #2
0
  void init() {

    ed_id = (EditText) findViewById(R.id.editText_ID);
    ed_pw = (EditText) findViewById(R.id.editText_PW);
    Til_id = (TextInputLayout) findViewById(R.id.Til_id);
    Til_id.setHint("아이디");
    Til_pw = (TextInputLayout) findViewById(R.id.Til_pw);
    Til_pw.setHint("패스워드");
    ed_id.clearFocus();
    rel = (RelativeLayout) findViewById(R.id.MainActivityRelativeLayout);
    rel.requestFocus();
  }
Пример #3
0
 @Override
 public void onAnimationEnd(Animation animation) {
   mNextBtnLayout.requestFocus();
 }
 @Override
 public void onResume() {
   super.onResume();
   edSearch.clearFocus();
   rlRoot.requestFocus();
 }
Пример #5
0
 private void hideKeyboard(View view) {
   InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
   imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
   RLParent.requestFocus();
 }