nanoweb
nanoweb

Reputation: 125

Need help regarding add to card fly animation in android

Is there any library available in android which fly image to specific area and then disappear it like most of the shopping apps where when user clicks on add to cart, the particular product flies to the cart(some sort of animation).

How to do this stuff

Upvotes: 0

Views: 1349

Answers (1)

Aritra Roy
Aritra Roy

Reputation: 15615

enter image description here

Yes, there is this nice library here which is what you are exactly looking for. I have personally used it and can assure you that it does its job perfectly.

Its very light-weight and simple to use too.

Add this dependency,

dependencies {
    compile( 'com.dk.animation.circle:library:0.1.0@aar')
}

And to run it, just do this,

new CircleAnimationUtil().attachActivity(MainActiviy.this).setTargetView(mTargetView).setDestView(mDestView).startAnimation();

Hope it helps you.

Upvotes: 2

Related Questions