本文介紹了在android中以編程方式設(shè)置編輯文本提示?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
有沒有辦法用 java 設(shè)置在 android edittext 中顯示的文本提示?我希望我的應(yīng)用能夠在不同時(shí)間在編輯文本中顯示不同的內(nèi)容,提前致謝
is there a way to set the text hint displayed inside of an android edittext with java? I would like for my app to be able to display different things in the edittext at different times, thanks in advance
推薦答案
你試過setHint?
myTextView.setHint("My conditional hint");
希望對(duì)你有幫助..
這篇關(guān)于在android中以編程方式設(shè)置編輯文本提示?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!