This Adapter helps to show the List of SingleEvents on the MainActivity. More...
Classes | |
class | ViewHolder |
Helps to show the SingleEvents in the MainAdapter. | |
Public Member Functions | |
MainAdapter (Context context, ArrayList< SingleEventLocal > eventList) | |
Creates a EventAdapter with a SingleEventList that should be shown. More... | |
int | getCount () |
Object | getItem (int arg0) |
long | getItemId (int arg0) |
View | getView (int position, View convertView, ViewGroup parent) |
Creates the ListView with SingleEvents in user defined colors (black as default). More... | |
This Adapter helps to show the List of SingleEvents on the MainActivity.
unicopa.copa.app.gui.MainAdapter.MainAdapter | ( | Context | context, |
ArrayList< SingleEventLocal > | eventList | ||
) |
Creates a EventAdapter with a SingleEventList that should be shown.
context | |
eventList |
View unicopa.copa.app.gui.MainAdapter.getView | ( | int | position, |
View | convertView, | ||
ViewGroup | parent | ||
) |
Creates the ListView with SingleEvents in user defined colors (black as default).
In the ListView the depending EventGroupName and EventName and also the location, date, time, duration and the supervisor are shown. Updated values are highlighted in red. If the user clicks on a SingleEvent all details of it are shown in the SingleEventActivity.