Good day! I have two textview and one textview in the ScrollView . When you click on the button text changes. But the problem is that when you click on button1 , then scroll through the text, and then press button2 , the new text opens in that place, as if not the first text was scrolled, but this one as well. It is necessary that it opens from the very beginning, and does not depend on how much the user has scrolled the first text.

    1 answer 1

    If you need to scroll the scrollView to the top position, then try this:

     buttonScrollToTop.setOnClickListener(new Button.OnClickListener() { @Override public void onClick(View v) { myScroll.scrollTo(0, 0); } });