I have a NestedScrollView populated with a vertical LinearLayout, which itself has a bunch of children of various view types: multiple TextViews, two static GridViews, and e
try this
add android:descendantFocusability="blocksDescendants"
to the LinearLayout
inside NestedScrollView
and this also
to scroll to top of NestedScrollView
use this
NestedScrollView.scrollTo(0, 0);
Edit
Use fling() and smoothScrollTo togather
nestedScrollView.post(new Runnable() {
@Override
public void run() {
nestedScrollView.fling(0);
nestedScrollView.smoothScrollTo(0, 0);
}
});