I am making a custom arrayAdapter for my listview, but a simple thing like my super constructor is messing me up!
private ArrayAdapter<ScheduleTime> timeHold;
//make proper constructor, see use ticket types
public TimeTableAdapter(Context context, int textViewResourceId,
ArrayAdapter<ScheduleTime> timesTable) {
super(context, textViewResourceId, timesTable);
this.timeHold = timesTable;
}
I get the error on the super line:
super(context, textViewResourceId, timesTable);
The constructor SimpleAdapter(Context, int, ArrayAdapter<ScheduleTime>) is undefined
What am I missing here? my above constructor clearly has all of those elements
The constructor SimpleAdapter(Context, int, ArrayAdapter<ScheduleTime>) is undefined, it means that those are the wrong elements. It is telling you that you have those elements, but that is not defined for a Simple Adapter. As @JB Nizet said, a Simple Adapter has differentsuperarguments.