ViewStub ViewStub Constructors

Definition

Overloads

ViewStub(Context) ViewStub(Context)
ViewStub(Context, IAttributeSet) ViewStub(Context, IAttributeSet)
ViewStub(Context, Int32) ViewStub(Context, Int32)

Creates a new ViewStub with the specified layout resource.

ViewStub(Context, IAttributeSet, Int32) ViewStub(Context, IAttributeSet, Int32)
ViewStub(Context, IAttributeSet, Int32, Int32) ViewStub(Context, IAttributeSet, Int32, Int32)

ViewStub(Context) ViewStub(Context)

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

Parameters

context
Context Context

Remarks

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.

ViewStub(Context, IAttributeSet) ViewStub(Context, IAttributeSet)

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

Parameters

context
Context Context

Remarks

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.

ViewStub(Context, Int32) 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);
new Android.Views.ViewStub : Android.Content.Context * int -> Android.Views.ViewStub

Parameters

context
Context Context
layoutResource
Int32 Int32

Remarks

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.

ViewStub(Context, IAttributeSet, Int32) ViewStub(Context, IAttributeSet, Int32)

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

Parameters

context
Context Context
defStyleAttr
Int32 Int32

Remarks

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.

ViewStub(Context, IAttributeSet, Int32, Int32) ViewStub(Context, IAttributeSet, Int32, Int32)

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

Parameters

context
Context Context
defStyleAttr
Int32 Int32
defStyleRes
Int32 Int32

Remarks

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