当前位置: 代码迷 >> Android >> 使用shape画环的有关问题
  详细解决方案

使用shape画环的有关问题

热度:30   发布时间:2016-05-01 10:51:19.0
使用shape画环的问题
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:innerRadiusRatio="3"
    android:shape="ring"
    android:thicknessRatio="8"
    android:useLevel="false" >

    <size
        android:height="48dip"
        android:width="48dip" />

    <gradient
        android:centerColor="#4c737373"
        android:centerY="0.50"
        android:endColor="#ffffd300"
        android:startColor="#4c737373"
        android:type="sweep"
        android:useLevel="false" />

</shape>

我的效果
网上的效果
为什么我的中间不是空的

------解决方案--------------------
用代码倒是好实现     有个stroke mode之类的东西
------解决方案--------------------
是不是你系统版本的问题啊
  相关解决方案