This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends AppCompatActivity implements FragmentInteractionCallback { | |
private Map<String, Stack<Fragment>> stacks; | |
private String currentTab; | |
private ActivityMainBinding binder; | |
private List<String> stackList; | |
private List<String> menuStacks; | |
private Fragment currentFragment; | |
private Fragment homeFragment; | |
private Fragment dashboardFragment; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FragmentUtils { | |
/* | |
* Add the initial fragment, in most cases the first tab in BottomNavigationView | |
*/ | |
public static void addInitialTabFragment(FragmentManager fragmentManager, | |
Map<String, Stack<Fragment>> stacks, | |
String tag, | |
Fragment fragment, | |
int layoutId, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends AppCompatActivity implements FragmentInteractionCallback { | |
private Map<String, Stack<String>> tagStacks; | |
private String currentTab; | |
private ActivityMainBinding binder; | |
private List<String> stackList; | |
private List<String> menuStacks; | |
private Fragment currentFragment; | |
private Fragment homeFragment; | |
private Fragment dashboardFragment; |