Skip to content

Latest commit

 

History

History
33 lines (16 loc) · 605 Bytes

File metadata and controls

33 lines (16 loc) · 605 Bytes

STKMaterialCardView

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;

Image