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://www.fjjierui.cn/article/gjjoci.html

其他资讯



Copyright © 2009-2022 www.fjjierui.cn 青羊区广皓图文设计工作室(个体工商户)达州站 版权所有 蜀ICP备19037934号