Class SearchQueryEntryAdapter
- java.lang.Object
-
- android.widget.BaseAdapter
-
- android.widget.ArrayAdapter<SearchQueryEntry>
-
- com.cmput301w23t09.qrhunter.leaderboard.SearchQueryEntryAdapter
-
- All Implemented Interfaces:
android.widget.Adapter
,android.widget.Filterable
,android.widget.ListAdapter
,android.widget.SpinnerAdapter
,android.widget.ThemedSpinnerAdapter
public class SearchQueryEntryAdapter extends android.widget.ArrayAdapter<SearchQueryEntry>
ArrayAdapter for search query entries
-
-
Constructor Summary
Constructors Constructor Description SearchQueryEntryAdapter(android.content.Context context, java.util.List<SearchQueryEntry> entries)
Constructor for the SearchQueryEntryAdapter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.view.View
getView(int position, android.view.View convertView, android.view.ViewGroup parent)
Gets the view that represents the search query entry at a certain position in the list-
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
-
SearchQueryEntryAdapter
public SearchQueryEntryAdapter(android.content.Context context, java.util.List<SearchQueryEntry> entries)
Constructor for the SearchQueryEntryAdapter- Parameters:
context
- Context for the saerch fragmententries
- Search query entries to use for this adapter
-
-
Method Detail
-
getView
public android.view.View getView(int position, @Nullable android.view.View convertView, @NonNull android.view.ViewGroup parent)
Gets the view that represents the search query entry at a certain position in the list- Specified by:
getView
in interfaceandroid.widget.Adapter
- Overrides:
getView
in classandroid.widget.ArrayAdapter<SearchQueryEntry>
- Parameters:
position
- Position of the search entryconvertView
- Potential view the adapter can reuseparent
- Parent of convertView- Returns:
- View that represents the search query entry
-
-