I'm using an animation similar to the AnimScrollActivity and ran into issue when I tested restoring my app from state loss.
In developer settings I turned on "Don't keep activities" and then I opened the app and scrolled the activity all the way up which works as expected. I then leave the app and return, and the animation is now like this

If I then scroll, it turns into this

I've tried things like adding this into the onCreate but it causes an animation at the start, and still doesn't fully place items in the correct spots, and if I take it out of the post, it's wrong right away.
scrollview.post {
scrollview.scrollTo(0, 0)
animation.reset()
}
I'm using an animation similar to the AnimScrollActivity and ran into issue when I tested restoring my app from state loss.
In developer settings I turned on "Don't keep activities" and then I opened the app and scrolled the activity all the way up which works as expected. I then leave the app and return, and the animation is now like this
If I then scroll, it turns into this
I've tried things like adding this into the onCreate but it causes an animation at the start, and still doesn't fully place items in the correct spots, and if I take it out of the post, it's wrong right away.