Language

FragmentTransaction.Show(Fragment) Method

Definition

Shows a previously hidden fragment.

[Android.Runtime.Register("show", "(Landroid/app/Fragment;)Landroid/app/FragmentTransaction;", "GetShow_Landroid_app_Fragment_Handler")]
public abstract Android.App.FragmentTransaction? Show(Android.App.Fragment? fragment);
[<Android.Runtime.Register("show", "(Landroid/app/Fragment;)Landroid/app/FragmentTransaction;", "GetShow_Landroid_app_Fragment_Handler")>]
abstract member Show : Android.App.Fragment -> Android.App.FragmentTransaction

Parameters

fragment
Fragment

The fragment to be shown.

Returns

Returns the same FragmentTransaction instance.

Attributes

Remarks

Shows a previously hidden fragment. This is only relevant for fragments whose views have been added to a container, as this will cause the view to be shown.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

Android reference for android.app.FragmentTransaction.show.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to