ozodrukh / CircularReveal

Lollipop ViewAnimationUtils.createCircularReveal for everyone 4.0+
MIT License
2.43k stars 391 forks source link

Activity Transtition? #13

Closed AruLNadhaN closed 9 years ago

AruLNadhaN commented 9 years ago

I want to Apply this Reveal transition to my Activity. Is it possible to make it as a Activity transition?

Curwer-zz commented 9 years ago

No but, you can animate the container view. Put the animation code as a method in your activity. Then call on this method after setContentView. And pass the container view as the argument view.

public class doMagics { .... setContentView(R.layout.blabla); LinnearLayout animateThis = (Lin...) findViewById(....)

startSwagAnimation(animateThis); }

startSwagAnimation(View view) { //Do your work }

You might need to modify the animation abit but i know it works.

ozodrukh commented 9 years ago

Hi, follow the link, and watch how he implemented reveal transition

csbenz commented 9 years ago

Check out this link too. It explains very well how to achieve what you want, with all the source code.

AruLNadhaN commented 9 years ago

Thanks a lot for the links!