Android 环形可绘制对象的中心有一条线

Android ring drawable has line down the center

我正在尝试制作一个可绘制的简单灰色环,但出于某种原因,它的中心有一条线,我似乎无法弄清楚为什么。

预览:

代码:

<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:innerRadius="0dp"
    android:shape="ring"
    android:thicknessRatio="2"
    android:useLevel="false" >

    <solid android:color="@android:color/transparent" />

    <stroke
        android:width="2dp"
        android:color="@color/gray" />
</shape>

我使用了这个问题的代码: Transparent circle with border

如果我使用 android:shape="oval" 而不是 android:shape="ring",这似乎会消失。