Class Event.UserArrayAdapter

java.lang.Object
android.widget.BaseAdapter
android.widget.ArrayAdapter<User>
com.example.rocket_launch.Event.UserArrayAdapter
All Implemented Interfaces:
android.widget.Adapter, android.widget.Filterable, android.widget.ListAdapter, android.widget.SpinnerAdapter, android.widget.ThemedSpinnerAdapter
Enclosing class:
Event

public static class Event.UserArrayAdapter extends android.widget.ArrayAdapter<User>
Defines the User Array Adapter class
  • Field Summary

    Fields inherited from interface android.widget.Adapter

    IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
  • Constructor Summary

    Constructors
    Constructor
    Description
    UserArrayAdapter(android.content.Context context, ArrayList<User> users)
    constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    android.view.View
    getView(int position, android.view.View convertView, android.view.ViewGroup parent)
    get current view

    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 Details

    • UserArrayAdapter

      public UserArrayAdapter(android.content.Context context, ArrayList<User> users)
      constructor
      Parameters:
      context - context of where fragment is
      users - users list to display
  • Method Details

    • getView

      @NonNull public android.view.View getView(int position, android.view.View convertView, @NonNull android.view.ViewGroup parent)
      get current view
      Specified by:
      getView in interface android.widget.Adapter
      Overrides:
      getView in class android.widget.ArrayAdapter<User>
      Parameters:
      position - position in array
      convertView - view to convert to
      parent - parent display
      Returns:
      returns a view to display