I have a personalized Bottom Navigation in my main activity. That means I've created a Layout with 4 buttons on it and made it look like a Bottom Navigation, and each button will run a fragment.
how can I avoid rebuilding the fragments after they are re-selected? And also how can I retrieve previously executed fragments like a stack when I press the back button? (Without appearing together)