Share via


FragmentTransaction.Hide(Fragment) Method

Definition

Hides an existing fragment.

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

Parameters

fragment
Fragment

The fragment to be hidden.

Returns

Returns the same FragmentTransaction instance.

Attributes

Remarks

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

Java documentation for android.app.FragmentTransaction.hide(android.app.Fragment).

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