ScrollView .scrollTo not working? Saving ScrollView position on rotation

I figured it out.

Since I’m using setText to TextViews in my onCreate, calling .scrollTo won’t work.

So now I’m using the following:

sView.post(new Runnable() {
    @Override
    public void run() {
        sView.scrollTo(sViewX, sViewY);
    } 
});

Leave a Comment