Created
August 30, 2012 04:58
-
-
Save app2641/3522530 to your computer and use it in GitHub Desktop.
activity fargment class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onCreate (Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_sample); | |
FragmentManager manager = getFragmentManager(); | |
FragmentTransaction transaction = manager.beginTransaction(); | |
transaction.add(R.id.activity_container, new FragmentSample1()); | |
transaction.commit(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment