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.activity_main);
- //Set the fragment initially
- MainFragment fragment = new MainFragment();
- android.support.v4.app.FragmentTransaction fragmentTransaction =
- getSupportFragmentManager().beginTransaction();
- fragmentTransaction.replace(R.id.fragment_container, fragment);
- fragmentTransaction.commit();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement