How to show/hide the soft keyboard without any animation (e.g. fade) in Java?

Is there any way to show or hide the soft keyboard instantly, without any animation? In Cyanogenmod 10 it displays with a fading animation.


像这样尝试

InputMethodManager imm = (InputMethodManager)getSystemService(Context.
                                                    INPUT_METHOD_SERVICE);
    imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);
    imm.showSoftInputFromInputMethod(getCurrentFocus().getWindowToken(), 0);
链接地址: http://www.djcxy.com/p/93340.html

上一篇: 活动开始时显示软键盘

下一篇: 如何在Java中没有任何动画(例如淡入淡出)显示/隐藏软键盘?