My fragments keep recreating whenever I reclick or navigate to the next fragment
问题 I have implemented the new architecture component on my android app, but unfortunately handling the states of these fragments has become a nightmare for me. Whenever I press the icon of the fragment, the fragment is recreated every time I navigate. How can I handle this or rather save these fragments states? Here is my main activity handling the five fragments: public class MainActivityCenterofInformation extends AppCompatActivity { BottomNavigationView bottomNavigationView; @Override