输入电话号码的编辑文本设置密码? (安卓)

2024-04-06

如何获得具有电话输入和隐藏字符串功能的 Edittext。我知道

android:inputType="textPassword"

隐藏字符串,同时

android:inputType="phone"

调出拨号盘界面。

如何将两者结合起来?


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" />
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

输入电话号码的编辑文本设置密码? (安卓) 的相关文章

随机推荐