Class BasicQrArrayAdapter

  • All Implemented Interfaces:
    android.widget.Adapter, android.widget.Filterable, android.widget.ListAdapter, android.widget.SpinnerAdapter, android.widget.ThemedSpinnerAdapter

    public class BasicQrArrayAdapter
    extends android.widget.ArrayAdapter<BasicQRCode>
    A custom ArrayAdapter class for displaying BasicQRCode objects in a ListView
    • Field Summary

      • Fields inherited from interface android.widget.Adapter

        IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicQrArrayAdapter​(android.content.Context context, java.util.ArrayList<BasicQRCode> qrList, java.lang.String caller)
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface android.widget.Adapter

        getItemViewType, getViewTypeCount, hasStableIds, isEmpty, registerDataSetObserver, unregisterDataSetObserver
    • Constructor Detail

      • BasicQrArrayAdapter

        public BasicQrArrayAdapter​(android.content.Context context,
                                   java.util.ArrayList<BasicQRCode> qrList,
                                   java.lang.String caller)
        Constructor for BasicQrArrayAdapter
        Parameters:
        context - the context in which the adapter is created
        qrList - the list of BasicQRCode objects to be displayed in the ListView
        caller - the caller of the adapter (player, homeAll, etc.)
    • 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 interface android.widget.Adapter
        Overrides:
        getView in class android.widget.ArrayAdapter<BasicQRCode>
        Parameters:
        position - the position of the item in the ListView
        convertView - the view to be converted or inflated
        parent - the parent ViewGroup of the view
        Returns:
        the view for the specified position