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.
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:
`<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".MainActivity">
`
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.