question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support different aspect ratios for shared element transitions

See original GitHub issue

While 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:closed
  • Created 5 years ago
  • Comments:22 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
israelidannycommented, Sep 19, 2018

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!

0reactions
chrfalchcommented, Sep 27, 2018

Hopefully during the weekend, @AkilLis .

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found