廢話不多說, 上圖
代碼
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<size android:height="1dp"/>
<stroke
android:dashGap="3dp"
android:dashWidth="10dp"
android:width="1dp"
android:color="@color/gray">
</stroke>
</shape>