Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. @Override
  2. protected void onCreate(Bundle savedInstanceState) {
  3. super.onCreate(savedInstanceState);
  4. setContentView(R.layout.igraj_kviz_akt);
  5. Bundle bundle = getIntent().getExtras();
  6. kviz = (Kviz) bundle.getParcelable("kviz");
  7.  
  8. InformacijeFrag informacijeFrag = new InformacijeFrag();
  9. FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
  10.  
  11. // Replace whatever is in the fragment_container view with this fragment,
  12. // and add the transaction to the back stack so the user can navigate back
  13. transaction.replace(R.id.informacijePlace, informacijeFrag);
  14. transaction.addToBackStack(null);
  15. // Commit the transaction
  16. transaction.commit();
  17.  
  18. PitanjeFrag pitanjeFrag = new PitanjeFrag();
  19. FragmentTransaction transaction2 = getSupportFragmentManager().beginTransaction();
  20. transaction2.replace(R.id.pitanjePlace, pitanjeFrag);
  21. transaction2.addToBackStack(null);
  22. transaction2.commit();
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement