Android hide soft keyboard code

Working code for hiding the soft keyboard in Android :

getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);

This can be used to suppress the keyboard until the user actually touched the edittext view.

No comments :

Post a Comment

Your Comment and Question will help to make this blog better...