In view of normal Lollipop transition of Activity having shared elements, e.g. https://github.com/codepath/android_guides/wiki/Shared-Element-Activity-Transition, it is quite common one is transitioning from a View from a Recycler View into a normal View of a targeted Activity.
However, in the event of the targeted view, is also in a viewholder of a recyclerView, is there a way to make that possible (i.e. provide the targeted view to the ActivityOptionsCompat)?
Thanks!
It is absolutely possible. Do do that you have to follow these steps:
supportPostponeEnterTransition()
.Step 3 usually works with this:
recyclerview.post(new Runnable() {
@Override
public void run() {
supportStartPostponedEnterTransition();
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With