<EditText 
    android: 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:digits="1234567890." 
    android:singleLine="true"  
    /> 
<EditText
 android:
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"
 android:digits="1234567890."
 android:singleLine="true"
 />
 
再者代码里面设置输入法类型:

[java] editText.setInputType(EditorInfo.TYPE_CLASS_PHONE); 
editText.setInputType(EditorInfo.TYPE_CLASS_PHONE);
则如果该EditText获得焦点,会弹出数字输入法的模拟键盘

 android EditText设置弹出数字输入法键盘
 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案