作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我需要一个 PIN 上的数字键盘 EditText
。我尝试使用
android:inputType="number|textPassword"
这会调出数字键盘,但字符不是密码字符。
如何在 EditText
View 中获得显示密码字符的数字键盘?
该应用程序在 2.2 及更高版本上运行。
最佳答案
你应该看看这里: Edittext set for password with phone number input? (android)
它指出android:password
已被弃用,但这是唯一的方法,因为 android:inputType="phone|textPassword"
被忽略了......
<EditText
android:id="@+id/EditText01"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:password="true"
android:inputType="phone"
/>
关于android - 如何在android中获取密码密码键盘?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12900795/
我是一名优秀的程序员,十分优秀!