I want to make dashed line using shape
.
This is my XML:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="line">
<stroke android:color="@color/grey_divider"
android:width="1dip"
android:dashWidth="5dip"
android:dashGap="13dip"/>
</shape>
</item>
</selector>
On my device I see this:
But I need something like this:
How to fix it?
Try this
Make one xml file in drawable.(e.g. dashed_line.xml)
And now use this xml file in your layout.