This Adapter helps to show the List of Events. More...
Classes | |
class | ViewHolder |
Helps to show the events in the SearchResultEventAdapter. | |
Public Member Functions | |
SearchResultEventAdapter (Context context, ArrayList< Event > eventList, String name) | |
Creates a SearchResultEventAdapter 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. More... | |
This Adapter helps to show the List of Events.
unicopa.copa.app.gui.SearchResultEventAdapter.SearchResultEventAdapter | ( | Context | context, |
ArrayList< Event > | eventList, | ||
String | name | ||
) |
Creates a SearchResultEventAdapter with a EventList that should be shown.
context | |
eventList | |
name |
View unicopa.copa.app.gui.SearchResultEventAdapter.getView | ( | int | position, |
View | convertView, | ||
ViewGroup | parent | ||
) |
Creates the ListView with Events.
The name and two buttons are shown. By clicking on the "subscribe" button a event will be subscribed by calling Helper.subscribe. If the "dates"-button is clicked the SearchResultSingleEventActivity is started and shows all SingleEvents that belong to the chosen Event.