Search in sources :

Example 1 with MainFragment

use of com.marshalchen.common.demoofui.driveimageview.fragments.MainFragment in project UltimateAndroid by cymcsg.

the class DriveImageViewActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.drive_image_view_activity_main_fragment);
    FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
    MainFragment mainFragment = new MainFragment();
    fragmentTransaction.replace(R.id.fragment_container, mainFragment);
    fragmentTransaction.commit();
//        getActionBar().setDisplayHomeAsUpEnabled(false);
}
Also used : FragmentTransaction(android.app.FragmentTransaction) MainFragment(com.marshalchen.common.demoofui.driveimageview.fragments.MainFragment)

Aggregations

FragmentTransaction (android.app.FragmentTransaction)1 MainFragment (com.marshalchen.common.demoofui.driveimageview.fragments.MainFragment)1