package com.example.todocloud.adapter;

import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.todocloud.R;
import com.example.todocloud.data.Todo;

import java.util.ArrayList;
import java.util.List;

public class TodoAdapterTest extends RecyclerView.Adapter<TodoAdapterTest.MyViewHolder> {

  private List<Todo> todosList;

  public TodoAdapterTest(List<Todo> todosList) {
    this.todosList = todosList;
  }

  public void updateDataSet(ArrayList<Todo> todosList) {
    this.todosList.clear();
    this.todosList.addAll(todosList);
  }

  @Override
  public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
    View itemView = LayoutInflater.from(parent.getContext())
        .inflate(R.layout.todo_item, parent, false);

    return new MyViewHolder(itemView);
  }

  @Override
  public void onBindViewHolder(MyViewHolder holder, int position) {
    Todo todo = todosList.get(position);
    holder.title.setText(todo.getTitle());
  }

  @Override
  public int getItemCount() {
    return todosList.size();
  }

  public class MyViewHolder extends RecyclerView.ViewHolder {

    public TextView title;

    public MyViewHolder(View itemView) {
      super(itemView);
      title = (TextView) itemView.findViewById(R.id.tvTitle);
    }

  }

}

@@ -33,16 +33,68 @@
 apter;%0A%0A
+import android.support.v7.widget.AppCompatCheckBox;%0A
 import a
@@ -225,16 +225,49 @@
 wGroup;%0A
+import android.widget.ImageView;%0A
 import a
@@ -937,16 +937,21 @@
 odo_item
+_test
 , parent
@@ -1141,273 +1141,637 @@
 der.
-title.setText(todo.getTitle());%0A  %7D%0A%0A  @Override%0A  public int getItemCount() %7B%0A    return todosList.size();%0A  %7D%0A%0A  public class MyViewHolder extends RecyclerView.ViewHolder %7B%0A%0A    public TextView title;%0A%0A    public MyViewHolder(View itemView) %7B%0A      super(itemView
+completed.setChecked(todo.getCompleted());%0A    holder.title.setText(todo.getTitle());%0A    holder.dueDate.setText(todo.getDueDate());%0A    holder.priority.setVisibility(todo.isPriority() ? View.VISIBLE : View.INVISIBLE);%0A  %7D%0A%0A  @Override%0A  public int getItemCount() %7B%0A    return todosList.size();%0A  %7D%0A%0A  public class MyViewHolder extends RecyclerView.ViewHolder %7B%0A%0A    public AppCompatCheckBox completed;%0A    public TextView title;%0A    public TextView dueDate;%0A    public ImageView priority;%0A%0A    public MyViewHolder(View itemView) %7B%0A      super(itemView);%0A      completed = (AppCompatCheckBox) itemView.findViewById(R.id.completed
 );%0A 
@@ -1826,17 +1826,146 @@
 id.t
-vT
 itle);%0A
+      dueDate = (TextView) itemView.findViewById(R.id.dueDate);%0A      priority = (ImageView) itemView.findViewById(R.id.priority);%0A
     

Implement handling all of the components