Back to project page PrettyBundle.
The source code is released under:
Apache License
If you think the Android project PrettyBundle listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.tale.prettybundle.sample; // w w w. java2s . co m import android.app.Activity; import android.app.Fragment; import android.os.Bundle; import com.tale.prettybundle.Fragments; /** * Created by giang on 2/26/15. */ public class TestExtraOnFragmentActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_single_page); if (savedInstanceState == null) { Fragment fragment = Fragments.createTestPrimaryExtraFragment(1, 2, 3.4f, 5.6d, true, "String value", "CharSequence value"); // Create fragment. getFragmentManager().beginTransaction().add(R.id.fragment_container, fragment).commit(); } } }