Package com.example.breeze_seas
Class OrganizerListAdapter
java.lang.Object
android.widget.BaseAdapter
android.widget.ArrayAdapter<User>
com.example.breeze_seas.OrganizerListAdapter
- All Implemented Interfaces:
android.widget.Adapter,android.widget.Filterable,android.widget.ListAdapter,android.widget.SpinnerAdapter,android.widget.ThemedSpinnerAdapter
Displays organizer-facing user rows with a secondary detail line and trailing status chip.
-
Field Summary
Fields inherited from interface android.widget.Adapter
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION -
Constructor Summary
ConstructorsConstructorDescriptionOrganizerListAdapter(android.content.Context context, int resource, ArrayList<User> entrants, String statusLabel, boolean highlightedStatus) Creates a reusable organizer-side user list adapter. -
Method Summary
Modifier and TypeMethodDescriptionandroid.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, sortMethods inherited from class android.widget.BaseAdapter
areAllItemsEnabled, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetInvalidated, registerDataSetObserver, setAutofillOptions, unregisterDataSetObserverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface android.widget.Adapter
getItemViewType, getViewTypeCount, hasStableIds, isEmpty, registerDataSetObserver, unregisterDataSetObserver
-
Constructor Details
-
OrganizerListAdapter
public OrganizerListAdapter(android.content.Context context, int resource, ArrayList<User> entrants, @NonNull String statusLabel, boolean highlightedStatus) Creates a reusable organizer-side user list adapter.- Parameters:
context- Row inflation context.resource- Layout resource for each row.entrants- Mutable list of users shown in the list.statusLabel- Label rendered in the trailing status chip.highlightedStatus- Whether the chip should use the emphasized style.
-
-
Method Details
-
getView
@NonNull 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<User>
-