您的位置:首页 > Web前端 > CSS

自定义圆环样式

2016-01-07 11:48 501 查看
<?xml version="1.0" encoding="utf-8"?>

<!--rotate自定义动画 --> 

<rotate xmlns:android="http://schemas.android.com/apk/res/android"

    android:fromDegrees="0"

    android:pivotX="50%"

    android:pivotY="50%"

    android:toDegrees="360" >

<!--innerRadius:内环半径  thickness:厚度     useLevel:取消自带的动画 -->

    <shape

        android:innerRadius="12dp"

        android:shape="ring"

        android:thickness="3dp"

        android:useLevel="false" >

        

        <!-- 渐变 -->

        <gradient

            android:centerColor="#3f00"

            android:endColor="#f00"

            android:startColor="#fff" />

    </shape>

</rotate>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: