Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Jetcaster] Fixed to enable SharedElementTransition to run in the Grid list #1492

Conversation

yongsuk44
Copy link
Contributor

@yongsuk44 yongsuk44 commented Oct 18, 2024

The PR for #1489.

@yongsuk44 yongsuk44 requested a review from a team as a code owner October 18, 2024 12:07
@yongsuk44 yongsuk44 mentioned this pull request Oct 18, 2024
@simona-anomis simona-anomis requested review from riggaroo and simona-anomis and removed request for bentrengrove October 18, 2024 17:39
Comment on lines +331 to +333
CompositionLocalProvider(
LocalAnimatedVisibilityScope provides animatedContentScope
) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whats the reasoning for moving this further down the tree?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed an issue where the animation was being executed in other areas when the AnimationScope was propagated to the SupportingPane. To address this, I modified it so that the scope is passed only to the node where the animation should occur.

Fold_ux.mp4

@simona-anomis
Copy link
Contributor

LGTM, but I'll let @riggaroo give the final approval before merging :) thanks for doing this @yongsuk44

Comment on lines -84 to -87
Box(
modifier = Modifier
.background(placeholderBrush)
.fillMaxSize()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is currently part of the design :) So i think it needs to be left in.
Screenshot 2024-10-21 at 09 47 34

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you can see, the background created in advance made the UX appear awkward during the image animation, so I removed it. Do you think a rollback is needed?

before_img_box.mp4
after_img_box.mp4

@riggaroo
Copy link
Collaborator

Thanks @yongsuk44 for working on this and @simona-anomis for tagging! This change may need to wait for the next stable release of Compose, since official Lazy Grid support for shared elements only just got merged (https://android-review.git.corp.google.com/c/platform/frameworks/support/+/3287098) . I'm just checking in with Doris to confirm what issues we'd see.

@riggaroo
Copy link
Collaborator

Thanks @yongsuk44 for working on this and @simona-anomis for tagging! This change may need to wait for the next stable release of Compose, since official Lazy Grid support for shared elements only just got merged (https://android-review.git.corp.google.com/c/platform/frameworks/support/+/3287098) . I'm just checking in with Doris to confirm what issues we'd see.

We will need to unfortunately wait for Compose 1.8 for this upgrade, as right now even though shared elements look like they are working okay in Lazy Grids, they could cause unknown crashes and issues with scrolling etc.

@simona-anomis
Copy link
Contributor

Spoke to @riggaroo , we will merge this now into my branch #1489

Then, when 1.8 is stable, we'll merge that into main :) thanks for the contribution @yongsuk44

@simona-anomis simona-anomis merged commit e25deeb into android:anomis/jetcaster-ui-update Nov 6, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants