我在Android N中检查了它的工作正常,但是在KitKat中,只显示了带有粉红色顺序的内圈。
这是我的图层列表drawable:
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- larger circle at the back -->
<item
android:width="60dp"
android:height="60dp"
android:gravity="center">
<shape android:shape="oval">
<solid android:color="@color/white" />
</shape>
</item>
<!-- inner circle -->
<item
android:width="40dp"
android:height="40dp"
android:gravity="center">
<shape android:shape="oval">
<solid android:color="@color/white" />
<stroke
android:width="1dp"
android:color="@color/vivid_cerise" />
</shape>
</item>
</layer-list>