Open jswong65 opened 2 years ago
Hi All, I also recently updated to 2.1 and my app UI is also broken.
I am creating customview inheriting from constraint layout.
vertical view is not getting rendered properly.
few libraries have updated to 2.1 and we have dependency moving to latest constraint layout due to this.
Kindly let me know if this bug is fixed in the latest release?
@camaelon @jswong65 can we know when will this defect be fixed.
This will not be fixed in this release cycle. It will probably be addressed mid year next year.
I suggest setting app:layout_optimizationLevel="none" Internally the fix will be to detect the situation and turn off the optimizer.
app:layout_optimizationLevel="none"
works here!
I simplified the bug to this layout and observed. This is related to some other reported issues.
https://github.com/androidx/constraintlayout/issues/397 https://github.com/androidx/constraintlayout/issues/411 https://github.com/androidx/constraintlayout/issues/421
app:layout_constraintWidth_default="wrap"
can remove the bug.app:layout_optimizationLevel="none"
would also eliminate the issue.