小编vin*_*inb的帖子

Android L无法将虚线绘制为可绘制背景

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>
Run Code Online (Sandbox Code Playgroud)

我也在xml中使用layerType ='software'.请帮助.

xml shape dotted-line android-5.0-lollipop

5
推荐指数
1
解决办法
1642
查看次数

标签 统计

android-5.0-lollipop ×1

dotted-line ×1

shape ×1

xml ×1