Binding to Data with Adapter View

The AdapterView is a ViewGroup subclass whose child Views are determined by an Adapter that binds to data of some type. AdapterView is useful whenever you need to display stored data (as opposed to resource strings or drawables) in your layout.

Gallery, ListView, and Spinner are examples of AdapterView subclasses that you can use to bind to a specific type of data and display it in a certain way.

AdapterView objects have two main responsibilities:

• Filling the layout with data

• Handling user selections

0 0

Post a comment