package edu.rpi.cs.yacs.viewholders;

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

import java.util.List;

import at.blogc.android.views.ExpandableTextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import edu.rpi.cs.yacs.R;
import edu.rpi.cs.yacs.models.Section;

/**
 * Created by Mark Robinson on 11/17/16.
 */
public class CourseItemViewHolder extends RecyclerView.ViewHolder{
    @BindView(R.id.name)
    TextView nameView;

    @BindView(R.id.code)
    TextView codeView;

    @BindView(R.id.credits)
    TextView creditsView;

    @BindView(R.id.description)
    ExpandableTextView descriptionView;

    @BindView(R.id.sectionsRecyclerView)
    RecyclerView recyclerView;

    public CourseItemViewHolder(View itemView) {
        super(itemView);
        ButterKnife.bind(this, itemView);
    }

    public void render(String name, String code, String credits, String description, List<Section> sections){
        nameView.setText(name);
        codeView.setText(code);
        creditsView.setText(credits);
        descriptionView.setText(description);


    }
}

@@ -31,16 +31,120 @@
 lders;%0A%0A
+import android.support.v4.view.ViewCompat;%0Aimport android.support.v4.view.ViewPropertyAnimatorListener;%0A
 import a
@@ -440,16 +440,84 @@
 Section;
+%0Aimport jp.wasabeef.recyclerview.animators.holder.AnimateViewHolder;
 %0A%0A/**%0A *
@@ -605,21 +605,15 @@
 nds 
-RecyclerView.
+Animate
 View
@@ -618,16 +618,17 @@
 ewHolder
+ 
 %7B%0A    @B
@@ -1043,16 +1043,799 @@
 %0A    %7D%0A%0A
+    @Override%0A    public void animateRemoveImpl(ViewPropertyAnimatorListener listener) %7B%0A        ViewCompat.animate(itemView)%0A                .translationY(-itemView.getHeight() * 0.3f)%0A                .alpha(0)%0A                .setDuration(300)%0A                .setListener(listener)%0A                .start();%0A    %7D%0A%0A    @Override%0A    public void preAnimateAddImpl() %7B%0A        ViewCompat.setTranslationY(itemView, -itemView.getHeight() * 0.3f);%0A        ViewCompat.setAlpha(itemView, 0);%0A    %7D%0A%0A    @Override%0A    public void animateAddImpl(ViewPropertyAnimatorListener listener) %7B%0A        ViewCompat.animate(itemView)%0A                .translationY(0)%0A                .alpha(1)%0A                .setDuration(300)%0A                .setListener(listener)%0A                .start();%0A    %7D%0A%0A
     publ

Modify CourseItemViewHolder