如何打开数字键盘上时,点击的EditText? [英] How to open numeric keyboard when click on EditText?

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

问题描述

我看了其他几个帖子和使用input.setInputType(TYPE_NUMBER_FLAG_DECIMAL);不打开键盘,但它不是数字键盘

I read several other posts and using input.setInputType(TYPE_NUMBER_FLAG_DECIMAL); does open the keyboard but its not the numeric keyboard

推荐答案

添加机器人:inputType =号以你的EditText在你的XML,它会自动打开数字键盘时,你会点击里面EditText上。

add android:inputType="number" to your edittext in your xml, it will automatically open numeric keyboard when you will click inside edittext.

这篇关于如何打开数字键盘上时,点击的EditText?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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