Support different aspect ratios for shared element transitions
See original GitHub issueWhile transitioning between two images, if they are of different aspect ratios, the image gets distorted and stretched in a very ugly way.
Is there any way to specify something like resizeMode="cover"
for the transition effect?
Issue Analytics
- State:
- Created 5 years ago
- Comments:22 (12 by maintainers)
Top Results From Across the Web
Shared Element Transition does not transform Image correctly
Create Shared Element Transitions as explained in the docs; Give source image a different aspect ratios than the destination image, e.g.:.
Read more >Android shared element transition on ImageView scale is wrong
When i exit Activity B the image transitions back to Activity A but it is scaled until it disappears then after disappearing is...
Read more >Smooth and simple transitions with the View Transitions API
The old and new views are 100% width of the group, and auto height, meaning they keep their aspect ratio regardless of the...
Read more >Delightful UI Animations With Shared Element Transitions API ...
Shared Element Transitions API is a game-changing feature that will enable us to create impressive and elaborate UI animations easily.
Read more >Continuous Shared Element Transitions: RecyclerView to ...
A shared element transition determines how views that are present in two fragments transition between them. For example, an image that is ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The aspect ratio part of it is amazing now!
I found another issue, but it’s unrelated (I think). This pull request is the bomb!
Hopefully during the weekend, @AkilLis .