package com.fisheradelakin.bitdate;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.RelativeLayout;

/**
 * Created by Fisher on 8/3/15.
 */
public class CardStackContainer extends RelativeLayout {

    public CardStackContainer(Context context) {
        this(context, null, 0);
    }

    public CardStackContainer(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public CardStackContainer(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }
}

@@ -62,16 +62,59 @@
 ontext;%0A
+import android.support.v7.widget.CardView;%0A
 import a
@@ -139,16 +139,16 @@
 uteSet;%0A
-
 import a
@@ -276,16 +276,55 @@
 yout %7B%0A%0A
+    private CardAdapter mCardAdapter;%0A%0A
     publ
@@ -595,24 +595,24 @@
 tyleAttr) %7B%0A
-
         supe
@@ -649,11 +649,265 @@
 );%0A    %7D
+%0A%0A    public void setCardAdapter(CardAdapter cardAdapter) %7B%0A        mCardAdapter = cardAdapter;%0A%0A        if(mCardAdapter.getCount() %3E 0) %7B%0A            CardView cardView = mCardAdapter.getView(0, null, this);%0A            addView(cardView);%0A        %7D%0A    %7D
 %0A%7D%0A

set adapter