语言

StackView 构造函数

定义

重载

名称 说明
StackView(Context)

初始化新实例。

StackView(Context, IAttributeSet)

初始化新实例。

StackView(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

StackView(Context, IAttributeSet, Int32)

初始化新实例。

StackView(Context, IAttributeSet, Int32, Int32)

初始化新实例。

StackView(Context)

初始化新实例。

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

参数

context
Context

背景

属性

注解

请参阅此成员的 Android 参考文档。

Java文档android.widget.StackView.StackView(android.content.Context)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

StackView(Context, IAttributeSet)

初始化新实例。

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

参数

context
Context

背景

attrs
IAttributeSet

AttributeSet

属性

注解

请参阅此成员的 Android 参考文档。

Java文档android.widget.StackView.StackView(android.content.Context, android.util.AttributeSet)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

StackView(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

protected StackView(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Widget.StackView : nativeint * Android.Runtime.JniHandleOwnership -> Android.Widget.StackView

参数

javaReference
IntPtr

nativeint

IntPtr一个包含Java本机接口 (JNI) 对象引用。

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

StackView(Context, IAttributeSet, Int32)

初始化新实例。

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

参数

context
Context

背景

attrs
IAttributeSet

AttributeSet

defStyleAttr
Int32

int

属性

注解

请参阅此成员的 Android 参考文档。

Java文档android.widget.StackView.StackView(android.content.Context, android.util.AttributeSet, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

StackView(Context, IAttributeSet, Int32, Int32)

初始化新实例。

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V", "")]
public StackView(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.Widget.StackView : Android.Content.Context * Android.Util.IAttributeSet * int * int -> Android.Widget.StackView

参数

context
Context

背景

attrs
IAttributeSet

AttributeSet

defStyleAttr
Int32

int

defStyleRes
Int32

int

属性

注解

请参阅此成员的 Android 参考文档。

Java文档android.widget.StackView.StackView(android.content.Context, android.util.AttributeSet, int, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于