android / codelab-constraint-layout

Constraint Layout Codelab
https://codelabs.developers.google.com/codelabs/constraint-layout/
Apache License 2.0
469 stars 243 forks source link

2.0.0-beta1 - View Pager layout constraint jumps to the end state when progress > 0 #64

Open Yuval-segal-trendypal opened 5 years ago

Yuval-segal-trendypal commented 5 years ago

This issue started after updating the gradle dependency to 2.0.0-beta1.

<androidx.viewpager.widget.ViewPager android:transitionName="@string/shop_item_image_transition_name" android:id="@+id/storeFirstPageViewPager" android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintBottom_toTopOf="@+id/guideline166" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" />

This is the view pager in the xml - and guideline166 starts the transition at 65% and ends at 51%.

When I just start the transition the viewpager size jumps to it's end state. Other view are OK and in the alpha versions of constraint-layout it worked fine.