How can I switch between Fragments without destroying and re-creating them? (in a static-like way)

后端 未结 0 1172
刺人心
刺人心 2021-01-02 10:14

My app uses a BottomNavigationBar to switch between Fragments, and it does it this way:

public class MainActivity extends AppCompatActivity {


    @Override
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题