InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imm.showSoftInput(Search_client,
InputMethodManager.SHOW_IMPLICIT);
答案 0 :(得分:0)
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
显示键盘
public void ShowKeyboard(View view){
imm.showSoftInput(view.getWindowToken(), InputMethodManager.SHOW_IMPLICIT);
}
隐藏键盘
public void HideKeyboard(View view){
imm.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_IMPLICIT_ONLY);
}