Saturday, January 19, 2013

Hide soft keyboard


Hide soft keyboard  in edit text:

edit = (EditText) findViewById(R.id.txtedit);
InputMethodManager im = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
im.hideSoftInputFromWindow(edit.getWindowToken(), 0);

No comments:

Post a Comment