首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

设立EditText为空时提示信息

2012-09-17 
设置EditText为空时提示信息?像这种显示效果,用EditText的setHint方法设置。??setHint(CharSequence hint)

设置EditText为空时提示信息


设立EditText为空时提示信息

?

像这种显示效果,用EditText的setHint方法设置。

?

?

setHint(CharSequence hint) Sets the text to be displayed when the text of the TextView is empty.

?

?

?在XML里描叙可以用android:hint

?

android:hint="提示"
?

?

热点排行