Package com.example.qrgo.utilities
Class QRCodeArrayAdapter
- java.lang.Object
-
- android.widget.BaseAdapter
-
- android.widget.ArrayAdapter<QRCode>
-
- com.example.qrgo.utilities.QRCodeArrayAdapter
-
- All Implemented Interfaces:
android.widget.Adapter
,android.widget.Filterable
,android.widget.ListAdapter
,android.widget.SpinnerAdapter
,android.widget.ThemedSpinnerAdapter
public class QRCodeArrayAdapter extends android.widget.ArrayAdapter<QRCode>
A custom ArrayAdapter class for displaying BasicQRCode objects in a ListViewQrProfileActivity
to go to the profile of the QRCodeQRCode
to get the QRCode information
-
-
Constructor Summary
Constructors Constructor Description QRCodeArrayAdapter(android.content.Context context, java.util.ArrayList<QRCode> qrList)
Constructor for BasicQrArrayAdapter
-
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)
Returns the view for a specific position in the ListView-
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
-
QRCodeArrayAdapter
public QRCodeArrayAdapter(android.content.Context context, java.util.ArrayList<QRCode> qrList)
Constructor for BasicQrArrayAdapter- Parameters:
context
- the context in which the adapter is createdqrList
- the list of BasicQRCode objects to be displayed in the ListView
-
-
Method Detail
-
getView
public android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent)
Returns the view for a specific position in the ListView- Specified by:
getView
in interfaceandroid.widget.Adapter
- Overrides:
getView
in classandroid.widget.ArrayAdapter<QRCode>
- Parameters:
position
- the position of the item in the ListViewconvertView
- the view to be converted or inflatedparent
- the parent ViewGroup of the view- Returns:
- the view for the specified position
-
-