设立EditText为空时提示信息

设置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="提示"
?

?