package ve.com.abicelis.chefbuddy.views;

import android.content.Context;
import android.support.annotation.Nullable;
import android.support.v7.widget.CardView;
import android.util.AttributeSet;
import android.view.LayoutInflater;

import ve.com.abicelis.chefbuddy.R;
import ve.com.abicelis.chefbuddy.util.DimensionUtil;

/**
 * Created by abicelis on 14/7/2017.
 */

public class FancyCardView extends CardView {

    public FancyCardView(Context context) {
        super(context);
        init(context);
    }
    public FancyCardView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        init(context);
    }
    public FancyCardView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init(context);
    }

    private void init(Context context) {
        this.setRadius(DimensionUtil.convertDpToPixel(6));

        int contentPadding = (int)DimensionUtil.convertDpToPixel(12);
        this.setContentPadding(contentPadding, contentPadding, contentPadding, contentPadding);
    }


}

@@ -67,16 +67,41 @@
 ontext;%0A
+import android.os.Build;%0A
 import a
@@ -880,21 +880,16 @@
         
-this.
 setRadiu
@@ -926,16 +926,44 @@
 el(6));%0A
+        setCardElevation(0);
 %0A       
@@ -1037,13 +1037,8 @@
     
-this.
 setC

set cardElevation = 0