Parag Rane
Parag Rane

Reputation: 318

Create a gif animation for imageview

I'm very new to android animation.

I want to create a gif animation like this:

enter image description here

I want to show this animation as a progress bar on an imageview. Instead of using a gif file, I want to create an animation file.

Upvotes: 0

Views: 161

Answers (1)

Cristian Holdunu
Cristian Holdunu

Reputation: 1918

The simplest way nowadays is to use lottie. https://airbnb.design/lottie/

Alternatively, you could implement a custom view and animate the loading process in the onDraw(canvas: Canvas) method, it you want to learn how to implement custom views.

Upvotes: 1

Related Questions