Chinaunix首页 | 论坛 | 博客
  • 博客访问: 391804
  • 博文数量: 93
  • 博客积分: 3006
  • 博客等级: 少校
  • 技术积分: 998
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-02 17:23
文章分类

全部博文(93)

文章存档

2011年(12)

2010年(38)

2009年(20)

2008年(23)

分类: Java

2010-12-27 20:50:46

设置EditText为空时提示信息

Java代码 

1.      setHint(CharSeqsuence hint)   

2.      Sets the text to be displayed when the text of the TextView is empty.  

 XML里描叙可以用android:hint

Xml代码 

1.      android:hint="提示"  

阅读(1015) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~