Android examples for User Interface:Fragment
hide Fragment
//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 }