onCreateView added the following code to onCreateView and nothing works, and if I create a myButton button and add a listener to it when pressed, insert the same code, everything works, how to make everything work without pressing the button automatically when creating
myScroll = (ScrollView) view.findViewById(R.id.myScroll); myScroll.scrollTo(0, 0);