<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<stroke android:color="@color/lightblue"
android:dashGap="@dimen/drawablePadding_2"
android:dashWidth="@dimen/drawablePadding_3"
android:width="@dimen/line_height_05"/>
</shape>
<pre name="code" class="html"><View
android:layout_width="match_parent"
android:layout_height="@dimen/line_height_1"
android:background="@drawable/blue_dot_line"
android:layerType="software"/>
注意点:1、引用的时候view的高度一定要大于storke的高度。
2、view要设置<span style="font-family: Arial, Helvetica, sans-serif;">android:layerType="software"</span>