コード例 #1
0
  @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());
  }
コード例 #2
0
  public ExpenseSheetRecyclerAdapter(Context context) {
    this.context = context;

    expenseList = new ArrayList<Expense>();
    Expense.getQuery(); // Exp.listAll(Todo.class);
  }