I currently have 5 fragments that I can switch between but each time I switch, the fragment that becomes active, recreates itself. I want to know how I can make it so that if a fragment is no longer displaying, it's state is still saved in the background so when I come back to this fragment, it is still how it was left. This is the current code that I have..I currently have 5 fragments that I can switch