show Fragment - Android User Interface

Android examples for User Interface:Fragment

Description

show Fragment

Demo Code


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

public class Main {
    public static void showFragment(FragmentManager fm, Fragment fragment) {
        fm.beginTransaction().show(fragment).commitAllowingStateLoss();
    }// ww w  .j av a 2s. co m
}

Related Tutorials