LinearLayout.LayoutParams Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| LinearLayout.LayoutParams(ViewGroup+LayoutParams) |
Initializes a new instance. |
| LinearLayout.LayoutParams(ViewGroup+MarginLayoutParams) |
Initializes a new instance. |
| LinearLayout.LayoutParams(LinearLayout+LayoutParams) |
Initializes a new instance. |
| LinearLayout.LayoutParams(Context, IAttributeSet) |
Initializes a new instance. |
| LinearLayout.LayoutParams(Int32, Int32) |
Initializes a new instance. |
| LinearLayout.LayoutParams(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
| LinearLayout.LayoutParams(Int32, Int32, Single) |
Creates a new set of layout parameters with the specified width, height and weight. |
LinearLayout.LayoutParams(ViewGroup+LayoutParams)
Initializes a new instance.
[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.LinearLayout.LayoutParams : Android.Views.ViewGroup.LayoutParams -> Android.Widget.LinearLayout.LayoutParams
Parameters
ViewGroup.LayoutParams
- Attributes
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
LinearLayout.LayoutParams(ViewGroup+MarginLayoutParams)
Initializes a new instance.
[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.LinearLayout.LayoutParams : Android.Views.ViewGroup.MarginLayoutParams -> Android.Widget.LinearLayout.LayoutParams
Parameters
- source
- ViewGroup.MarginLayoutParams
ViewGroup.MarginLayoutParams
- Attributes
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
LinearLayout.LayoutParams(LinearLayout+LayoutParams)
Initializes a new instance.
[Android.Runtime.Register(".ctor", "(Landroid/widget/LinearLayout$LayoutParams;)V", "")]
public LayoutParams(Android.Widget.LinearLayout.LayoutParams? source);
[<Android.Runtime.Register(".ctor", "(Landroid/widget/LinearLayout$LayoutParams;)V", "")>]
new Android.Widget.LinearLayout.LayoutParams : Android.Widget.LinearLayout.LayoutParams -> Android.Widget.LinearLayout.LayoutParams
Parameters
- source
- LinearLayout.LayoutParams
LinearLayout.LayoutParams : The layout params to copy from.
- Attributes
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
LinearLayout.LayoutParams(Context, IAttributeSet)
Initializes a new instance.
[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.LinearLayout.LayoutParams : Android.Content.Context * Android.Util.IAttributeSet -> Android.Widget.LinearLayout.LayoutParams
Parameters
- c
- Context
Context
- attrs
- IAttributeSet
The attributes supplied from XML.
- Attributes
Remarks
See the Android reference documentation for this member.
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
LinearLayout.LayoutParams(Int32, Int32)
Initializes a new instance.
[Android.Runtime.Register(".ctor", "(II)V", "")]
public LayoutParams(int width, int height);
[<Android.Runtime.Register(".ctor", "(II)V", "")>]
new Android.Widget.LinearLayout.LayoutParams : int * int -> Android.Widget.LinearLayout.LayoutParams
Parameters
- width
- Int32
The width in pixels, MatchParent, or WrapContent.
- height
- Int32
The height in pixels, MatchParent, or WrapContent.
- Attributes
Remarks
See the Android reference documentation for this member.
Java documentation for android.widget.LinearLayout.LayoutParams.LinearLayout$LayoutParams(int, 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
LinearLayout.LayoutParams(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected LayoutParams(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Widget.LinearLayout.LayoutParams : nativeint * Android.Runtime.JniHandleOwnership -> Android.Widget.LinearLayout.LayoutParams
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
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
LinearLayout.LayoutParams(Int32, Int32, Single)
Creates a new set of layout parameters with the specified width, height and weight.
[Android.Runtime.Register(".ctor", "(IIF)V", "")]
public LayoutParams(int width, int height, float weight);
[<Android.Runtime.Register(".ctor", "(IIF)V", "")>]
new Android.Widget.LinearLayout.LayoutParams : int * int * single -> Android.Widget.LinearLayout.LayoutParams
Parameters
- width
- Int32
the width, either #MATCH_PARENT,
#WRAP_CONTENT or a fixed size in pixels
- height
- Int32
the height, either #MATCH_PARENT,
#WRAP_CONTENT or a fixed size in pixels
- weight
- Single
the weight
- Attributes
Remarks
Creates a new set of layout parameters with the specified width, height and weight.
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.