Class EventNotificationsArrayAdapter
java.lang.Object
android.widget.BaseAdapter
android.widget.ArrayAdapter<UserEventNotifications>
com.example.slacks_lottoevent.viewmodel.adapter.EventNotificationsArrayAdapter
- All Implemented Interfaces:
android.widget.Adapter
,android.widget.Filterable
,android.widget.ListAdapter
,android.widget.SpinnerAdapter
,android.widget.ThemedSpinnerAdapter
public class EventNotificationsArrayAdapter
extends android.widget.ArrayAdapter<UserEventNotifications>
Custom ArrayAdapter for displaying event notifications in a ListView.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) android.content.SharedPreferences
Fields inherited from interface android.widget.Adapter
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
-
Constructor Summary
ConstructorsConstructorDescriptionEventNotificationsArrayAdapter
(android.content.Context context, ArrayList<UserEventNotifications> events, android.content.SharedPreferences sharedPreferences) Constructor for the ArrayAdapter. -
Method Summary
Modifier and TypeMethodDescriptionandroid.view.View
getView
(int position, android.view.View convertView, android.view.ViewGroup parent) Get the view for a single event notification.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
-
Field Details
-
Constructor Details
-
Method Details
-
getView
public android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent) Get the view for a single event notification.- Specified by:
getView
in interfaceandroid.widget.Adapter
- Overrides:
getView
in classandroid.widget.ArrayAdapter<UserEventNotifications>
- Parameters:
position
- The position of the event in the list.convertView
- The view to convert.parent
- The parent view.- Returns:
- The view for the event.
-