mikescamell / shared-element-transitions

Source code for a blog post series on Shared Element Transitions in Android
http://bit.ly/sharedelementtransitions
MIT License
284 stars 73 forks source link

resize when back #10

Open cazador4 opened 7 years ago

cazador4 commented 7 years ago

please see the picture with starfish example image

when I press back button the animation get back but a rare size shrink occurs. (in the second back press in gif you will see clearly)

Do you have any ideas of what is going on?

Thanks

mikescamell commented 7 years ago

Hey i believe it's do with the size i set for the smaller image, it's not the same aspect ratio as the large image so you see this effect. If both the smaller image and the larger image have the same aspect ratio the i think this won't be a problem. When I created it, it was just to be a simple example so I wasn't worried about this aspect ratio issue.