EDITTEXT设置密码与电话号码输入? (机器人) [英] Edittext set for password with phone number input? (android)

查看:133
本文介绍了EDITTEXT设置密码与电话号码输入? (机器人)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何得到一个EDITTEXT同时具有手机输入和隐藏的字符串的能力。我知道,

How do I get a Edittext with both a phone input and the ability to hide the string. I know that

android:inputType="textPassword"

隐藏的字符串,而

hides the string, while

android:inputType="phone"

弹出一个拨号盘界面。

brings up a dialpad interface.

如何将二者结合起来?

推荐答案

安卓密码是德precated,但AFAIK是唯一的,因为<$ C方式$ C>安卓inputType =手机| textPassword被忽略...

android:password is deprecated, but AFAIK is the only way because android:inputType="phone|textPassword" is ignored ...

<EditText
    android:id="@+id/EditText01"
    android:layout_height="wrap_content"
    android:layout_width="fill_parent"
    android:password="true"
    android:inputType="phone" />

这篇关于EDITTEXT设置密码与电话号码输入? (机器人)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆