Ben
Ben

Reputation: 1837

Adding animation to android

I'm not even sure if it is called animation but I couldn't find it anywhere.

In my application, I want to give a star to the users once they finish some activity.

I want to make some animation that will look like this:

https://dribbble.com/shots/2795344-Jump-jump

How can I do something like this on android?

I see different applications in my device that have cool animations and cant figure out how it is done.

Of course, it doesn't have to be that star but anything that will give the same feeling.

Thank you

Upvotes: 0

Views: 106

Answers (2)

GSepetadelis
GSepetadelis

Reputation: 300

You can achieve this by using the Motion Layout

For more information you can check the official Motion Layout documentation

Upvotes: 0

Kamal Nayan
Kamal Nayan

Reputation: 1718

You can use Lottie to have sucn an amazing animation ,with just few lines of code. For example have a look here -> https://lottiefiles.com/search?q=star&category=animations

Let me make you understand how to get started with it....

(1) Add dependency for Lottie

 implementation 'com.airbnb.android:lottie:$lottieVersion'

(2) Add lottie view in layout

(3) Download animation and use it...

Reference Blog

Feel free to ask if something is unclear.

Upvotes: 1

Related Questions