Share via


FragmentTransaction.Remove(Fragment) Method

Definition

Remove an existing fragment.

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

Parameters

fragment
Fragment

The fragment to be removed.

Returns

Returns the same FragmentTransaction instance.

Attributes

Remarks

Remove an existing fragment. If it was added to a container, its view is also removed from that container.

Java documentation for android.app.FragmentTransaction.remove(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