FragmentTransaction.Remove(Fragment) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
移除現有的片段。
[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
參數
- fragment
- Fragment
那個要移除的碎片。
傳回
回傳相同的 FragmentTransaction 實例。
- 屬性
備註
移除現有的片段。 如果它被加入容器,該容器的視圖也會被移除。
Android 參考資料。android.app.FragmentTransaction.remove
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。