zigzag view for Android

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.

261 total views, 8 views today

(Visited 104 times, 4 visits today)

You May Also Like

About the Author: Android Developer

This is Mohammad I am Android Application Developer. I am the founder of Android Tutorial Online blog. I am programming lover and professional blogger from India. I spend most of my time doing programming and helping other programmers. This Android tutorial online blog for learning and share Android code.
My Chatbot
Powered by Replace Me