I am creating a calendar with events.
I used another library to create the calendar, but when I go to display the events, I can't get them to print in a list.
I tried using a TextView but it didn't work, so I tried with a ListView.
The ArrayAdapter can't call events
as events
is created in the for loop, yet when I put in the for loop it won't work.
cannot resolve constructor
I was wondering if is there something I am doing wrong?
Can I display it in a TextView instead?
Event ev1 = new Event(Color.GREEN, 1488052800000L, footballEv);
public void onDayClick(Date dateClicked) {
List<Event> events = compactCalendarView.getEvents(dateClicked);
ArrayAdapter<Event> adapter = new ArrayAdapter<Event>(this, android.R.layout.simple_list_item_1, event);
ListView list = (ListView) findViewById(R.id.listView);
list.setAdapter(adapter);
}