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

帶有 android:hint 的 Android EditText 密碼

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

問題描述

限時送ChatGPT賬號..

剛剛注意到 android:password 已被棄用,我們應該使用 android:inputType.通過在我的 xml 中設置來試驗它

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" 

確實是這樣的

android:password="true" 

對于 EditText,但似乎如果我使用 android:inputType,android:hint 將不起作用.EditText 將為空白.使用 android:password 和 android:hint 時沒有這樣的問題.我在這里遺漏了一些關于 android:inputType 的內容嗎?

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?

推薦答案

剛剛偶然發現了答案.android:inputType="textPassword" 確實適用于 android:hint,與 android:password 相同.唯一的區別是當我使用 android:gravity="center" 時,如果我使用的是 android:inputType,提示將不會顯示.結案!

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!

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

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

相關文檔推薦

Cut, copy, paste in android(在android中剪切、復制、粘貼)
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 位小數的數字)
Changing where cursor starts in an expanded EditText(更改光標在展開的 EditText 中的開始位置)
EditText, adjustPan, ScrollView issue in android(android中的EditText,adjustPan,ScrollView問題)
主站蜘蛛池模板: 亚洲国产精品suv | 日韩国产欧美视频 | 一区在线观看 | 国产精品国产a | 成人福利视频 | 国产9久 | 欧美久久天堂 | 欧美在线激情 | 欧美13videosex性极品 | 亚州影院 | 国产精品一区二区福利视频 | 日韩精品一区二区三区高清免费 | 岛国视频 | 国产精品国产三级国产aⅴ浪潮 | 精品久久久久久亚洲综合网 | 在线观看黄色电影 | 中文在线一区 | 精品在线一区二区 | 不卡在线一区 | 狠狠草视频 | 超碰在线人人 | 久久久久久久一区二区三区 | 亚洲最新在线视频 | 国产精品久久久久久吹潮 | 羞视频在线观看 | 亚洲电影一区二区三区 | 国产日韩欧美在线观看 | 国产精品视频一二三区 | 精品中文字幕在线 | av毛片| 欧美一级淫片免费视频黄 | 麻豆久久久久久久久久 | 国产精品久久久久久福利一牛影视 | 国产免费a视频 | 久久久久国产一级毛片高清网站 | www国产成人免费观看视频,深夜成人网 | 一级片免费在线观看 | 欧美高清成人 | 亚洲视频免费在线播放 | 天天操天天干天天爽 | 在线免费观看a级片 |