다음을 통해 공유


ViewStub.LayoutResource Property

Definition

Returns the layout resource that will be used by #setVisibility(int) or #inflate() to replace this StubbedView in its parent by another view. -or- Specifies the layout resource to inflate when this StubbedView becomes visible or invisible or when #inflate() is invoked.

public int LayoutResource { [Android.Runtime.Register("getLayoutResource", "()I", "")] get; [Android.Runtime.Register("setLayoutResource", "(I)V", "")] set; }
[<get: Android.Runtime.Register("getLayoutResource", "()I", "")>]
[<set: Android.Runtime.Register("setLayoutResource", "(I)V", "")>]
member this.LayoutResource : int with get, set

Property Value

The layout resource identifier used to inflate the new View.

Attributes

Remarks

Property getter documentation:

Returns the layout resource that will be used by #setVisibility(int) or #inflate() to replace this StubbedView in its parent by another view.

Java documentation for android.view.ViewStub.getLayoutResource().

Property setter documentation:

Specifies the layout resource to inflate when this StubbedView becomes visible or invisible or when #inflate() is invoked. The View created by inflating the layout resource is used to replace this StubbedView in its parent.

Java documentation for android.view.ViewStub.setLayoutResource(int).

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

See also