On shared views, set android:transitionName="@string/transition_detail"
in both first and second activity. Then launch the second activity like this:
All snippets tagged with animation
Page 1 of 1Shared element transitions
Circular reveal animation
These are the three steps to show the Material Design circular animation when launching an Activity. Make sure to only use this animation when it makes sense - it is meant to make it clear to the user that a button results in the screen being opened.
Read more…