O'Reilly logo

Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android by Michael Eierman, Jakob Iversen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adapters

Adapters act as a link between the view and the underlying data source for the list. Lists require the use of an adapter. The adapter provides access to the data items and is responsible for creating a View for each item. A view determines how each list item is displayed. In most cases, this display is uniform for each data item. The display does not have to be uniform, but in that case, developers must implement their own adapters to create the different views.

The super class for all adapters is BaseAdapter, which is an abstract class. The BaseAdapter class has three subclasses, ArrayAdapter, CursorAdapter, and SimpleAdapter. The ArrayAdapter is used to bind an Array or ArrayList to a view. An ArrayAdapter is always parameterized. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required