I am a little helpless at the moment.
I have following code
public class ListViewAdapter<String> extends ArrayAdapter<String> {
private final Context context;
private final int textViewResourceId;
private final int[] itemResourceIds;
private final ArrayList<String> list;
public ListViewAdapter(Context context, int textViewResourceId,
int[] itemResourceIds, ArrayList<String> list) {
super(context, textViewResourceId, itemResourceIds, list);
this.context = context;
this.textViewResourceId = textViewResourceId;
this.itemResourceIds = itemResourceIds;
this.list = list;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
// some code...
}
}
But eclipse marks the super(...) line, and I can't figure out why.
It tells me:
The constructor ArrayAdapter<String>(Context, int, int[], ArrayList<String>) is undefined
But didn't I define it exactly this way?
Please help me out here.