Hello, mr. JMP , i got this code are more easy to control soft keyboard
public void HideSoftInput
(View _view
) { InputMethodManager imm
= (InputMethodManager
) controls.
activity.
getSystemService(Context.
INPUT_METHOD_SERVICE); if (imm == null) {
return;
}
imm.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0);
//imm.hideSoftInputFromWindow(_view.getWindowToken(), 0);
}
public void ShowSoftInput() {
InputMethodManager imm
= (InputMethodManager
) controls.
activity.
getSystemService(Context.
INPUT_METHOD_SERVICE); if (imm == null) {
return;
}
imm.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT,0);
//imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0);
//imm.toggleSoftInput(InputMethodManager.RESULT_SHOWN, 0);
}
Thank You!