Class QRCodeAdapter
- java.lang.Object
-
- android.widget.BaseAdapter
-
- android.widget.ArrayAdapter<QRCode>
-
- com.cmput301w23t09.qrhunter.qrcode.QRCodeAdapter
-
- All Implemented Interfaces:
android.widget.Adapter,android.widget.Filterable,android.widget.ListAdapter,android.widget.SpinnerAdapter,android.widget.ThemedSpinnerAdapter
public class QRCodeAdapter extends android.widget.ArrayAdapter<QRCode>
This is an array adapter for QRCode objects
-
-
Constructor Summary
Constructors Constructor Description QRCodeAdapter(android.content.Context context, java.util.ArrayList<QRCode> qrCodes)This initializes the adapter with a context and list of QRCode objects
-
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)-
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
-
QRCodeAdapter
public QRCodeAdapter(android.content.Context context, java.util.ArrayList<QRCode> qrCodes)This initializes the adapter with a context and list of QRCode objects- Parameters:
context- This is the context of the adapterqrCodes- This is the list of QRCode objects th
-
-
Method Detail
-
getView
public android.view.View getView(int position, @Nullable android.view.View convertView, @NonNull android.view.ViewGroup parent)- Specified by:
getViewin interfaceandroid.widget.Adapter- Overrides:
getViewin classandroid.widget.ArrayAdapter<QRCode>
-
-