1.【单选题 】
下列选项中,属于设置布局高度的属性的是( )。
A.android:id
B.android:layout_weight
C.android:layout_height
D.android:padding
参考答案:C
2.【单选题 】
下列选项中,属于线性布局的标签是( )。
A.
B.
C.
D.
参考答案:B
3.【单选题 】
下列选项中,属于在相对布局中将控件显示在另外一个控件的右侧的属性的是( )。
A.layout_toLeftOf
B.layout_toRightOf
C.layout_toStartOf
D.layout_toEndOf
参考答案:B
4.【单选题 】
Android项目中的布局文件放在哪个目录下( )
A.res/layout
B.res/value
C.assets
D.res/drawable
参考答案:A
5.【单选题 】
下列选项中,属于设置线性布局内控件排列顺序的属性的是( )。
A.android:layout_centerVertical
B.android:layout_centerHorizontal
< ……此处隐藏996个字……下列选项中,属于布局的宽度值的是( )。
A.fill_parent
B.match_parent
C.80dp
D.wrap_content
参考答案:A,B,C,D
12.【多选题 】
定义LinearLayout水平方向布局时至少设置的三个属性是( )。
A.android:text
B.android:layout_width
C.android:layout_height
D.android:orientation
参考答案:B,C,D
13.【判断题 】
布局资源文件只能在Java代码中调用。
A.正确
B.错误
参考答案:B
14.【判断题 】
使用XML布局文件控制界面布局,能够有效的将界面中布局的代码和Java代码隔离,使程序的结构更加清晰。
A.正确
B.错误
参考答案:A
15.【判断题 】
LinearLayout通过以父容器或其它子控件为参照物,指定布局中子控件的位置。
A.正确
B.错误
参考答案:B
16.【判断题 】
android:layout_height属性用于设置布局的高度。
A.正确
B.错误
参考答案:A