<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="line">
    <stroke
        android:dashGap="1dp"
        android:dashWidth="3dp"
        android:width="1px"
        android:color="#e5e5e5" />
</shape>

 

dashWidth线长,dashGap线间隔。