Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.igraj_kviz_akt);
- Bundle bundle = getIntent().getExtras();
- kviz = (Kviz) bundle.getParcelable("kviz");
- InformacijeFrag informacijeFrag = new InformacijeFrag();
- FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
- // Replace whatever is in the fragment_container view with this fragment,
- // and add the transaction to the back stack so the user can navigate back
- transaction.replace(R.id.informacijePlace, informacijeFrag);
- transaction.addToBackStack(null);
- // Commit the transaction
- transaction.commit();
- PitanjeFrag pitanjeFrag = new PitanjeFrag();
- FragmentTransaction transaction2 = getSupportFragmentManager().beginTransaction();
- transaction2.replace(R.id.pitanjePlace, pitanjeFrag);
- transaction2.addToBackStack(null);
- transaction2.commit();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement