[英]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>
我使用了這個問題的代碼: 帶邊框的透明圓圈
如果我使用android:shape="oval"
而不是android:shape="ring"
這似乎就消失了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.