hide Fragment - Android User Interface

Android examples for User Interface:Fragment

Description

hide Fragment

Demo Code


//package com.java2s;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;

public class Main {
    public static void hideFragment(FragmentManager fm, Fragment fragment) {
        fm.beginTransaction().hide(fragment).commitAllowingStateLoss();
    }//w  w  w  .java2  s  .c  o m
}

Related Tutorials