题目内容

线性布局中关于layout_weight属性说法错误的是

A. 该属性可以控制控件所占比例
B. 在垂直的线性布局中,使用layout_weight必须将布局中的控件layout_height属性设置为0
C. 在水平的线性布局中,使用layout_weight不能将布局的layout_width设置为wrap_content,否则layout_weigth不起作用
D. 在线性布局中,如果一个控件设定了layout_width=”0dp”,并且没有设定layout_weight属性,则该控件不显示

查看答案
更多问题

AndroidUI开发中,线性布局如不指定oritentation属性,则()

A. 默认水平显示
B. 默认垂直显示
C. 默认根据控件大小显示
D. 控件可以随意摆放

相对布局中把控件显示与另外一个控件的上边使用的属性是()

A. layout_above
B. padding
C. layout_below
D. layout_top

在相对布局文件中,把控件显示在另外一个控件的左侧使用的属性是()

A. layout_toRightOf
B. layout_toLeftOf
C. layout_toStartOf
D. layout_toEndOf

Android相对布局中,使控件相对父控件顶部对齐使用的属性是()

A. android:layout_alignParentBottom
B. android:layout_alignBottom
C. android:layout_alignBaseline
D. android:layout_alignParentTop

答案查题题库