Android Guides | Samples

Android.App.FragmentManager.FindFragmentById Method

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

Syntax

[Android.Runtime.Register("findFragmentById", "(I)Landroid/app/Fragment;", "GetFindFragmentById_IHandler")]
public abstract Fragment FindFragmentById (Int32 id)

Parameters

id

Remarks

Finds a fragment that was identified by the given id either when inflated from XML or as the container ID 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 associated with this ID 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