Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
Devices/Android versions reproduced on: All
Problem:
Children height inside LinearLayout inside ConstraintLayout not properly set
Reproduce:
Having a LinearLayout where the height is constrained with children who have their height defined by layout_weight.
Size of LinearLayout grows with the constraints but the child height stays the same. (WrapContent)
Problem does not occur in 2.0.0-alpha3.
<LinearLayout
android:id="@+id/scores"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:orientation="vertical"
// some constraints that allow the LinearLayout to grow
app:layout_constraintEnd_toEndOf="@id/score_title"
app:layout_constraintStart_toStartOf="@id/score_title"
app:layout_constraintTop_toTopOf="@id/team1_name"
app:layout_constraintBottom_toBottomOf="@id/team2_name">
<TextView
android:id="@+id/score1"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center"
tools:text="1"/>
<TextView
android:id="@+id/score2"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center"
tools:text="3"/>
</LinearLayout>