软键盘工具类
/**
* 隐藏软件盘
* @param activity
*/
public static void hideKeyboard(Activity activity) {
InputMethodManager imm = (InputMethodManager) activity.getSystemService(Context
.INPUT_METHOD_SERVICE);
// 隐藏软键盘
imm.hideSoftInputFromWindow(activity.getWindow().getDecorView().getWindowToken(), 0);
}