尝试将Android Ring Shape动画化,以产生类似于所示序列图像的效果。
我已经找到了Ring形状的Shape Drawable类型。
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="ring"
android:innerRadius="75dp"
android:thickness="25dp"
android:useLevel="false">
随着ArcShape(startAngle, sweepAngle)方法的出现。
ShapeDrawable shape = new ShapeDrawable(new ArcShape(0, 360));
shape.setIntrinsicHeight(100);
shape.setIntrinsicWidth(100);
shape.getPaint().setColor(Color.BLACK);
然而,问题在于找不到可调整绘制形状扫描角度属性或创建ArcShape内半径的能力。
我正尝试制作流畅的动画。