[英]Show numeric keyboard with alphanumeric switching option
Rather than choosing the type of keyboard consider setting the input type in the editText via:与其选择键盘类型,不如考虑通过以下方式在 editText 中设置输入类型:
android:inputType="XXXXXXX"
(Doing this can change the type of keyboard that appears when you want to provide input to the editText) (这样做可以更改当您想向 editText 提供输入时出现的键盘类型)
Replace the XXXXX text with any of these values according to your use case.根据您的用例,将 XXXXX 文本替换为这些值中的任何一个。
You can also add the android:imeOptions="XXXXXX"
attribute to your editText.您还可以将android:imeOptions="XXXXXX"
属性添加到您的 editText。 Replace XXXXXX with any of these values.将 XXXXXX 替换为这些值中的任何一个。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.