【发布时间】:2014-07-02 16:40:24
【问题描述】:
Android L 无法将虚线绘制为可绘制背景,如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="line" >
<stroke
android:dashGap="1dp"
android:dashWidth="1dp"
android:color="#999999" />
<size android:height="1dp" />
</shape>
</item>
</selector>
我也在 xml 中使用 layerType='software'。 请帮忙。
【问题讨论】:
-
你试过添加笔画宽度吗?
标签: xml shape android-5.0-lollipop dotted-line