0

When I move from one Fragment to the other, I want the state of it to stay the same and not restart every time I click back. For example the scroll position, what was clicked on, etc. Everything should remain the same.

Any help is appreciated!

  • 3
    Possible duplicate of [Once for all, how to correctly save instance state of Fragments in back stack?](https://stackoverflow.com/questions/15313598/once-for-all-how-to-correctly-save-instance-state-of-fragments-in-back-stack) – Bö macht Blau Jun 19 '18 at 19:34
  • @0X0nosugar All of the solution's I've found include an OnRestoreInstanceState method but I don't thin Android's Fragment still includes this method. – Faaris Sattar Jul 05 '18 at 18:47
  • I think for Fragment it's called onViewStateRestored() – Bö macht Blau Jul 05 '18 at 18:48

0 Answers0