Bug P3
Status Update
Comments
vi...@google.com <vi...@google.com>
Se...@noveogroup.com <Se...@noveogroup.com> #2
Can you attach / share a project that reproduces the issue?
pe...@gmail.com <pe...@gmail.com> #3
Now i sure this is viewpager2's bug.
because just occur recyclerview inside viewpager2 with constraintlayout, if paging3 use Independently with viewpage2 it's not problem.
because just occur recyclerview inside viewpager2 with constraintlayout, if paging3 use Independently with viewpage2 it's not problem.
va...@ebay.com <va...@ebay.com> #5
Comment has been deleted.
va...@ebay.com <va...@ebay.com> #6
Comment has been deleted.
Description
Using the Jetpack navigation library, when performing a shared element transition from a Fragment that is shown inside a
androidx.viewpager2.widget.ViewPager2
into another Fragment, the following exception is thrown:The viewpager is used with a Tablayout. The transition is used to navigate from a screen that shows a tab and below that a list of items, into a detail fragment (showing the details for the selected item fullscreen, not under a tab)
The exception only happens when a shared element is provided and when the ChangeBounds transition is set in the target fragment (Fade() does not trigger the Exception)
When removing the
FragmentNavigatorExtras
from the navigate call, or when removing thesharedElementEnterTransition = ChangeBounds()
call from the target fragment; the exception is not thrown (but there is no transition either)It seems to me that the
com.google.android.material.tabs.TabLayout
does not support theaddView(View child, int index)
call, which theandroidx.transition.TransitionUtils
class uses as part of thecreateViewBitmap(View view, Matrix matrix, RectF bounds, ViewGroup sceneRoot)
method:Relevant dependency versions: