单项选择题
在MainActivity中想要找到对应布局下的控件,可以使用()实现。
A.getViewById
B.findViewById
C.setViewById
D.findViewByName
点击查看答案&解析
相关考题
-
单项选择题
使用()属性可以获取选中CheckBox的文本。
A.getText
B.getChecked
C.setText
D.setChecked -
单项选择题
在BaseAdapter的抽象方法中,以下哪个可以获取按照条目布局布好的视图?()
A.getCount
B.getItem
C.getItemId
D.getView -
单项选择题
以下哪个属性用于设置布局的唯一标识?()
A.android:id
B.android:layout_width
C.android:layout_height
D.android:background
