NestedScrollView's fullScroll(View.FOCUS_UP) not working properly
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 even a FrameLayout to show a Fragment beneath all of this. When pressing the back button, if the user has scrolled below a certain point, instead of finishing the Activity, the "scrollToTop" method is called: public static void scrollToTop(final NestedScrollView scrollview) { new Handler().postDelayed(new Runnable() { public void run() { scrollview.fullScroll(NestedScrollView.FOCUS_UP); } }, 200); } This works in the