1. False. Options menus are launched using the Menu button. Context menus are launched using a long-click on a View control.

2. C. A data adapter, such as ArrayAdapter, is used to match a data source to the layout template used by a ListView control to display each list item.

3. A. RelativeLayout is especially handy when its child View controls need to be aligned to the top, bottom, left, right, and center of the parent layout. RelativeLayout can also be used to position child View controls relative to one another inside the parent layout.

4. True. ListActivity simplifies the handling of ListView controls.

Was this article helpful?

0 0

Post a comment