次の方法で共有


AbsoluteLayout.LayoutParams Constructors

Definition

Overloads

AbsoluteLayout.LayoutParams(ViewGroup+LayoutParams)
AbsoluteLayout.LayoutParams(Context, IAttributeSet)

Creates a new set of layout parameters.

AbsoluteLayout.LayoutParams(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

AbsoluteLayout.LayoutParams(Int32, Int32, Int32, Int32)

Creates a new set of layout parameters with the specified width, height and location.

AbsoluteLayout.LayoutParams(ViewGroup+LayoutParams)

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

Parameters

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

AbsoluteLayout.LayoutParams(Context, IAttributeSet)

Creates a new set of layout parameters.

[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.AbsoluteLayout.LayoutParams : Android.Content.Context * Android.Util.IAttributeSet -> Android.Widget.AbsoluteLayout.LayoutParams

Parameters

c
Context

the application environment

attrs
IAttributeSet

the set of attributes from which to extract the layout parameters values

Attributes

Remarks

Creates a new set of layout parameters. The values are extracted from the supplied attributes set and context. The XML attributes mapped to this set of layout parameters are:

<ul> <li>layout_x: the X location of the child</li> <li>layout_y: the Y location of the child</li> <li>All the XML attributes from android.view.ViewGroup.LayoutParams</li> </ul>

Java documentation for android.widget.AbsoluteLayout.LayoutParams.AbsoluteLayout$LayoutParams(android.content.Context, android.util.AttributeSet).

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

AbsoluteLayout.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.AbsoluteLayout.LayoutParams : nativeint * Android.Runtime.JniHandleOwnership -> Android.Widget.AbsoluteLayout.LayoutParams

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

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

AbsoluteLayout.LayoutParams(Int32, Int32, Int32, Int32)

Creates a new set of layout parameters with the specified width, height and location.

[Android.Runtime.Register(".ctor", "(IIII)V", "")]
public LayoutParams (int width, int height, int x, int y);
[<Android.Runtime.Register(".ctor", "(IIII)V", "")>]
new Android.Widget.AbsoluteLayout.LayoutParams : int * int * int * int -> Android.Widget.AbsoluteLayout.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

x
Int32

the X location of the child

y
Int32

the Y location of the child

Attributes

Remarks

Creates a new set of layout parameters with the specified width, height and location.

Java documentation for android.widget.AbsoluteLayout.LayoutParams.AbsoluteLayout$LayoutParams(int, int, 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