学习进度07

 

第七周

所花时间(包括上课)

15h

代码量(行)

800

博客量(篇)

2

了解到的知识点

1.  线性布局学习- LinearLayout

默认是水平排列。

android:id

android:layout_width

android:layout_height

android:layout_margin

android:layout_padding

android:background

android:orientation

2.       相对布局学习-RelativeLayout

最常用属性:

android:layout_toLeftOf:和谁的左部对齐

android:layout_toRightOf:和谁的右部对齐

android:layout_alignBottom:和底部对齐

android:layout_alignParentBottom:和父空间的底部对齐

android:layout_below:在谁的下面

3.       TextView

  文字大小

  显示不下使用

  文字+icon

  中划线、下划线

  跑马灯

4.       Button

  文字大小、颜色

  自定义背景形状

  自定义按压效果

  点击事件

5.       EditText

  常用属性

  监听事件

  制作登录界面

6.       RadioButton

  常用属性

  自定义样式

  监听事件

7.       复选框CheckBox

  常用属性

  自定义样式

  监听事件

8.       ImageView

  Button的其他衍生控件:ToggleButton、Switch

  常用属性

  加载网络图片

      scaleType:

           fitXY:撑满控件,宽高比可能发生改变

           fitCenter:保持宽高比缩放,直至能够完全显示

           centerCrop:保持宽高比缩放,直至完全覆盖控件,裁剪显示

 

原文地址:https://www.cnblogs.com/qianmo123/p/10743772.html