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-beta2 - ViewPager not rendering after keyboard opened #68

Open mannluca opened 5 years ago

mannluca commented 5 years ago

In version 2.0.0-beta2 there seems to be a rendering issue with view pager in constraint layout in combination with the navigation component. The bug appears if we use a ViewPager inside a Fragment which is created through the navigation component. Then if any of this ViewPager's pages contains an EditText field, after opening the keyboard for that field, the other pages in the ViewPager are not rendered anymore.

I have uploaded an example project in which the bug appears: https://github.com/mannluca/constraint-layout-2.0.0-beta2-viewpager-bug

ankit-being commented 3 years ago

@mannluca Were you able to fix this with any workaround?