的EditText在Android的InputType [英] InputType of EditText in Android

查看:108
本文介绍了的EditText在Android的InputType的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想有以下几点: - 数字键盘,应首先显示 - 但是,应该可以改变到文本的键盘和输入一些字母

I would like to have following: - number keyboard should be displayed first - but it should be possible to change to text keyboard and to type some letters.

我问几乎同样的问题,并接受一个答案。 的EditText在Android的 InputType

I've asked almost the same question and accepted an answer. InputType of EditText in Android

但现在我发现了一些奇怪的行为,设置 InputType :这是可以改变键盘输入文本,但它不可能键入一些文本

But now I found some strange behaviour, setting InputType to Number: it is possible to change keyboard to text type, but it's impossible to type some text.

任何想法,为什么它会发生_

Any Ideas, why does it happen_

有谁知道如何使用 TYPE_MASK_CLASS 作为输入类型?

Does anybody know how to use TYPE_MASK_CLASS as input type?

感谢您

推荐答案

您是对的,我没有发现任何问题的答案,除非你写你自己的键盘。
TYPE_MASK_CLASS是在键盘的发展掩盖阶级EditorInfo的。

You are right and I didn't find any answer to that except if you wrote your own keyboard.
TYPE_MASK_CLASS is for masking class of EditorInfo in keyboard development.

这篇关于的EditText在Android的InputType的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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