Is there any way to show or hide the soft keyboard instantly, without any animation? In Cyanogenmod 10 it displays with a fading animation.
Asked
Active
Viewed 4,692 times
7
-
Possible duplicate http://stackoverflow.com/questions/7200281/programatically-hide-show-android-soft-keyboard – saum22 Nov 02 '12 at 08:03
-
What did you find out here? I am trying to get a callback after the hide keyboard animation finishes. – B W Oct 24 '16 at 21:57
1 Answers
-4
try like this
InputMethodManager imm = (InputMethodManager)getSystemService(Context.
INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);
imm.showSoftInputFromInputMethod(getCurrentFocus().getWindowToken(), 0);

Sanket Kachhela
- 10,861
- 8
- 50
- 75