package com.jameslawler.androidsimplecards.Main;

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

import com.jameslawler.androidsimplecards.R;

import java.util.List;

/**
 * Created by james on 1/31/2016.
 */
public class CardListAdapter extends RecyclerView.Adapter<CardListAdapter.ViewHolder> {
    private List<String> listItems;

    public static class ViewHolder extends RecyclerView.ViewHolder {
        public TextView infoText;
        public ViewHolder(View v) {
            super(v);
            this.infoText = (TextView) v.findViewById(R.id.info_text);
        }
    }

    public CardListAdapter(List<String> listItems) {
        this.listItems = listItems;
    }

    @Override
    public CardListAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(parent.getContext())
                .inflate(R.layout.card_item, parent, false);

        ViewHolder viewHolder = new ViewHolder(view);
        return viewHolder;
    }

    @Override
    public void onBindViewHolder(ViewHolder holder, int position) {
        holder.infoText.setText(this.listItems.get(position));
    }

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

    public void updateList(List<String> listItems) {
        this.listItems = listItems;
        this.notifyDataSetChanged();
    }
}
@@ -286,16 +286,138 @@
 .List;%0A%0A
+import butterknife.Bind;%0Aimport butterknife.ButterKnife;%0Aimport butterknife.OnClick;%0Aimport roboguice.inject.InjectView;%0A%0A
 /**%0A * C
@@ -644,16 +644,46 @@
 older %7B%0A
+        @Bind(R.id.info_text)%0A
         
@@ -708,16 +708,17 @@
 foText;%0A
+%0A
         
@@ -741,16 +741,19 @@
 r(View v
+iew
 ) %7B%0A    
@@ -767,16 +767,19 @@
  super(v
+iew
 );%0A     
@@ -789,64 +789,172 @@
     
-this
+ButterKnife.bind(this, view);%0A        %7D%0A%0A        @OnClick(R.id
 .info
-Text = (TextView) v.findViewById(R.id.info_text
+_text)%0A        public void onInfoTextClick() %7B%0A            this.infoText.setText(%22James was here%22
 );%0A 

Add Butterknife binding for ViewHolder