I made a CardView which has zDepth.
Thanks to reference(Japanese), I could make shadow.
#Usage Choose ZDepth from 5 type
typedef enum{
MaterialZDepth1 = 1,
MaterialZDepth2,
MaterialZDepth3,
MaterialZDepth4,
MaterialZDepth5,
}MaterialZDepth;
Use like this
cardView.zDepth = MaterialZDepth1;
cardView.zDepth = (MaterialZDepth)sender.tag;