I am currently trying to create a circular transition between my FAB and another Activity.
From what I understodd in the documentation, I should use makeSceneTransitionAnimation in a similar way to this:
public void onFabClicked(View v){
try {
Intent intent = new Intent(this, SearchActivity.class);
ActivityOptions options = ActivityOptions
.makeSceneTransitionAnimation(this, v, "reveal");
startActivity(intent, options.toBundle());
} catch (Exception e) {
// makeSceneTransitionAnimation not supported, maybe a check of SDK level is enough to avoid catching an error?
Intent intent = new Intent(this, SearchActivity.class);
startActivity(intent);
e.printStackTrace();
}
}
Unfortunately, the current animation displays a rectangle during the animation.
How is it possible to turn this into the beautiful circular reveal that we love in Lollipop?
Thanks.
EDIT:
I am trying to achieve this (except that the color should be fullscreen, but you got the point..)):
What I actually get: