2021年度Android考试知识点考试.docVIP

  • 3
  • 0
  • 约1.58万字
  • 约 25页
  • 2021-03-24 发布于江苏
  • 举报
考试知识点(Android闭卷考试) 理解Android常用几种布局。 几种布局高和宽,制定 LinearLayout,线性布局,布局中控件在线性方向上依次排列。默认控件水平方向排列。 android:orientation=”horizontal” android:orientation=”vertical”? 注意: 当是水平方向排列,控件宽度不能设立为android:layout_width=match_parent 否则控件会把水平方向沾满,其她控件无法会控件覆盖(无法放置) 当是垂直方向,内部控件不能将android:layout_height=match_parent指定为match_parent android:layout_weight=1,使用比例方式来指定控件大小 RelativeLayout,相对布局,是通过相对定位方式让布局中控件可以出当前布局任何位置。 内部控件,三种属性, 属性值是true或false? android:layout_centerHrizontal 水平居中, 属性值是”@id/*“?android:layout_below 在某元素下方 属性值是数值? android:layout_marginLeft 离某元素左边沿距离 FrameLayout,帧布局,简朴,应用场景少,和碎片一起使用,没有定位方式,所有控件默认在布局左上角,背面

文档评论(0)

1亿VIP精品文档

相关文档