0
 public OnKeyBoardHide()
{
edtName.setFocusable(false);
        edtDOB.setFocusable(false);
        edtNationality.setFocusable(false);
        edtPassportNo.setFocusable(false);
        edtIDNo.setFocusable(false);
        edtMobileNo.setFocusable(false);
}

I want to do something like this that as i press the back button to hide my soft keyboard and set foucus false

champion
  • 17
  • 1
  • 10
  • Maybe this helps [Howto capture the 'virtual keyboard show/hide' event in Android?](http://stackoverflow.com/questions/3793093/android-edittext-soft-keyboard-show-hide-event) – noev Apr 22 '16 at 12:02

1 Answers1

0

Possible this could help :

 this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
Nik Patel
  • 629
  • 7
  • 21