from activity a b , set enter , return transitions. want put fadein animation after return transition ( b a after back).
originally , thought in activity's onstart method place. turns out don't see fadein animation suppose ending of return transition happens after onstart()
i checked sharedelementcallback doesn't tell when transition ends.
how catch moment when return transition ends ?
for activity
you'll need call overridependingtransition() in activity
a after calling startactivity()
, provide own animations. can override onenteranimationcomplete()
in activity
a know when has been animated on screen.
for fragment
s, can adding own custom animations transitions using setcustomanimations() on transaction. these override default animations fragment
transitions.
Comments
Post a Comment