Mehrere Listen <String> an ArrayAdapter übergeben

Ich beginne damit in der Aktivität:

adapter = new ItemAdapter(Items.this, items, totals);
        setListAdapter(adapter);

Jetzt ist hier ItemAdapter:

public class ItemAdapter extends ArrayAdapter<String> {

private final List<String> items;
private final List<String> totals;
private final Context context;

public ItemAdapter(Context context, List<String> items,
        List<String> totals) {
    super(context, R.layout.item_row_layout, items);
    this.context = context;
    this.items = items;
    this.totals = totals;
}

@Override
public View getView(int position, View convertView, ViewGroup parent) {
    LayoutInflater inflater = (LayoutInflater) context
            .getSystemService(Context.LAYOUT_INFLATER_SERVICE);

    View rowView = inflater
            .inflate(R.layout.item_row_layout, parent, false);
    TextView t1 = (TextView) rowView.findViewById(R.id.itemName);
    TextView t2 = (TextView) rowView.findViewById(R.id.itemTotal);

    String s1 = items.get(position);
    t1.setText(s1);

    String s2 = totals.get(position);
    t2.setText(s2);


    return rowView;
}

}

Jetzt weiß ich, dass das Problem beim Konstruktor liegt, weil ich bis dahin nur eine Liste übergeben darf, nicht zwei. Gibt es eine andere Möglichkeit, dies zu tun?

Antworten auf die Frage(4)

Ihre Antwort auf die Frage