I am trying in a constraint layout to make two buttons take the same size as the one with more text.
Playing with the height attribute of the buttons, setting it to "0" you can get one button to follow the other, but the other does not do the same
here is the code
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/tools_ly_first_buttons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_bubble_answer_buttons"
android:layout_marginEnd="@dimen/margin_bubble_answer_buttons"
android:layout_marginBottom="2dp"
android:visibility="visible"
app:layout_constraintEnd_toEndOf="@+id/tools_btn_1"
app:layout_constraintStart_toEndOf="@+id/tools_btn_1"
tools:visibility="visible">
<Button
android:id="@+id/tools_btn_1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@drawable/btn_round_confirmation_yes"
android:fontFamily="@font/calibri_regular"
android:textAllCaps="false"
android:textColor="@color/white"
android:layout_marginEnd="1dp"
android:textSize="14sp"
android:padding="@dimen/padding_bubble_answer_buttons_text"
tools:text="Perfect asdasdas."
app:layout_constraintEnd_toStartOf="@+id/tools_btn_2"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/tools_ly_first_buttons"
app:layout_constraintBottom_toBottomOf="@id/tools_ly_first_buttons"/>
<Button
android:id="@+id/tools_btn_2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@drawable/btn_round_confirmation_yes"
android:fontFamily="@font/calibri_regular"
android:textAllCaps="false"
android:textColor="@color/white"
android:padding="@dimen/padding_bubble_answer_buttons_text"
android:layout_marginStart="1dp"
android:textSize="14sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/tools_btn_1"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
tools:text="Perfect Perfect square trition. Perfect Perfect square trition. Perfect Perfect square trition. Perfect Perfect square trition. Perfect Perfect square trition. Perfect Perfect square trition." />
</androidx.constraintlayout.widget.ConstraintLayout>


