public class SpinnerAdapter extends android.widget.ArrayAdapter<SportCategory>
Constructor and Description |
---|
SpinnerAdapter(android.content.Context context,
int resource,
java.util.ArrayList<SportCategory> list) |
Modifier and Type | Method and Description |
---|---|
android.view.View |
getDropDownView(int position,
android.view.View convertView,
android.view.ViewGroup parent) |
android.view.View |
getView(int position,
android.view.View convertView,
android.view.ViewGroup parent) |
add, addAll, addAll, clear, createFromResource, getContext, getCount, getFilter, getItem, getItemId, getPosition, insert, notifyDataSetChanged, remove, setDropDownViewResource, setNotifyOnChange, sort
public SpinnerAdapter(android.content.Context context, int resource, java.util.ArrayList<SportCategory> list)
context
- resource
- single item layout to be inflatedlist
- public android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent)
getView
in interface android.widget.Adapter
getView
in class android.widget.ArrayAdapter<SportCategory>
position
- convertView
- parent
- public android.view.View getDropDownView(int position, android.view.View convertView, android.view.ViewGroup parent)
getDropDownView
in interface android.widget.SpinnerAdapter
getDropDownView
in class android.widget.ArrayAdapter<SportCategory>