久久久久久久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問題)
主站蜘蛛池模板: 欧美午夜精品 | 热久久久 | 黄视频免费观看 | www中文字幕| 一本一道久久a久久精品综合 | 欧美日韩电影一区二区 | 一区二区三区免费观看 | 成人免费在线 | 全免费a级毛片免费看视频免 | 亚洲三区在线观看 | 色综合区| 黄色片免费在线观看 | 国产精品久久久亚洲 | 国产精品99久久久久久久久久久久 | 日韩在线播放一区 | 日日摸夜夜爽人人添av | 黄片毛片 | 一区精品视频 | 日韩精品国产精品 | www.久| 中文久久| 久草网站 | 中文字幕欧美日韩 | 在线视频一区二区 | 国产欧美日韩一区二区三区在线 | 日本不卡一区 | 国产电影一区二区在线观看 | 成人在线黄色 | 日本h片在线观看 | 色婷婷国产精品 | 日韩福利一区 | 激情久久网 | 国产精品成人69xxx免费视频 | 日韩午夜影院 | 欧美一级免费 | 黄色一级大片在线观看 | 国产成人精品一区二 | 亚洲精品久久久久久宅男 | 亚洲国产网站 | 99精品一区二区三区 | 91视视频在线观看入口直接观看 |