<?xml version="1.0" encoding="utf-8"?> <rotate xmlns:android="http://schemas.android.com/apk/res/android" android:fromDegrees="0" android:pivotX="50%" android:pivotY="50%" android:toDegrees="360" > <shape android:innerRadiusRatio="2.5" android:shape="ring" android:thicknessRatio="15" android:useLevel="false" > <gradient android:endColor="#fff" android:startColor="#f00" android:type="sweep" /> </shape> </rotate>
本文介绍了一种使用XML定义旋转动画的方法,通过设置不同的属性实现环形渐变色旋转效果。具体包括旋转角度、中心点位置及形状填充等关键参数。
1258

被折叠的 条评论
为什么被折叠?



