Android Guides | Samples

Android.App.FragmentManager.FindFragmentByTag Method

Finds a fragment that was identified by the given tag either when inflated from XML or as supplied when added in a transaction.

Syntax

[Android.Runtime.Register("findFragmentByTag", "(Ljava/lang/String;)Landroid/app/Fragment;", "GetFindFragmentByTag_Ljava_lang_String_Handler")]
public abstract Fragment FindFragmentByTag (String tag)

Parameters

tag

Remarks

Finds a fragment that was identified by the given tag either when inflated from XML or as supplied when added in a transaction. This first searches through fragments that are currently added to the manager's activity; if no such fragment is found, then all fragments currently on the back stack are searched.

[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