题目内容

How do you populate a ListView?

A. l use the addltem(Sring s) method.
B. l use an ArrayAdapter which creates a TextView for each string array item and bind them to the ListView.
C. l use the addChild(View v) method.
D. null

查看答案
更多问题

How can you react to click events on an item of a ListView?

A. l create and associate to the ListView an object implementing the AdapterView.OnltemClickListener interface.
B. ln the XMLlayout file l set the "onClick" property of the ListView to the name of the method to call when an item is clicked.
C. null-c
D. null-d

It's possible to add music to the output audio flow during a phone call.

A. 对
B. 错

An adapter acts as a bridge between the data source and the list view.

A. 对
B. 错

If the fragment code contains all that you need to control its layout, it greatly increases the chances that you'll be able to reuse it elsewhere in the app.

A. 对
B. 错

答案查题题库