Package com.example.qrgo.utilities
Class BasicUserArrayAdapter
- java.lang.Object
-
- android.widget.BaseAdapter
-
- android.widget.ArrayAdapter<BasicPlayerProfile>
-
- com.example.qrgo.utilities.BasicUserArrayAdapter
-
- All Implemented Interfaces:
android.widget.Adapter,android.widget.Filterable,android.widget.ListAdapter,android.widget.SpinnerAdapter,android.widget.ThemedSpinnerAdapter
public class BasicUserArrayAdapter extends android.widget.ArrayAdapter<BasicPlayerProfile>
This class extends ArrayAdapter to provide a customized adapter for a ListView displaying BasicPlayerProfile objects.
-
-
Constructor Summary
Constructors Constructor Description BasicUserArrayAdapter(android.content.Context context, java.util.ArrayList<BasicPlayerProfile> userList, java.lang.String field)Constructor for BasicUserArrayAdapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.view.ViewgetView(int position, android.view.View convertView, android.view.ViewGroup parent)This method creates a View for a ListView item at the given position.-
Methods inherited from class android.widget.ArrayAdapter
add, addAll, addAll, clear, createFromResource, getAutofillOptions, getContext, getCount, getDropDownView, getDropDownViewTheme, getFilter, getItem, getItemId, getPosition, insert, notifyDataSetChanged, remove, setDropDownViewResource, setDropDownViewTheme, setNotifyOnChange, sort
-
Methods inherited from class android.widget.BaseAdapter
areAllItemsEnabled, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetInvalidated, registerDataSetObserver, setAutofillOptions, unregisterDataSetObserver
-
-
-
-
Constructor Detail
-
BasicUserArrayAdapter
public BasicUserArrayAdapter(android.content.Context context, java.util.ArrayList<BasicPlayerProfile> userList, java.lang.String field)Constructor for BasicUserArrayAdapter.- Parameters:
context- the context in which the adapter is useduserList- an ArrayList of BasicPlayerProfile objects to be displayed in the ListViewfield- the field for which the list is being displayed for.
-
-
Method Detail
-
getView
public android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent)This method creates a View for a ListView item at the given position.- Specified by:
getViewin interfaceandroid.widget.Adapter- Overrides:
getViewin classandroid.widget.ArrayAdapter<BasicPlayerProfile>- Parameters:
position- the position of the item in the ListViewconvertView- the old view to reuse, if possibleparent- the parent ViewGroup- Returns:
- the View for the item at the given position
-
-