drawable dash width android code example
Example: making dashed line android
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<stroke
android:width="1dp" ---> width
android:color="@color/line" ---->Dotted line color
android:dashGap="4dp" ---->Dotted line width
android:dashWidth="6dp"/> --->Width of dotted line
</shape>