android EditText 设置弹出数字输入法键盘
首先设置只能输入数字:
- <EditText
- android:id="@+id/edit_digit_input"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:digits="1234567890."
- android:singleLine="true"
- />
再者代码里面设置输入法类型:
- editText.setInputType(EditorInfo.TYPE_CLASS_PHONE);
则如果该EditText获得焦点,会弹出数字输入法的模拟键盘

最后更新:2017-04-04 07:03:42
上一篇:
Oracle中的常用权限视图
下一篇:
删除文件时排除特定文件
OpenCv 绘图函数
计算机网络基本概念趣解
Installation and Operation Guide for BigBench on MaxCompute Benchmarking Suite
Android 标签控件
云服务器 ECS 建站教程:ECS搭建Microsoft SharePoint 2016
好东西来了!2017云栖大会300份重磅资料下载
CloudSort 阿里云 2016 夺冠,性价比高出 AWS 保持的世界记录三倍
浅析医疗产品公司对大数据的应用
Struts2中的<s:action>标签
通过gr-modtool在gnuradio中编写自己的C++模块