android shap绘制虚线

android:layerType="software"

android:layout_marginTop="18dp"

android:layout_width="match_parent"

android:layout_height="2dp"

android:background="@drawable/split_line"

android:layout_marginLeft="20dip"/>



android:shape="line">


android:dashGap="3dp"

android:dashWidth="6dp"

android:width="0.5dp"

android:color="#19000000"/>



记住用虚线的view一定要添加android:layerType="software"

你可能感兴趣的:(android shap绘制虚线)