How can I make such drawable in xml for androd?
I was thinking about using layer-list but it doesn't seem working:
Here is what I got now:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<rotate
android:fromDegrees="45"
android:toDegrees="45"
android:pivotX="0%"
android:pivotY="100%" >
<shape
android:shape="rectangle" >
<stroke android:color="@android:color/transparent" android:width="10dp"/>
<solid
android:color="@color/colorPrimary" />
</shape>
</rotate>
</item>
<item>
<rotate
android:fromDegrees="-45"
android:toDegrees="45"
android:pivotX="0%"
android:pivotY="0%" >
<shape
android:shape="rectangle" >
<stroke android:color="@android:color/transparent" android:width="10dp"/>
<solid
android:color="@color/colorPrimary" />
</shape>
</rotate>
</item>
<item>
<shape
android:shape="rectangle" >
<stroke android:color="@android:color/transparent" android:width="10dp"/>
<solid
android:color="@color/colorPrimary" />
</shape>
</item>
</layer-list>
and here is what I need:
how is it possible to achieve something like this?
Or is there any online generator for such shapes?