Guest User

Untitled

a guest
Jul 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. private void showFragment(String tabType) {
  2. FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
  3. baseTabBottomFragment = new BaseTabBottomFragment();
  4. //send data to fragment
  5. Bundle bundle = new Bundle();
  6. bundle.putString(KeyConstant.TAB_BOTTOM, tabType);
  7. baseTabBottomFragment.setArguments(bundle);
  8.  
  9. ft.add(R.id.frame_container, baseTabBottomFragment, tabType);
  10. ft.addToBackStack(tabType);
  11. ft.commit();
  12. }
Add Comment
Please, Sign In to add comment