This Adapter helps to show the List of subscribed Events. More...
Classes | |
class | ViewHolder |
Helps to show the events in the EventAdapter. | |
Public Member Functions | |
EventAdapter (Context context, ArrayList< Event > eventList) | |
Creates a EventAdapter with a EventList 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 Events in user defined colors (black as default). More... | |
This Adapter helps to show the List of subscribed Events.
unicopa.copa.app.gui.EventAdapter.EventAdapter | ( | Context | context, |
ArrayList< Event > | eventList | ||
) |
Creates a EventAdapter with a EventList that should be shown.
context | |
eventList |
View unicopa.copa.app.gui.EventAdapter.getView | ( | int | position, |
View | convertView, | ||
ViewGroup | parent | ||
) |
Creates the ListView with Events in user defined colors (black as default).
In the ListView the EventGroupName, the EventName and three buttons are shown. It also handles the clicks on the buttons. If the "color"-button is clicked a colorDialog opens. If the "unsubscribe"-button is clicked a message to the server is send that unsubscribes the user.The user will also be informed by a dialog. If the "details"-button is clicked the SingleEventListActivity with all SingleEvents, that belong to the currently watched event, is shown.