}
//关闭键盘
/*InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(ContentText.getWindowToken(), 0);*/
//关闭键盘
retractInputBox(ContentText);
private void retractInputBox(View view){
InputMethodManager imm = (InputMethodManager)view.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
if(imm.isActive()){
imm.hideSoftInputFromWindow(view.getApplicationWindowToken(), 0 );
}
}