久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

帶有 android:hint 的 Android EditText 密碼

Android EditText for password with android:hint(帶有 android:hint 的 Android EditText 密碼)
本文介紹了帶有 android:hint 的 Android EditText 密碼的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

限時(shí)送ChatGPT賬號(hào)..

剛剛注意到 android:password 已被棄用,我們應(yīng)該使用 android:inputType.通過(guò)在我的 xml 中設(shè)置來(lái)試驗(yàn)它

Just noticed that android:password has been deprecated, and we should be using android:inputType. Was experimenting with it by setting in my xml

android:inputType="textPassword" 

確實(shí)是這樣的

android:password="true" 

對(duì)于 EditText,但似乎如果我使用 android:inputType,android:hint 將不起作用.EditText 將為空白.使用 android:password 和 android:hint 時(shí)沒(méi)有這樣的問(wèn)題.我在這里遺漏了一些關(guān)于 android:inputType 的內(nèi)容嗎?

for EditText, but it seems that if I use android:inputType, android:hint will not work. The EditText will be blank. There is no such issues when using android:password with android:hint. Am I missing something here about android:inputType?

推薦答案

剛剛偶然發(fā)現(xiàn)了答案.android:inputType="textPassword" 確實(shí)適用于 android:hint,與 android:password 相同.唯一的區(qū)別是當(dāng)我使用 android:gravity="center" 時(shí),如果我使用的是 android:inputType,提示將不會(huì)顯示.結(jié)案!

Just stumbled on the answer. android:inputType="textPassword" does work with android:hint, same as android:password. The only difference is when I use android:gravity="center", the hint will not show if I'm using android:inputType. Case closed!

這篇關(guān)于帶有 android:hint 的 Android EditText 密碼的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Cut, copy, paste in android(在android中剪切、復(fù)制、粘貼)
android EditText blends into background(android EditText 融入背景)
Change Line Color of EditText - Android(更改 EditText 的線條顏色 - Android)
EditText showing numbers with 2 decimals at all times(EditText 始終顯示帶 2 位小數(shù)的數(shù)字)
Changing where cursor starts in an expanded EditText(更改光標(biāo)在展開(kāi)的 EditText 中的開(kāi)始位置)
EditText, adjustPan, ScrollView issue in android(android中的EditText,adjustPan,ScrollView問(wèn)題)
主站蜘蛛池模板: 久热99| 亚洲一区二区免费 | 日韩精品一区二区三区免费视频 | 日本视频免费 | 亚洲精品福利视频 | 亚洲怡春院 | 精品久久久久久久久久久久久 | 午夜美女福利视频 | 久久久久久久网 | 久久久久久久国产精品 | 深夜福利网| 国产精品一区在线 | 久久久久久久91 | 香蕉视频在线播放 | 中文字幕免费在线观看 | 欧美综合网| 成人看 | 香蕉视频一区二区三区 | 国产又粗又猛 | 天天摸天天操 | 亚洲黄色在线视频 | 久热综合 | 国产黄在线观看 | 日韩午夜激情 | 韩日精品视频 | 日韩精品在线观看视频 | 可以免费看黄的网站 | 69视频在线观看 | 免费的一级片 | av不卡在线 | 三级网站在线 | 欧美性猛交xxxx黑人猛交 | 欧美日韩精品一区二区在线播放 | 亚洲毛片在线 | 欧美日韩黄色片 | 一区二区三区高清 | 成人av一区二区三区在线观看 | 午夜免费时刻 | 中文久久乱码一区二区 | 黄色草逼视频 | 亚洲综合在线播放 |