Ron*_*nie 5 passwords android numbers android-edittext
我需要一个PIN码上的数字键盘EditText.我试过用
android:inputType="number|textPassword"
Run Code Online (Sandbox Code Playgroud)
这会打开数字键盘,但字符不是密码字符.
如何获得一个显示密码字符的数字小键盘EditText?
该应用程序运行在2.2及以上.
您应该看看这里: Edittext set for password with phone number input? (安卓)
它声明
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"
/>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7150 次 |
| 最近记录: |