android 安卓edittext自动弹出数字键盘
et.setFocusable(true);et.setFocusableInTouchMode(true);et.setInputType(EditorInfo.TYPE_CLASS_NUMBER);Timertimer=newTimer();timer.schedule(newTimerTask(){publicvoidrun(){InputMethodManagerinputManager=(InputMethodManager)et.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);inputManager.showSoftInput(et,0);}},500);
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。