UI 控件基本属性

1.TextView

   gravity:内容相对控件的对齐方式

   layout:子控件相对父控件的对齐方式。

   padding:内边距      margin:外边距

   autoLink:设置文本类型   (如web、Iphone等)

   singline:(适用单行内容不够显示)加省略号

   typeface:设置字体类型  backgroup:设置背景

   textIsSelectable:支持内容滑动、被复制

   marqueeRepeatlimit:(跑马灯)重复次数 

2.EditView

   inputTpye:文本格式

   maxLenght:设置最长文本长度

   hint:提示信息

3.CheckBox

   checked:是否框选

4.RadioGroup

   RadioButton:单选(一个RadioGroup中可以you两个及以上RadioButton,但只能选择一个)

5.ToggleButton

   textoff:关闭

   texton:开启

6.ProgressBar

   seekerBar( 可拖拽进度条)

   ratingBar()

   style:进度条大小  max:进度最大值  progress:当前进度 secondaryprogress:次要进度

7.DateaPicker

   timepicker

猜你喜欢

转载自blog.csdn.net/while_1_/article/details/80763108