android:hint 默认提示内容
来源:互联网 发布:吉尼佛摄影吧淘宝 编辑:程序博客网 时间:2024/05/21 05:21
看到过 一个输入框,还没有输入的时候,里面会写一些提示语 太常见啦。由于一直也没接触过做这些,也就一直没去了解是肿么实现的(然并卵,都是借口)。今天在项目中看到了。mark下~
android:hint="@string/xxx"
setHint(int)
对应的是:在输入框输入之前(为空)时,默认显示的提示信息。
<EditText android:id="@+id/connect_value" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="100dp" android:background="@drawable/edittext_default" android:hint="@string/connection_code" android:inputType="text" android:singleLine="true" />
0 0
- android:hint 默认提示内容
- 安卓开发中spinner 组件如何像EditText组件的android:hint="请输入快递单号"属性那样设置默认的提示内容
- android:hint属性(没有输入内容之前的提示内容)
- oracle提示(hint)
- oracle调优HINT提示
- Oracle Hint(提示)
- 【Delphi】Hint提示信息
- Oracle中hint提示
- Oracle Hint的用法(HINT提示)
- html input文本框 输入框提示(hint)内容的实现
- 注册表单文本框默认提示内容,选中提示消失
- 提示信息窗口tooltip hint
- ORACLE hint提示优化SQL
- oracle hint提示优化SQL
- ORACLE hint提示优化SQL
- hint提示的相关介绍
- /*+ 提示信息*/ 常用hint oracle
- /*+ 提示信息*/ 常用hint oracle
- hdu 2031 进制转换
- hdu 2032 杨辉三角
- hdu 2033 人见人爱A+B
- 基于数据库的C#用户登录程序
- 【UI布局优化】Android布局优化的几种方式
- android:hint 默认提示内容
- hdu 1509 Windows Message Queue (优先队列)
- hdu 1870 愚人节的礼物
- hdu 1873 看病要排队
- hdu 1702 ACboy needs your help again!
- system V信号量和Posix信号量
- websphere8 从安装到部署 测试集群应用程序 安装j2ee程序(非常详细)
- hdu 1518 Square(深搜+剪枝)
- hdu 1195 Open the Lock