Is there a way to programmatically scroll to the top of a NestedScrollView by also triggering the scroll events for the parent? smoothScrollTo(x, y)
NestedScrollView
smoothScrollTo(x, y)
You can use this for smooth scroll.
nestedScrollView.fullScroll(View.FOCUS_UP); nestedScrollView.smoothScrollTo(0,0);
OR for normal scroll
nestedScrollView.fullScroll(View.FOCUS_UP); nestedScrollView.scrollTo(0,0);