You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.
I'm trying to make the Slidr work with SharedElementTransition.
I have an image on Activity A, that transitions to Activity B.
I then start to swipe back to Activity A, but the image is blank in Activity A while the slide occurs.
It only appears when the finish() method of the Activity B is called (by Slidr)
Any idea how I could make the image visible on Activity A as soon as the drag starts?
The text was updated successfully, but these errors were encountered:
Late answer, but maybe it will be useful for someone else.
As far as I can tell by looking at the code, the framework for shared element transitions simply sets the alpha of the views to 0 (search for the class ActivityTransitionCoordinator.java and the method hideViews()). Therefore all we have to do is set it back manually.
There needs to be some delay, presumably to be sure that the framework sets the alpha to 0 first. Ideally a listener would be used, but I'm not sure if there is one for listening in the calling activity.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to make the Slidr work with SharedElementTransition.
I have an image on Activity A, that transitions to Activity B.
I then start to swipe back to Activity A, but the image is blank in Activity A while the slide occurs.
It only appears when the finish() method of the Activity B is called (by Slidr)
Any idea how I could make the image visible on Activity A as soon as the drag starts?
The text was updated successfully, but these errors were encountered: