Class SearchArrayAdapter

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

    public class SearchArrayAdapter
    extends android.widget.ArrayAdapter<BasicPlayerProfile>
    This class extends ArrayAdapter to provide a customized adapter for a ListView displaying BasicPlayerProfile objects. BasicPlayerProfile objects are displayed in a list item layout. PlayerActivity to go to the player's profile.
    • Field Summary

      • Fields inherited from interface android.widget.Adapter

        IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
    • Constructor Summary

      Constructors 
      Constructor Description
      SearchArrayAdapter​(android.content.Context context, java.util.ArrayList<BasicPlayerProfile> userList)
      Constructor for BasicUserArrayAdapter.
    • 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)
      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
      • 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

      • SearchArrayAdapter

        public SearchArrayAdapter​(android.content.Context context,
                                  java.util.ArrayList<BasicPlayerProfile> userList)
        Constructor for BasicUserArrayAdapter.
        Parameters:
        context - the context in which the adapter is used
        userList - an ArrayList of BasicPlayerProfile 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)
        This method creates a View for a ListView item at the given position.
        Specified by:
        getView in interface android.widget.Adapter
        Overrides:
        getView in class android.widget.ArrayAdapter<BasicPlayerProfile>
        Parameters:
        position - the position of the item in the ListView
        convertView - the old view to reuse, if possible
        parent - the parent ViewGroup
        Returns:
        the View for the item at the given position