public class EditorSpinnerAdapter extends ArrayAdapter
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
Constructor and Description |
---|
EditorSpinnerAdapter(Context context,
int resource,
Object[] items) |
EditorSpinnerAdapter(Context context,
Object[] items) |
Modifier and Type | Method and Description |
---|---|
int |
getCount() |
View |
getDropDownView(int position,
View convertView,
ViewGroup parent) |
Object |
getItem(int position) |
int |
getPosition(Object item) |
View |
getView(int position,
View convertView,
ViewGroup parent) |
void |
setItems(Object[] items) |
add, addAll, addAll, clear, createFromResource, getContext, getDropDownViewTheme, getFilter, getItemId, insert, notifyDataSetChanged, remove, setDropDownViewResource, setDropDownViewTheme, setNotifyOnChange, sort
areAllItemsEnabled, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserver
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getItemViewType, getViewTypeCount, hasStableIds, isEmpty, registerDataSetObserver, unregisterDataSetObserver
public void setItems(Object[] items)
public Object getItem(int position)
getItem
in interface Adapter
getItem
in class ArrayAdapter
public int getPosition(Object item)
getPosition
in class ArrayAdapter
public int getCount()
getCount
in interface Adapter
getCount
in class ArrayAdapter
public View getDropDownView(int position, View convertView, ViewGroup parent)
getDropDownView
in interface SpinnerAdapter
getDropDownView
in class ArrayAdapter