use of cuneyt.example.com.gifview.Fragments.GifFragment in project GifView by Cutta.
the class MainActivity method openFragment.
public void openFragment() {
FragmentTransaction trans = getSupportFragmentManager().beginTransaction();
GifFragment fragmentLocal = GifFragment.newInstance();
fragmentLocal.setHasOptionsMenu(true);
trans.replace(R.id.frame, fragmentLocal, fragmentLocal.getTAG());
trans.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
trans.addToBackStack(fragmentLocal.getTAG());
trans.commitAllowingStateLoss();
}
Aggregations