@Override public void onBindViewHolder(ExpenseSheetRecyclerAdapter.ExpenseViewHolder holder, int position) { final Expense expense = expenseList.get(position); holder.expenseName.setText(expense.getExpenseName()); holder.itemCost.setText("$" + expense.getCost()); holder.payerNames.setText(expense.getPayersAsString()); }
public ExpenseSheetRecyclerAdapter(Context context) { this.context = context; expenseList = new ArrayList<Expense>(); Expense.getQuery(); // Exp.listAll(Todo.class); }