package biz.kasual.recyclerfragment.views;

import android.content.Context;
import android.support.v7.widget.CardView;
import android.util.AttributeSet;

/**
 * Created by Stephen Vinouze on 09/11/2015.
 */
public class BasicCardView extends CardView {

    public BasicCardView(Context context) {
        super(context);
        initView();
    }

    public BasicCardView(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        initView();
    }

    private void initView() {
        setUseCompatPadding(true);
        setCardElevation(8);
        setRadius(5);
    }

}

@@ -69,16 +69,98 @@
 ontext;%0A
+import android.content.res.TypedArray;%0Aimport android.graphics.drawable.Drawable;%0A
 import a
@@ -229,16 +229,55 @@
 teSet;%0A%0A
+import biz.kasual.recyclerfragment.R;%0A%0A
 /**%0A * C
@@ -714,16 +714,273 @@
 dius(5);
+%0A%0A        int%5B%5D attrs = new int%5B%5D %7B R.attr.selectableItemBackground%7D;%0A        TypedArray ta = getContext().obtainStyledAttributes(attrs);%0A        Drawable drawableFromTheme = ta.getDrawable(0);%0A        setForeground(drawableFromTheme);%0A        ta.recycle();
 %0A    %7D%0A%0A

Add ripple drawable to cards