Same issue as ScrollView .scrollTo not working? Saving ScrollView position on rotation
I dynamically add items to scrollView in onCreate. I try the following after a
This works for me, replace scrollView.scrollTo() to
scrollView.scrollTo()
scrollView.post(new Runnable() { @Override public void run() { scrollView.scrollTo(0, ScrollViewYPosition);//0 is x position } });
I was helped by Vasily Kabunov 's answer in
ScrollView .scrollTo not working? Saving ScrollView position on rotation