The app:layout_constraintVertical_chainStyle="spread_inside" or any of the options – packed, spread – has not effect; why?
Advertisements <?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" app:layout_constraintVertical_chainStyle="spread_inside"> <androidx.appcompat.widget.AppCompatButton android:id="@+id/button1" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Button 1" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintBottom_toTopOf="@+id/button2" app:layout_constraintTop_toTopOf="parent"/> <androidx.appcompat.widget.AppCompatButton android:id="@+id/button2" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Button 2" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/button1" app:layout_constraintBottom_toTopOf="@id/button3"/> <androidx.appcompat.widget.AppCompatButton android:id="@+id/button3" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Button 3" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/button2"/> </androidx.constraintlayout.widget.ConstraintLayout> In the provided code, the attribute app:layout_constraintVertical_chainStyle="spread_inside" is set on the parent ConstraintLayout. This… Read More The app:layout_constraintVertical_chainStyle="spread_inside" or any of the options – packed, spread – has not effect; why?