Duplicate of 183019123 Bug P2 Add Hotlist Status UpdateNo update yet.Descriptionpa...@dif.tech created issue #1Oct 17, 2024 03:28PMJetpack Compose version: 1.7.3 Jetpack Compose component used: ripple Android Studio Build: any Kotlin version: 2.0.20 We updated from compose 1.6.8 to 1.7.3. Ripple started to look really weird when layout is changing. The code i use for expandable layout: @Composable fun AnimatableExpandableColumn( isExpanded: Boolean, content: @Composable ColumnScope.() -> Unit, ) { AnimatableExpandableLayout( isExpanded = isExpanded, ) { Column( content = content, ) } } @Composable fun AnimatableExpandableLayout( isExpanded: Boolean, content: @Composable () -> Unit, ) { val expandFraction = animateFloatAsState(if (isExpanded) 1f else 0f) Layout( content = content, ) { measurables, constraints -> val placeables = grabIf(expandFraction.value != 0f) { measurables.map { measurable -> measurable.measure(constraints) } } val height = placeables?.maxBy { it.height }?.height ?: 0 layout(constraints.maxWidth, (height * expandFraction.value).toInt()) { placeables?.forEach { it.place(0, 0) } } } } Screen_recording_20241017_182348.webm 3.4 MB DownloadIssue summaryCommentsAll comments Oldest first jo...@google.com <jo...@google.com> #2Oct 18, 2024 11:29AMReassigned to lp...@google.com.Hi, we recently landed an improvement around this area (https://android-review.googlesource.com/c/platform/frameworks/support/+/3284564). This was released in 1.8.0-alpha04. Please try this version and let us know if it fixes the issue - thanks! lp...@google.com <lp...@google.com> Oct 30, 2024 08:08AMStatus: Duplicate of 183019123Add comment Comment
Description
Jetpack Compose version: 1.7.3 Jetpack Compose component used: ripple Android Studio Build: any Kotlin version: 2.0.20
We updated from compose 1.6.8 to 1.7.3. Ripple started to look really weird when layout is changing.
The code i use for expandable layout: