自动弹软键盘
时间:2010-10-19 来源:fly123456789
Timer timer = new Timer();
timer.schedule(new TimerTask()
{
public void run() {
InputMethodManager imm = (InputMethodManager)mEmailView.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);
// Toast.makeText(AccountSetupBasics.this, "show", Toast.LENGTH_SHORT).show();
}
timer.schedule(new TimerTask()
{
public void run() {
InputMethodManager imm = (InputMethodManager)mEmailView.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);
// Toast.makeText(AccountSetupBasics.this, "show", Toast.LENGTH_SHORT).show();
}
}, 1000);
//AccountSetupBasics.this 当activity
//1000是定时器时间
相关阅读 更多 +