Package icyllis.modernui.widget
Interface SpinnerAdapter
- All Superinterfaces:
Adapter
- All Known Implementing Classes:
ArrayAdapter
,BaseAdapter
,MenuAdapter
-
Field Summary
Fields inherited from interface icyllis.modernui.widget.Adapter
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
-
Method Summary
Modifier and TypeMethodDescriptiongetDropDownView
(int position, View convertView, ViewGroup parent) Gets aView
that displays in the drop-down popup the data at the specified position in the data set.Methods inherited from interface icyllis.modernui.widget.Adapter
getCount, getItem, getItemId, getItemViewType, getView, getViewTypeCount, hasStableIds, isEmpty, registerDataSetObserver, unregisterDataSetObserver
-
Method Details
-
getDropDownView
Gets aView
that displays in the drop-down popup the data at the specified position in the data set.This method should not return null unless the item count is zero.
- 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.
-