shape: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line"> <size android:height="0.5dp" /> <stroke android:dashGap="4dp" android:dashWidth="3dp" android:width="1dp" android:color="@color/color_bfbfbf" /> </shape>
在调用时需要添加
android:layerType="software"属性