Share via


Fragment.Id Property

Definition

Return the identifier this fragment is known by.

public int Id { [Android.Runtime.Register("getId", "()I", "")] get; }
[<get: Android.Runtime.Register("getId", "()I", "")>]
member this.Id : int

Property Value

Attributes

Remarks

Return the identifier this fragment is known by. This is either the android:id value supplied in a layout or the container view ID supplied when adding the fragment.

Java documentation for android.app.Fragment.getId().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to