0
Hello, all right? I’m making a server-going Fragment as a sort of menu cards on the initial interface. I made it every time the app opens It creates this interface inside a Constrainslayout, but when I open it and I click back it disappears and only the bottomNavBar and the Constrains goes...
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_bottom_nav_bar);
cardButtonID = (CardView) findViewById(R.id.cardButtonID);
animationMenu();
//chamando a UI
if (savedInstanceState == null){
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
fragmentTransaction.addToBackStack(null);
fragmentTransaction.add(R.id.mainViewId, new MainPageFragment());
fragmentTransaction.commit();
}
}