语言

TableRow.LayoutParams 构造函数

定义

重载

名称 说明
TableRow.LayoutParams()

将子宽度 android.view.ViewGroup.LayoutParams 设置为和子高度设置为 android.view.ViewGroup.LayoutParams#WRAP_CONTENT。

TableRow.LayoutParams(ViewGroup+LayoutParams)

初始化新实例。

TableRow.LayoutParams(ViewGroup+MarginLayoutParams)

初始化新实例。

TableRow.LayoutParams(Int32)

将视图置于指定的列中。

TableRow.LayoutParams(Context, IAttributeSet)

初始化新实例。

TableRow.LayoutParams(Int32, Int32)

设置子宽度和子高度。

TableRow.LayoutParams(IntPtr, JniHandleOwnership)

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

TableRow.LayoutParams(Int32, Int32, Single)

设置子宽度、高度和粗细。

TableRow.LayoutParams()

将子宽度 android.view.ViewGroup.LayoutParams 设置为和子高度设置为 android.view.ViewGroup.LayoutParams#WRAP_CONTENT。

[Android.Runtime.Register(".ctor", "()V", "")]
public LayoutParams();
属性

注解

将子宽度 android.view.ViewGroup.LayoutParams 设置为和子高度设置为 android.view.ViewGroup.LayoutParams#WRAP_CONTENT。

Java文档android.widget.TableRow.LayoutParams.TableRow$LayoutParams()。

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

适用于

TableRow.LayoutParams(ViewGroup+LayoutParams)

初始化新实例。

[Android.Runtime.Register(".ctor", "(Landroid/view/ViewGroup$LayoutParams;)V", "")]
public LayoutParams(Android.Views.ViewGroup.LayoutParams? p);
[<Android.Runtime.Register(".ctor", "(Landroid/view/ViewGroup$LayoutParams;)V", "")>]
new Android.Widget.TableRow.LayoutParams : Android.Views.ViewGroup.LayoutParams -> Android.Widget.TableRow.LayoutParams

参数

p
ViewGroup.LayoutParams

ViewGroup.LayoutParams

属性

注解

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

适用于

TableRow.LayoutParams(ViewGroup+MarginLayoutParams)

初始化新实例。

[Android.Runtime.Register(".ctor", "(Landroid/view/ViewGroup$MarginLayoutParams;)V", "")]
public LayoutParams(Android.Views.ViewGroup.MarginLayoutParams? source);
[<Android.Runtime.Register(".ctor", "(Landroid/view/ViewGroup$MarginLayoutParams;)V", "")>]
new Android.Widget.TableRow.LayoutParams : Android.Views.ViewGroup.MarginLayoutParams -> Android.Widget.TableRow.LayoutParams

参数

source
ViewGroup.MarginLayoutParams

ViewGroup.MarginLayoutParams

属性

注解

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

适用于

TableRow.LayoutParams(Int32)

将视图置于指定的列中。

[Android.Runtime.Register(".ctor", "(I)V", "")]
public LayoutParams(int column);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Android.Widget.TableRow.LayoutParams : int -> Android.Widget.TableRow.LayoutParams

参数

column
Int32

视图的列索引

属性

注解

将视图置于指定的列中。

将子宽度 android.view.ViewGroup.LayoutParams#MATCH_PARENT 设置为和子高度设置为 android.view.ViewGroup.LayoutParams#WRAP_CONTENT。

Java文档android.widget.TableRow.LayoutParams.TableRow$LayoutParams(int)。

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

适用于

TableRow.LayoutParams(Context, IAttributeSet)

初始化新实例。

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

参数

c
Context

背景

attrs
IAttributeSet

从 XML 提供的属性。

属性

注解

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

Java文档android.widget.TableRow.LayoutParams.TableRow$LayoutParams(android.content.Context, android.util.AttributeSet)。

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

适用于

TableRow.LayoutParams(Int32, Int32)

设置子宽度和子高度。

[Android.Runtime.Register(".ctor", "(II)V", "")]
public LayoutParams(int w, int h);
[<Android.Runtime.Register(".ctor", "(II)V", "")>]
new Android.Widget.TableRow.LayoutParams : int * int -> Android.Widget.TableRow.LayoutParams

参数

w
Int32

所需宽度

h
Int32

所需高度

属性

注解

设置子宽度和子高度。

Java文档android.widget.TableRow.LayoutParams.TableRow$LayoutParams(int, int)。

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

适用于

TableRow.LayoutParams(IntPtr, JniHandleOwnership)

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

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

参数

javaReference
IntPtr

nativeint

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

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

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

适用于

TableRow.LayoutParams(Int32, Int32, Single)

设置子宽度、高度和粗细。

[Android.Runtime.Register(".ctor", "(IIF)V", "")]
public LayoutParams(int w, int h, float initWeight);
[<Android.Runtime.Register(".ctor", "(IIF)V", "")>]
new Android.Widget.TableRow.LayoutParams : int * int * single -> Android.Widget.TableRow.LayoutParams

参数

w
Int32

所需宽度

h
Int32

所需高度

initWeight
Single

所需权重

属性

注解

设置子宽度、高度和粗细。

Java文档android.widget.TableRow.LayoutParams.TableRow$LayoutParams(int, int, float)。

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

适用于