Android.App.FragmentTransaction.Add Method
Add a fragment to the activity state.

Syntax

[Android.Runtime.Register("add", "(ILandroid/app/Fragment;Ljava/lang/String;)Landroid/app/FragmentTransaction;", "GetAdd_ILandroid_app_Fragment_Ljava_lang_String_Handler")]
public abstract FragmentTransaction Add (int containerViewId, Fragment fragment, string tag)

Parameters

containerViewId
Optional identifier of the container this fragment is to be placed in. If 0, it will not be placed in a container.
fragment
The fragment to be added. This fragment must not already be added to the activity.
tag
Optional tag name for the fragment, to later retrieve the fragment with FragmentManager.FindFragmentByTag(string).

Returns

Documentation for this section has not yet been entered.

Remarks

Add a fragment to the activity state. This fragment may optionally also have its view (if Fragment.OnCreateView(Android.Views.LayoutInflater, Android.Views.ViewGroup, Android.Views.ViewGroup) returns non-null) into a container view of the activity.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11