Udostępnij za pośrednictwem


View.SourceLayoutResId Property

Definition

A View can be inflated from an XML layout.

public virtual int SourceLayoutResId { [Android.Runtime.Register("getSourceLayoutResId", "()I", "GetGetSourceLayoutResIdHandler", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getSourceLayoutResId", "()I", "GetGetSourceLayoutResIdHandler", ApiSince=29)>]
member this.SourceLayoutResId : int

Property Value

The layout resource id if this view was inflated from XML, otherwise Resources#ID_NULL.

Attributes

Remarks

A View can be inflated from an XML layout. For such Views this method returns the resource ID of the source layout.

Java documentation for android.view.View.getSourceLayoutResId().

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