语言

FragmentController.AttachHost(Fragment) 方法

定义

将此控制器的主机附加到 FragmentManager。

[Android.Runtime.Register("attachHost", "(Landroid/app/Fragment;)V", "GetAttachHost_Landroid_app_Fragment_Handler", ApiSince=23)]
public virtual void AttachHost(Android.App.Fragment? parent);
[<Android.Runtime.Register("attachHost", "(Landroid/app/Fragment;)V", "GetAttachHost_Landroid_app_Fragment_Handler", ApiSince=23)>]
abstract member AttachHost : Android.App.Fragment -> unit
override this.AttachHost : Android.App.Fragment -> unit

参数

parent
Fragment

片段

特性

注解

将此控制器的主机附加到 FragmentManager。 必须先附加主机,然后才能使用 FragmentManager 管理片段。

Android 参考。android.app.FragmentController.attachHost

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于