Creating the POI list row layout

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:

Layout

Description

SimpleListItem1

A single line with a single caption field

SimpleListItem2

A two-line layout with a larger font and a brighter text color for the first field

TwoLineListItem

A two-line layout with an equal sized font for both lines and a brighter text color for the first line

ActivityListItem

A single line of text with an image view

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 ...

Get Xamarin Mobile Application Development for Android - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.