隐藏键盘
Method setShowSoftInputOnFocus = null;
try {
setShowSoftInputOnFocus = ed.getClass().getMethod(
"setShowSoftInputOnFocus", boolean.class);
setShowSoftInputOnFocus.setAccessible(true);
setShowSoftInputOnFocus.invoke(ed, false);
} catch (SecurityException e) {
e.printStackTrace();
} catch (NoSuchMethodException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
InputMethodManager imm = (InputMethodManager) mActivity.getSystemService(INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(llTitleLeft.getWindowToken(), 0);