ViewStub Constructors

Definition

Overloads

ViewStub(Context)

Creates a new ViewStub with the specified layout resource.

ViewStub(Context, IAttributeSet)

Creates a new ViewStub with the specified layout resource.

ViewStub(Context, Int32)

Creates a new ViewStub with the specified layout resource.

ViewStub(Context, IAttributeSet, Int32)

Creates a new ViewStub with the specified layout resource.

ViewStub(Context, IAttributeSet, Int32, Int32)

Creates a new ViewStub with the specified layout resource.

ViewStub(Context)

Creates a new ViewStub with the specified layout resource.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public ViewStub (Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Views.ViewStub : Android.Content.Context -> Android.Views.ViewStub

Parameters

context
Context

The application's environment.

Attributes

Remarks

Java documentation for android.view.ViewStub.ViewStub(android.content.Context, 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

ViewStub(Context, IAttributeSet)

Creates a new ViewStub with the specified layout resource.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public ViewStub (Android.Content.Context? context, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")>]
new Android.Views.ViewStub : Android.Content.Context * Android.Util.IAttributeSet -> Android.Views.ViewStub

Parameters

context
Context

The application's environment.

Attributes

Remarks

Java documentation for android.view.ViewStub.ViewStub(android.content.Context, 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

ViewStub(Context, Int32)

Creates a new ViewStub with the specified layout resource.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")]
public ViewStub (Android.Content.Context? context, int layoutResource);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")>]
new Android.Views.ViewStub : Android.Content.Context * int -> Android.Views.ViewStub

Parameters

context
Context

The application's environment.

layoutResource
Int32

The reference to a layout resource that will be inflated.

Attributes

Remarks

Creates a new ViewStub with the specified layout resource.

Java documentation for android.view.ViewStub.ViewStub(android.content.Context, 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

ViewStub(Context, IAttributeSet, Int32)

Creates a new ViewStub with the specified layout resource.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "")]
public ViewStub (Android.Content.Context? context, Android.Util.IAttributeSet? attrs, int defStyleAttr);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "")>]
new Android.Views.ViewStub : Android.Content.Context * Android.Util.IAttributeSet * int -> Android.Views.ViewStub

Parameters

context
Context

The application's environment.

defStyleAttr
Int32
Attributes

Remarks

Java documentation for android.view.ViewStub.ViewStub(android.content.Context, 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

ViewStub(Context, IAttributeSet, Int32, Int32)

Creates a new ViewStub with the specified layout resource.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V", "")]
public ViewStub (Android.Content.Context? context, Android.Util.IAttributeSet? attrs, int defStyleAttr, int defStyleRes);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V", "")>]
new Android.Views.ViewStub : Android.Content.Context * Android.Util.IAttributeSet * int * int -> Android.Views.ViewStub

Parameters

context
Context

The application's environment.

defStyleAttr
Int32
defStyleRes
Int32
Attributes

Remarks

Java documentation for android.view.ViewStub.ViewStub(android.content.Context, 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