新建或重命名自动弹出输入法

首先要添加包名:

import android.view.inputmethod.InputMethodManager;

然后加这两行:

InputMethodManager is = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);

is.toggleSoftInput(InputMethodManager.SHOW_FORCED,InputMethodManager.HIDE_IMPLICIT_ONLY);

posted @ 2013-06-24 19:31  时间的脚步  阅读(140)  评论(0编辑  收藏  举报