次の方法で共有


FragmentTransaction.Detach(Fragment) Method

Definition

Detach the given fragment from the UI.

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

Parameters

fragment
Fragment

The fragment to be detached.

Returns

Returns the same FragmentTransaction instance.

Attributes

Remarks

Detach the given fragment from the UI. This is the same state as when it is put on the back stack: the fragment is removed from the UI, however its state is still being actively managed by the fragment manager. When going into this state its view hierarchy is destroyed.

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