Android的软键盘显示的数字首先查看 [英] Android soft keyboard show numbers view first

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

问题描述

我有我的应用程序的登录屏幕,接受CPF作为登录(CPF是一个唯一的数字标识,每一个巴西公民都有,如:10546819546),但它也可以接受护照号码作为登录,而这些可能它字母。

I have a login screen on my app which accepts a CPF as login (CPF is an unique number identification that every Brazilian citizen have, e.g: 10546819546), but it can also accept passport numbers as the login, and these may have letters on it.

我的问题是我想要的键盘,当它弹出,以示默认字母表中的一个数字前/符号说法。更改INPUTMETHOD手机或号码不解决我的问题,因为正如我所说,登录可能包含字母。

My problem is that I want the keyboard, when it pops up, to show to number/symbols "view" before the default alphabet one. Changing the inputMethod to phone or number does not solve my problem, because as I said, the login may contain letters.

我已经看到了一些解释,问题有点类似我的,但所有的人要么没解决我的问题,或者是太过于复杂。

I've seen some explanations to questions somewhat similar to mine but all of them either didn't solve my problem or it was too overcomplicated.

这仅仅是一个小的调整略有改善用户体验和招待我开发的应用程序,因此,如果解决方案是像覆盖默认的键盘,使自定义组件等,我就不要管它。

This is merely a small adjust to slightly improve user experience and entertain me developing the app, so if the solution is something like "override the default keyboard, make a custom component" etc, I'll just leave it alone.

TL; DR:我想要的字母一前显示数字/符号软键盘

TL;DR: I want to show the number/symbol soft keyboard before the letters one.

推荐答案

不幸的是,当涉及到软键盘,你有点在任何人制造一个用户都有自己的设备设置为怜悯。设备的许多前来pre-装载并默认为键盘Swype输入。但是,许多人都通过设备的制造商所做的软键盘。它它给谁创造了它,决定键盘如何反应到的android:inputType下您传递给它。这可能是一些的人那里现在实际已的行为,你正在寻找,当你将其设置为号码或手机。我刚刚检查出来我的搭档,结果发现,这是一样的你既号码和电话提供没办法输入字母。

Unfortunately when it comes to the soft keyboard you are somewhat at the mercy of whoever made the one the user has their device set to. Lots of devices come pre-loaded and defaulted to the swype keyboard. But many others have soft keyboards that were made by the manufacturer of that device. It it up to whoever created it to decide how the keyboard reacts to the android:inputType that you pass to it. It is possible that some of the ones out there right now actual have the behavior you are looking for when you set them to number or phone. I just checked it out on my sidekick and found that it was the same as yours both number and phone provided no way to input letters.

这篇关于Android的软键盘显示的数字首先查看的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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