D
Size: a a a
D
Я
JF
С
L
M
Я
ES
ИЧ
D
M
D
M
L
YN
ИЧ
ИЧ
Я
public class InputMethodManagerCompat {
public static InputMethodManager peekInstance(Context context) {
return (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
}
public static void hideSoftInput(View view) {
InputMethodManager imm = InputMethodManagerCompat.peekInstance(view.getContext());
if (imm != null) {
imm.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
}
}
public static void showSoftInput(View view) {
InputMethodManager imm = InputMethodManagerCompat.peekInstance(view.getContext());
if (imm != null) {
imm.showSoftInput(view, InputMethodManager.SHOW_FORCED);
}
}
}