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
Component used: RecyclerView and NestedScrollView Version used: 1.3.2 Devices/Android versions reproduced on: 21 and above
I have
AppBarLayout
andBottomNavigationView
that both collapse during scroll.Calling
smoothScrollToPosition(0)
andsmoothScrollTo(0, 0)
to programmatically scrollRecyclerView
andNestedScrollView
does not trigger the CoordinatorLayout Behavior for AppBarLayout and BottomNavigationView.For RecyclerView,we can call
startNestedScroll
to trigger the coordinate behavior like this.We trigger it every time back press is called.
However there is a subtle bug here as sometimes it does not scroll all the way up, if you just slightly scroll the list and the
AppBarLayout
andBottomNavigationView
collapse, calling the above code will scroll only up to most second item based on my checking.For NestedScrollView
startNestedScroll
does not work at all.