答案 0 :(得分:0)
请尝试使用以下代码
<?xml version="1.0" encoding="utf-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:pivotX="50%" android:pivotY="50%" android:fromDegrees="0"
android:toDegrees="360">
<shape android:shape="ring" android:innerRadiusRatio="3"
android:thicknessRatio="10" android:useLevel="false">
<size android:width="100dip" android:height="100dip" />
<gradient android:type="sweep" android:useLevel="false"
android:startColor="#4ab0da"
android:endColor="#4ab0da"
android:centerColor="#eee"
android:angle="0"
/>
</shape>
</rotate>
答案 1 :(得分:0)