//打开软键盘
private void openKeyboard() {
Timer timer = new Timer();
timer.schedule(new TimerTask() {
@Override
public void run() {
InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);
imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);
}
}, 500);
}
//关闭软键盘
private void closeKeyboard() {
InputMethodManager imm = (InputMethodManager) getSystemService(mContex.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(et_searchword_word.getWindowToken(), 0);
}
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http://www.e1idc.net