Next in your layout, you include the ListView control. A ListView control is simply a container that holds a list of View objects. The default is for a ListView control to contain TextView controls, but ListView controls may contain many different View controls.
A ListView control of TextView controls works fine for this example. To override the default behavior of each child TextView, you need to make a layout resource to act as the template for each TextView control in the ListView control. Also, you can make the menu more interesting by adding a custom divider and selector to the ListView control.
Was this article helpful?