2.aOS_UI控件

1.通用属性

Screen Shot 2020-04-16 at 10.27.02 PM.png

Screen Shot 2020-04-16 at 10.29.50 PM.png

2.TextView

Screen Shot 2020-04-16 at 10.45.14 PM.png

text.setText(getString(R.string.app_name))

3.TextField

hint:默认文字 ; textColorHint:默认文字颜色


Screen Shot 2020-04-16 at 10.47.24 PM.png

4.点击事件

1>.内部类的方式,或者本类实现View.onClick...


Screen Shot 2020-04-16 at 11.09.55 PM.png

2>.匿名内部类


Screen Shot 2020-04-16 at 11.13.41 PM.png

3>.xml绑定点击方法


Screen Shot 2020-04-16 at 11.23.05 PM.png
Screen Shot 2020-04-16 at 11.23.47 PM.png

5.ImageView

src: 图片资源属性,不会拉伸;background:会拉伸;

6.checkBox

Screen Shot 2020-04-17 at 1.03.48 PM.png
Screen Shot 2020-04-17 at 1.04.24 PM.png

7.RadioButton必须放在RadioGroup中

Screen Shot 2020-04-17 at 1.09.46 PM.png

8.ToggleButton

Screen Shot 2020-04-17 at 1.09.46 PM.png

9.SeekBar进度条

Screen Shot 2020-04-17 at 1.14.31 PM.png

10.AlertDialog

Screen Shot 2020-04-17 at 8.44.25 PM.png

11.ArrayAdatper

Screen Shot 2020-04-17 at 9.10.24 PM.png

你可能感兴趣的:(2.aOS_UI控件)