Is there a way to get an animation to run outside ...
# compose
d
Is there a way to get an animation to run outside the bounds of the composable? So as to not have the animation clipped? Details in the thread.
I have a
View
inside an
AndroidView
Composable that plays an animation. The animation is getting clipped to the bounds of the
View
, I would like to prevent the clipping.
@Rebecca Franks ☝️ ?
d
Can you share a snippet? Curious if the animation is the only thing that is clipped? What animation API are you using? Also note that View system clips children by default.
c
Just an idea: Have you tried applying
Modifier.wrapContentSize(unbounded = true)
to the AndroidView?
I’m not sure if this works across the interop boundary, just a thought though
d
@Chris Fillmore No I will try that.
No cigar
c
Le bummer
d
@Doris Liu
Copy code
val animation = rightIconImageView.drawable as AnimationDrawable
animation.start()
This is in the view.
The view I am wrapping is wrapping other views and one of them is doing the above ☝️
The rightIconImaveView is a ShapeableImageView
d
Have you tried calling
View#setClipChildren(false)
on one or more parents of that ImageView.
d
Trying that now
None of that works right now.
I have to time box this problem for now, solve it later. Thanks for your help.