單項(xiàng)選擇題通過組件相對位置進(jìn)行布局的布局管理器()。

A.LinearLayout
B.RelativeLayout
C.FrameLayout
D.GridLayout


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題自定義的view能夠在xml中直接使用需要定義()。

A.一個無參數(shù)構(gòu)造函數(shù)
B.至少定義兩個構(gòu)造函數(shù),其中一個包括兩個參數(shù)
C.定義兩個構(gòu)造函數(shù)
D.繼承父類

2.單項(xiàng)選擇題文本文字的顏色設(shè)置為紅色為()。

A.android:text=”red”
B.android:textColor=”<F00”
C.android:textColor=”red”
D.android:Color=”<0F0”

4.單項(xiàng)選擇題xml文件中使用mipmap中的圖片img.jpg的語句()。

A.R.mipmap.img
B.@mipmap/img.jpg
C.@mipmap/img
D.mipmap.img

5.單項(xiàng)選擇題在activity中使用一個布局界面lay1.xml的語句()。

A.findViewByID(R.id.lay1)
B.addView(lay1.xml)
C.setContentView(R.layout.lay1)
D.setContentView(lay1.xml)