I'm in need of creating a receipt layout in Android. The idea is very simple, a rectangle layout with a zigzag top.
Even, i have tried dashed line but nothing working.
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<stroke
android:color="#FF00"
android:dashWidth="5dp"
android:dashGap="5dp" />
</shape>
Try with this: https://github.com/beigirad/ZigzagView
Support
top
andbottom
Zigzag.Hi you can use this library android-shape-imageview. And use transparent shape like this
End use library.
You can change
app:siShape="@drawable/zigzag"
to desired shape. You can create other png shape.Create small triangle and use repeat background
repeat_background.xml
and use it in any view
refer this and this for more