Status Update
Comments
le...@gmail.com <le...@gmail.com> #2
Checking with UX team they also want to update the Chip with gradient background as well. Currently specified with the gradient as compositeOver(MaterialTheme.color.surface.copy(0.75f)) for enabled - they want this to change to 1.0f.
ja...@veeva.com <ja...@veeva.com> #3
Branch: androidx-main
commit b7674378db62c194c8a8b4fd496631f9a82d9113
Author: John Nichol <jnichol@google.com>
Date: Tue Jun 14 16:21:44 2022
Update the backgrounds behind Wear Chip gradients.
Wear Chips/ToggleChips with gradiant backgrounds are missing a solid background behind the gradient.
Bug: 235937657
RelNote: "We have added a background color (MaterialTheme.color.surface) behind Chip/ToggleChips that have gradient backgrounds in order to ensure that they are properly visible in the unlikely event that a light color is used behind them."
Test: ./gradlew :wear:compose:compose-material:connectedCheck --info --daemon
Change-Id: Ibe1a442812a48a6d39912b4bbf399a2f4b11ae5b
M wear/compose/compose-material/src/commonMain/kotlin/androidx/wear/compose/material/Chip.kt
M wear/compose/compose-material/src/commonMain/kotlin/androidx/wear/compose/material/ToggleChip.kt
ho...@google.com <ho...@google.com>
ko...@gmail.com <ko...@gmail.com> #4
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.wear.compose:compose-material:1.4.0-rc01
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.