Hi This below code is use full for hide keyboard programatically when Activity start or Dialog show.
Just copy this below code as per your requirement in Activity or with in Dialog
InputMethodManager imputMM (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imputMM.hideSoftInputFromWindow(singleedittext.getWindowToken(),0);
Just copy this below code as per your requirement in Activity or with in Dialog
InputMethodManager imputMM (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imputMM.hideSoftInputFromWindow(singleedittext.getWindowToken(),0);
No comments:
Post a Comment