I am trying to align bottom between two view and align them to the top of parent. It fails when either of them is taller than the other one. Seems like app:layout_constraintBottom_toBottomOf="@id/rightText" and app:layout_constraintTop_toTopOf="parent" contradict each other.
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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">
<TextView
android:id="@+id/leftText"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="32dp"
app:layout_constraintBottom_toBottomOf="@id/rightText"
app:layout_constraintEnd_toStartOf="@id/rightText"
app:layout_constraintHorizontal_weight="3"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="Header Header Header Header Header Header Header Header" />
<TextView
android:id="@+id/rightText"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="@id/leftText"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toEndOf="@+id/leftText"
app:layout_constraintTop_toTopOf="parent"
tools:text="RightHeader RightHeader RightHeader RightHeader" />
</androidx.constraintlayout.widget.ConstraintLayout>


