Loading docs/html/training/basics/fragments/fragment-ui.jd +3 −3 Original line number Diff line number Diff line Loading @@ -122,11 +122,11 @@ public class MainActivity extends FragmentActivity { return; } // Create an instance of ExampleFragment // Create a new Fragment to be placed in the activity layout HeadlinesFragment firstFragment = new HeadlinesFragment(); // In case this activity was started with special instructions from an Intent, // pass the Intent's extras to the fragment as arguments // In case this activity was started with special instructions from an // Intent, pass the Intent's extras to the fragment as arguments firstFragment.setArguments(getIntent().getExtras()); // Add the fragment to the 'fragment_container' FrameLayout Loading Loading
docs/html/training/basics/fragments/fragment-ui.jd +3 −3 Original line number Diff line number Diff line Loading @@ -122,11 +122,11 @@ public class MainActivity extends FragmentActivity { return; } // Create an instance of ExampleFragment // Create a new Fragment to be placed in the activity layout HeadlinesFragment firstFragment = new HeadlinesFragment(); // In case this activity was started with special instructions from an Intent, // pass the Intent's extras to the fragment as arguments // In case this activity was started with special instructions from an // Intent, pass the Intent's extras to the fragment as arguments firstFragment.setArguments(getIntent().getExtras()); // Add the fragment to the 'fragment_container' FrameLayout Loading