Build 1.0_r1(from source)

android.widget
Interface SpinnerAdapter

All Superinterfaces:
Adapter
All Known Implementing Classes:
ArrayAdapter, BaseAdapter, CursorAdapter, ExpandableListConnector, PreferenceGroupAdapter, ResourceCursorAdapter, SimpleAdapter, SimpleCursorAdapter

public interface SpinnerAdapter
extends Adapter

Extended Adapter that is the bridge between a Spinner and its data. A spinner adapter allows to define two different views: one that shows the data in the spinner itself and one that shows the data in the drop down list when the spinner is pressed.


Field Summary
 
Fields inherited from interface android.widget.Adapter
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
 
Method Summary
 View getDropDownView(int position, View convertView, ViewGroup parent)
          Get a View that displays in the drop down popup the data at the specified position in the data set.
 
Methods inherited from interface android.widget.Adapter
getCount, getItem, getItemId, getItemViewType, getView, getViewTypeCount, hasStableIds, isEmpty, registerDataSetObserver, unregisterDataSetObserver
 

Method Detail

getDropDownView

View getDropDownView(int position,
                     View convertView,
                     ViewGroup parent)

Get a View that displays in the drop down popup the data at the specified position in the data set.

Parameters:
position - index of the item whose view we want.
convertView - the old view to reuse, if possible. Note: You should check that this view is non-null and of an appropriate type before using. If it is not possible to convert this view to display the correct data, this method can create a new view.
parent - the parent that this view will eventually be attached to
Returns:
a View corresponding to the data at the specified position.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature