135-1821-9792

android安卓edittext自动弹出数字键盘

		et.setFocusable(true);
		et.setFocusableInTouchMode(true);
		et.setInputType(EditorInfo.TYPE_CLASS_NUMBER); 
		Timer timer = new Timer();
		timer.schedule(new TimerTask()
		{
			public void run() 
			{
				InputMethodManager inputManager =(InputMethodManager)et.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
				inputManager.showSoftInput(et, 0);
			}
		}, 500);

网页名称:android安卓edittext自动弹出数字键盘
转载来源:http://kswsj.com/article/gjjoci.html

其他资讯



Copyright © 2009-2022 www.kswsj.com 成都快上网科技有限公司 版权所有 蜀ICP备19037934号