Reputation: 31
I want to perform the shared elements transition animation after the image is loaded by fresco in my android app. I listen to the download events as described here; http://frescolib.org/docs/listening-download-events.html#_ In the onFinalImageSet event I run startPostponedEnterTransition as described here http://www.androiddesignpatterns.com/2015/03/activity-postponed-shared-element-transitions-part3b.html
The image is not shown. When I put a debug log to the onFinalImageSet event, I see that it's calling repeatedly. (11 times) When I comment out the startPostponedEnterTransition it's only called once, and works as expected. Somehow transition animation triggers fresco to load the image over and over. What is the issue and how can I make it work?
Upvotes: 1
Views: 709
Reputation: 1212
Check out the Fresco transition sample app. This shows you how to use transitions with Fresco.
If you want to know how this works under the hood (e.g. if you have a custom transition), take a look at DraweeTransition
.
Upvotes: 1