Skip to content

Instantly share code, notes, and snippets.

@ishitcno1
Last active February 15, 2022 03:08
Show Gist options
  • Save ishitcno1/9966922 to your computer and use it in GitHub Desktop.
Save ishitcno1/9966922 to your computer and use it in GitHub Desktop.
Android animated-rotate.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:indeterminate="true"
android:indeterminateDrawable="@drawable/loading" />
</LinearLayout>
<animated-rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/ic_loading"
android:pivotX="50.0%"
android:pivotY="50.0%"
android:fromDegrees="0.0"
android:toDegrees="360.0" />
@iatharva
Copy link

Can you share the code for @drawable/ic_loading or share what kind of image does that file hold?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment