I'm trying to create an animation which gets a percentage value (0-100) and stretches a thick line in a curve according to the value, where 100% is a full circle, 50% is half a circle and so on.
I've added a view to be my starting line:
<View
android:id="@+id/testAnimationView"
android:layout_width="30dp"
android:layout_height="50dp"
android:layout_gravity="center"
android:background="#FF000000" />
I've tried creating a ScaleAnimation
on the View but it seems I only succeed to make a "straight line" animation where the X and Y are stretched to create a bigger square, but it's not what I need..
How can I create an animation which starts with a very thin line and stretches it to a circle with the percentage value?