android:hintText与android:inputType详解
来源:互联网 发布:vr funhouse 源码 编辑:程序博客网 时间:2024/06/07 03:44
EditText继承关系:View-->TextView-->EditText
EditText的属性很多,这里介绍几个:
android:hint="请输入数字!"//设置显示在空间上的提示信息
android:numeric="integer"//设置只能输入整数,如果是小数则是:decimal
android:singleLine="true"//设置单行输入,一旦设置为true,则文字不会自动换行。
android:password="true"//设置只能输入密码
android:textColor = "#ff8c00"//字体颜色
android:textStyle="bold"//字体,bold, italic, bolditalic
android:textSize="20dip"//大小
android:capitalize = "characters"//以大写字母写
android:textAlign="center"//EditText没有这个属性,但TextView有,居中
android:textColorHighlight="#cccccc"//被选中文字的底色,默认为蓝色
android:textColorHint="#ffff00"//设置提示信息文字的颜色,默认为灰色
android:textScaleX="1.5"//控制字与字之间的间距
android:typeface="monospace"//字型,normal, sans, serif, monospace
android:background="@null"//背景,这里没有,指透明
android:layout_weight="1"//权重,控制控件之间的地位,在控制控件显示的大小时蛮有用的。
android:textAppearance="?android:attr/textAppearanceLargeInverse"//文字外观
android:layout_gravity="center_vertical"//设置控件显示的位置:默认top,这里居中显示,还有bottom
android:gray="top" //多行中指针在第一行第一位置android:autoText //自动拼写帮助
android:autoLink=”all” //设置文本超链接样式当点击网址时,跳向该网址
//数值类型
et.setSelection(et.length());//调整光标到最后一行
- android:hintText与android:inputType详解
- android:hintText与android:inputType详解
- android:hintText与android:inputType详解
- android:hintText与android:inputType详解
- Android edittext 属性inputtype详解
- Android EditText中的inputType详解
- Android edittext 属性inputtype详解
- Android edittext 属性inputtype详解
- InputType android
- android:inputtype
- android:inputtype
- android:inputType
- android:inputType
- android inputType
- android:inputType
- Android TextView、EditText字符过滤-InputType详解
- Android关于Edittext的inputtype属性详解
- Android EditText inputType与numeric属性设置
- 关于解决 AVD的中文路径出现的问题和更改avd的默认路径
- UML一篇文章就学通!
- 线程、线程句柄、线程ID
- 盛科推出V330 OpenFlow交换机参考系统
- 很多人想要的Jquery 加载Loading效果,可以加到自己的项目中,结合Ajax使用
- android:hintText与android:inputType详解
- 关于web.config中<customErrors>节点说明
- NSIndexPath
- eclipse与jdk,jre的关系
- JS将Array数组转化为轻量级JSON对象
- C 语言关于作用域,存储时间,链接
- WinForm开发中针对TreeView控件改变当前选择节点的字体与颜色
- 技术点(一条一条列出来)
- 使用DVD+RW工具刻录