本文介紹了Edittext 為帶有電話號(hào)碼輸入的密碼設(shè)置?(安卓)的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!
問題描述
如何獲得具有電話輸入和隱藏字符串功能的 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"
隱藏字符串,而
android:inputType="phone"
調(diào)出撥號(hào)盤界面.
如何將兩者結(jié)合起來(lái)?
推薦答案
android:password
已棄用,但 AFAIK 是唯一的方法,因?yàn)?android:inputType="phone|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" />
這篇關(guān)于Edittext 為帶有電話號(hào)碼輸入的密碼設(shè)置?(安卓)的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!