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++模塊