Lists

An AdapterView is the super class of all views that are bound to an underlying data source. A View is the base class for all user interface components, such as the widgets used in creating layouts. The AdapterView has several subclasses, including GridView, ListView, and Spinner widgets. The visible component of a list is implemented with a ListView widget in an XML layout file. The widget has attributes that allow the user to configure some aspects of the display. In many ways, a ListView is a standard widget. However, if given the special ID of @id/android:list and a special subclass of Activity, many of the tasks of list implementation are easier because the developer can take advantage of many built-in features of the SDK. To take advantage ...

Get Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android 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.