Add these lines to your Button function, and the panel will disappear at the moment you click!
InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE); if(imm != null) imm.hideSoftInputFromWindow(getWindow().getDecorView().getWindowToken(), 0);
沒有留言:
張貼留言