Marcin Wisniowski
09/18/2024, 4:36 PMModifier.clipToBounds()
, but not on all children of the layout. Is it possible to apply this effect for only some children, or have some of them ignore it? I want to clip all children to the bounds of the parent, but still allow a particular child to go outside.Zach Klippenstein (he/him) [MOD]
09/18/2024, 5:24 PMephemient
09/18/2024, 5:41 PMMarcin Wisniowski
09/18/2024, 5:42 PMZach Klippenstein (he/him) [MOD]
09/18/2024, 5:43 PMclipToBounds
would even work on the list?Marcin Wisniowski
09/18/2024, 5:44 PMclipToBounds()
it's all good.
But I have some other items that I don't want clipped.Zach Klippenstein (he/him) [MOD]
09/18/2024, 5:44 PMephemient
09/18/2024, 5:45 PMMarcin Wisniowski
09/18/2024, 5:46 PMDoris Liu
09/18/2024, 5:50 PMoverlayClip
in shared element is what you need to specify. Do you have a visual for what it looks like right now with incorrect clipping?Marcin Wisniowski
09/18/2024, 5:54 PMephemient
09/18/2024, 5:58 PMDoris Liu
09/18/2024, 6:02 PMMarcin Wisniowski
09/18/2024, 6:03 PMMarcin Wisniowski
09/18/2024, 6:03 PMDoris Liu
09/18/2024, 6:05 PMDuring animation, the element draws outside the SharedTransitionLayoutAre you sure the SharedTransitionLayout isn't occupying the whole screen, while the list itself is padded to account for the top bar?
Marcin Wisniowski
09/18/2024, 6:06 PMDoris Liu
09/18/2024, 6:08 PMclipToBounds
to SharedTransitionLayout.Doris Liu
09/18/2024, 6:10 PMMarcin Wisniowski
09/18/2024, 6:10 PMDoris Liu
09/18/2024, 6:12 PMMarcin Wisniowski
09/18/2024, 6:16 PMDoris Liu
09/18/2024, 6:16 PMMarcin Wisniowski
09/18/2024, 6:21 PMOverlayClip
, I will see if that worksDoris Liu
09/18/2024, 6:25 PMOverlayClip
to share among all children. Note the returning path is in the coordinate space of the sharedTransitionLayout
, so you need a rectangle shaped clip path from (0, 0) to the (width, height) of the SharedTransitionLayout.Marcin Wisniowski
09/18/2024, 6:29 PMgetClipPath
, or should I be using external state?Doris Liu
09/18/2024, 6:32 PMMarcin Wisniowski
09/18/2024, 6:40 PMMarcin Wisniowski
09/18/2024, 6:41 PMVery cool animation BTW.Made with a very cool API. 🙂
Marcin Wisniowski
09/18/2024, 6:52 PMPlease feel free to file a feature requesthttps://issuetracker.google.com/issues/368059213 Done 👍
Marcin Wisniowski
09/18/2024, 7:02 PMDoris Liu
09/18/2024, 7:07 PM