如何显示在Android的一个EditText数字键盘? [英] How do I show the number keyboard on an EditText in android?

查看:125
本文介绍了如何显示在Android的一个EditText数字键盘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我基本上只是想尽快切换到数字键盘模式有一定的EditText具有焦点。

I just basically want to switch to the number pad mode as soon a certain EditText has the focus.

推荐答案

您可以配置一个<一个href="http://developer.android.com/reference/android/R.styleable.html#Searchable%5FinputType"><$c$c>inputType为您的<一个href="http://developer.android.com/reference/android/widget/EditText.html"><$c$c>EditText:

You can configure an inputType for your EditText:

<EditText android:inputType="number" ... />

这篇关于如何显示在Android的一个EditText数字键盘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆