Status Update
Comments
le...@gmail.com <le...@gmail.com> #2
ja...@veeva.com <ja...@veeva.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
ho...@google.com <ho...@google.com>
ko...@gmail.com <ko...@gmail.com> #4
This issues is shipped into 1.1.0 stable version. It is a breaking behaviour change and a bug.
os...@google.com <os...@google.com>
cl...@google.com <cl...@google.com> #5
Lowering the priority to get it off the chaselist
ap...@google.com <ap...@google.com> #6
Project: platform/frameworks/support
Branch: androidx-main
Author: Oscar Adame Vázquez <
Link:
Fix Measure/Layout pass handling in ConstraintLayout
Expand for full commit details
Fix Measure/Layout pass handling in ConstraintLayout
ConstraintLayout was not properly handling Measurable/Placeable lifecycle.
As different passes are made with different instances, improper upkeep can result in issues, such as Composables not being placed.
Relnote: N/A
Fixes: 299134793
Test: updated with regression test case
Change-Id: I3831c682b409105274f4bf2e98af303395561c35
Files:
- D
constraintlayout/constraintlayout-compose/api/current.ignore
- D
constraintlayout/constraintlayout-compose/api/restricted_current.ignore
- M
constraintlayout/constraintlayout-compose/api/restricted_current.txt
- M
constraintlayout/constraintlayout-compose/src/androidInstrumentedTest/kotlin/androidx/constraintlayout/compose/ConstraintLayoutTest.kt
- M
constraintlayout/constraintlayout-compose/src/androidMain/kotlin/androidx/constraintlayout/compose/ConstraintLayout.kt
- M
constraintlayout/constraintlayout-compose/src/androidMain/kotlin/androidx/constraintlayout/compose/LateMotionLayout.kt
- M
constraintlayout/constraintlayout-compose/src/androidMain/kotlin/androidx/constraintlayout/compose/MotionLayout.kt
- M
constraintlayout/constraintlayout-compose/src/androidMain/kotlin/androidx/constraintlayout/compose/MotionMeasurer.kt
Hash: c999aaf73e2eba0b893c3fde2546c6d400f77431
Date: Tue Nov 12 13:37:12 2024
jr...@gmail.com <jr...@gmail.com> #7
ap...@google.com <ap...@google.com> #8
Project: platform/frameworks/support
Branch: androidx-main
Author: Oscar Adame Vázquez <
Link:
Re-land fix for Measure/Layout pass in ConstraintLayout
Expand for full commit details
Re-land fix for Measure/Layout pass in ConstraintLayout
Similar as I3831c682b409105274f4bf2e98af303395561c35 but without changes to PublishedApi.
ConstraintLayout was not properly handling Measurable/Placeable lifecycle.
As different passes are made with different instances, improper upkeep can result in issues, such as Composables not being placed.
Bug: 299134793
Test: updated with regression test case
Change-Id: Ia3351e13e1ee96bc33f5e6bb5e4f522274ff9c5f
Files:
- M
constraintlayout/constraintlayout-compose/api/restricted_current.txt
- M
constraintlayout/constraintlayout-compose/src/androidInstrumentedTest/kotlin/androidx/constraintlayout/compose/ConstraintLayoutTest.kt
- M
constraintlayout/constraintlayout-compose/src/androidMain/kotlin/androidx/constraintlayout/compose/ConstraintLayout.kt
- M
constraintlayout/constraintlayout-compose/src/androidMain/kotlin/androidx/constraintlayout/compose/LateMotionLayout.kt
- A
constraintlayout/constraintlayout-compose/src/androidMain/kotlin/androidx/constraintlayout/compose/Measurer.kt
- M
constraintlayout/constraintlayout-compose/src/androidMain/kotlin/androidx/constraintlayout/compose/MotionLayout.kt
- M
constraintlayout/constraintlayout-compose/src/androidMain/kotlin/androidx/constraintlayout/compose/MotionMeasurer.kt
Hash: 796a51fffa3202f9d206e49a62d6255d645364cb
Date: Tue Jan 21 14:22:31 2025
os...@google.com <os...@google.com> #9
The fix should now be available in :constraintlayout-compose:1.1.1
Description
ConstraintLayout version: constraintlayout-compose:1.1.0-alpha12
Jetpack Compose version: 1.6.0-alpha04
Jetpack Compose component used: ConstraintLayout
Android Studio Build: Android Studio Giraffe | 2022.3.1 Build #AI-223.8836.35.2231.10406996, built on June 29, 2023 Runtime version: 17.0.6+0-17.0.6b829.9-10027231 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Kotlin version: 1.9.10
Material Version: material3:1.2.0-alpha06
This is a regression issue, latest version of
constraintlayout-compose
which worked well:1.1.0-alpha05
Steps to Reproduce or Code Sample to Reproduce:
visibility = if (!detailVisible) Visibility.Gone else Visibility.Visible
)width = Dimension.fillToConstraints
property causes the other ComposeView not to be shown on the screenSample Code
Here you can find a sample project to reproduce it:https://github.com/jarroyoesp/ConstraintLayoutIssue
And this issue just happens in case we use
Visibility.Gone
. If we useVisibility.Invisible
it works well.Temporary Fix
We find a possible fix. If we only set
width
toDimension.fillToConstraints
and in other case we set toDimension.wrapContent
, all the ComposeViews are shown when is their time.