public class MaterialSpinnerAdapter<T> extends MaterialSpinnerBaseAdapter
| Constructor and Description |
|---|
MaterialSpinnerAdapter(android.content.Context context,
java.util.List<T> items) |
| Modifier and Type | Method and Description |
|---|---|
T |
get(int position) |
int |
getCount() |
T |
getItem(int position)
获取列表项
|
java.util.List<T> |
getItems() |
getItemId, getItemText, getSelectedIndex, getView, notifyItemSelected, setBackgroundSelector, setTextColor, setTextSizeareAllItemsEnabled, getAutofillOptions, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, setAutofillOptions, unregisterDataSetObserverpublic MaterialSpinnerAdapter(android.content.Context context,
java.util.List<T> items)
public int getCount()
getCount in interface android.widget.AdaptergetCount in class MaterialSpinnerBaseAdapterpublic T getItem(int position)
getItem in interface android.widget.AdaptergetItem in class MaterialSpinnerBaseAdapterposition - public T get(int position)
get in class MaterialSpinnerBaseAdapterpublic java.util.List<T> getItems()
getItems in class MaterialSpinnerBaseAdapter