Fixed
Status Update
Comments
il...@google.com <il...@google.com>
cl...@google.com <cl...@google.com> #2
Nested scrolling works partially (as per http://b/122818889 ). Let's discuss if we need full support and if so make sure it works.
ap...@google.com <ap...@google.com> #3
Hi!
What is 'partially' exactly?
How do I see it?
Thanks!
What is 'partially' exactly?
How do I see it?
Thanks!
cl...@google.com <cl...@google.com> #4
As of now:
- Nesting scroll views with a scroll direction perpendicular to the ViewPager2's orientation inside ViewPager2 works
- Nesting scroll views with a scroll direction parallel to the ViewPager2's orientation inside ViewPager2 does not work
- Nesting scroll views with a scroll direction perpendicular to the ViewPager2's orientation inside ViewPager2 works
- Nesting scroll views with a scroll direction parallel to the ViewPager2's orientation inside ViewPager2 does not work
na...@google.com <na...@google.com> #5
Horizontal ViewPager2 not correctly working into a vertical RecyclerView
Set a setNestedScrollingEnabled to the RecyclerView into the ViewPager2 (across reflection) resolves the problem
Set a setNestedScrollingEnabled to the RecyclerView into the ViewPager2 (across reflection) resolves the problem
na...@google.com <na...@google.com> #6
ageevvalentin@gmail.com, could you provide a sample app? I'd like to learn more about the circumstances that cause the problem; putting a clean ViewPager2 inside a clean RecyclerView seems to work fine, so there must be other factors involved.
Description
Component used: Navigation
Version used:
If this is a bug in the library, we would appreciate if you could attach:
Issue:
Hi, I just encountered a weird behaviour which can be reproduced every time. My setup looks like this, Single Activity with Compose Navigation, some screens are locked to portrait orientation, some can be used in every orientation, e.g. to display images or videos.
Orientation is set like this while navigating:
ScreenA
is locked to portrait,ScreenB
can be used in every orientation. IfScreenB
is used in landscape mode, while navigating back an orientation change is requested which leads to activity recreation. I think because of the activity recreationScreenBViewModel.onCleared
is not called...How to reproduce?
ScreenBViewModel.onCleared
is not calledYou can just search the logs for "ScreenBViewModel", an info gets logged for init and onCleared of
ScreenBViewModel
. IfScreenB
doesn't change its orientationonCleared
is called as expected.Expected behaviour:
For step 5
ScreenBViewModel.onCleared
is calledDo you have any recommendations for a temporary workaround or any suggestions how orientation changes can be forced without losing the
onCleared
call?Let me know if you need more info.
Best regards ✌️