We now turn our attention to the layout for each row in the ListView
widget. The Android platform provides a number of default layouts out of the box that can be used with a ListView
widget:
All of the preceding three layouts provide a pretty standard design, but for more control over content layout, a custom layout can also be created, which is what is needed for poiListView
.
To create a new layout, perform the following steps:
In the Solution pad, navigate to Resources | Layout, right-click on it, and navigate to Add | New File.
Select Android from the list on the left-hand side, Android Layout...