Timer timer = new Timer();
timer.schedule(new TimerTask(){
@Override
public void run() {
InputMethodManager m = (InputMethodManager)
edit.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
m.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);
Toast.makeText(Key.this, "show", Toast.LENGTH_SHORT).show();
}
}, 1000);
键盘自动弹出
最新推荐文章于 2021-05-28 19:07:40 发布