android - PreferenceActivity 屏幕中的密码?

标签 android

我正在实现 PreferenceActivity,它会要求用户输入用户名和密码。 我将使用 EditTextPreference 作为用户名,但我需要什么元素才能有“密码输入”,这将隐藏输入的数据(即更改为点)?

最佳答案

因为 android:passworddeprecated .您应该改用 inputType :

android:inputType="textPassword"

关于android - PreferenceActivity 屏幕中的密码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6872609/

相关文章:

android - 带有 jquery 超大的 android 上的跳动背景图像

android - 窗口 > AVD 管理器在我的 Eclipse 中不存在

android - 优先两个应用在android上使用bootcompletedReceiver

android - 将视频从android流式传输到桌面

android - 每当我单击按钮/JetPack/Kotlin 时,在可组合函数中推送动画以重新开始

Android - OAuthException - 我不断收到 : "An active access token must be used to query information about the current user"

android - QtCreator android 不会部署

java - Android,使用 "provided project "时出现 ClassNotFoundException 或使用 "compile project"时出现 IllegalArgumentException : already added ,

安卓蓝牙服务名称

android - 如何使用 Kivy for Android 以 root 身份读取/写入文件?