属性 值 说明 android:orientation horizontal/vertical 设置布局水平还是垂直,默认是垂直 android:checked true/false 标记默认选中,如果是单选则选中最后一个 android:layout_gravity center/right/left/bottom/top 位置 android:gravity center/right/left/bottom/top 位置(android:gravity 属性是对该view 内容的限定.比如一个button 上面的text
你可以设置该text 在view的靠左,靠右等位置.该属性就干了这个.android:layout_gravity 是用来设置该view 相对与起父view 的位置.比如一个button 在linearlayout里,你想把该button 放在靠左靠右等位置就可以通过该属性设置.) android:hint @string 提示信息,当文本框为空的时候显示 android:numeric integer/decimal 只能输入整数/小数 android:singleLine true/false 设置单行输入,一旦设置为true,则文字不会自动换行 android:password true/false 设置密码框 android:textColor #ffffff 字体颜色 android:textStyle bold/italic/bolditalic 设置字形[bold(粗体) 0, italic(斜体) 1, bolditalic(又粗又斜) 2] 可以设置一个或多个,用“|”隔开 android:textSize 20dip 字体大小 android:capitalize characters 设置英文字母大写类型
此处无效果,需要弹出输入