zigzag view for Android

a zigzag view for using for ticket or invoice

ZigzagView

Setup

Step #1. Add the JitPack repository to root build.gradle file:

Step #2. Add the dependency

Implementation

Attributes

AttributeTypeDefault ValueDescription
zigzagHeightdimension0dpheight of zigzag jags
zigzagElevationdimension0dpside of shadow
zigzagBackgroundColorcolorColor.WHITEbackground color
zigzagPaddingContentdimension0dpcontent padding
zigzagPaddingdimension0dpview padding
zigzagPaddingLeftdimensionzigzagPaddingleft side view padding
zigzagPaddingRightdimensionzigzagPaddingright side view padding
zigzagPaddingBottomdimensionzigzagPaddingbottom side view padding
zigzagPaddingTopdimensionzigzagPaddingtop side view padding
zigzagSidesenumbottomchoosing zigzag sides
zigzagShadowAlphafloat [0,1.0]0.5amount of shadow transparency

Thanks

Reza Kardoost for helping me out with ZigzagView Shadow/Elevation.

 2,272 total views,  3 views today

(Visited 741 times, 2 visits today)