You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.
Assume we want to make the following layout (views are presented as different colours).
All view sized are match constraint. I.e. view's size should be totally managed by constraint layout.
Actual result:
We see that variant1_big_view aligns to parent, but should be aligned to variant1_small_views_delimiter.
The variant1 build with the same principles as variant2. But we see that differences in start-end constraints has different behaviour.
If we change at variant1_big_view:
app:layout_constraintStart_toEndOf="@id/variant1_small_views_delimiter"
to
app:layout_constraintStart_toStartOf="@id/variant1_small_views_delimiter"
The layout looks better - variant1_big_view aligns to variant1_small_views_delimiter, but to start. Should be to the end.
I have a workaround for the issue - constraint big view to start of the delimiter and add a margin.
But it strange that variant2 works, but varian1 doesn't.
ConstraintLayout constraints should be start-end symmetric. But we see that they are not start-end symmetric.
The text was updated successfully, but these errors were encountered:
PavelSidyakin
changed the title
Incorrect behavior on constrainting to delimiter View
ConstraintLayout constraints are not start-end symmetric
Aug 17, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version 2.0.0-rc1. Also reproduced on 1.1.3.
Assume we want to make the following layout (views are presented as different colours).
All view sized are match constraint. I.e. view's size should be totally managed by constraint layout.
I created the following layout:
`
`
Actual result:
We see that variant1_big_view aligns to parent, but should be aligned to variant1_small_views_delimiter.
The variant1 build with the same principles as variant2. But we see that differences in start-end constraints has different behaviour.
If we change at variant1_big_view:
app:layout_constraintStart_toEndOf="@id/variant1_small_views_delimiter"
to
app:layout_constraintStart_toStartOf="@id/variant1_small_views_delimiter"
The layout looks better - variant1_big_view aligns to variant1_small_views_delimiter, but to start. Should be to the end.
I have a workaround for the issue - constraint big view to start of the delimiter and add a margin.
But it strange that variant2 works, but varian1 doesn't.
ConstraintLayout constraints should be start-end symmetric. But we see that they are not start-end symmetric.
The text was updated successfully, but these errors were encountered: