AbsoluteLayout.LayoutParams 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| AbsoluteLayout.LayoutParams(ViewGroup+LayoutParams) |
初始化新的實例。 |
| AbsoluteLayout.LayoutParams(Context, IAttributeSet) |
建立一組新的版面參數。 |
| AbsoluteLayout.LayoutParams(IntPtr, JniHandleOwnership) |
用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。 |
| AbsoluteLayout.LayoutParams(Int32, Int32, Int32, Int32) |
建立一組新的佈局參數,包含指定的寬度、高度和位置。 |
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
參數
- source
- ViewGroup.LayoutParams
ViewGroup.LayoutParams
- 屬性
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
Java 文件 AbsoluteLayout.LayoutParams。
適用於
AbsoluteLayout.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.AbsoluteLayout.LayoutParams : Android.Content.Context * Android.Util.IAttributeSet -> Android.Widget.AbsoluteLayout.LayoutParams
參數
- c
- Context
應用程式環境
- attrs
- IAttributeSet
從中提取版面參數值的屬性集合
- 屬性
備註
建立一組新的版面參數。 這些值是從所提供的屬性集合和上下文中提取出來的。 映射到這組版面參數的 XML 屬性如下:
<ul><li>layout_x:子節點<的 X 位置/li><li>layout_y:子節點</li 的 Y 位置 /li></ul>的所有 XML 屬性android.view.ViewGroup.LayoutParams<><>
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
AbsoluteLayout.LayoutParams(IntPtr, JniHandleOwnership)
用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。
protected LayoutParams(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Widget.AbsoluteLayout.LayoutParams : nativeint * Android.Runtime.JniHandleOwnership -> Android.Widget.AbsoluteLayout.LayoutParams
參數
- transfer
- JniHandleOwnership
JniHandleOwnershipA 指示如何處理javaReference
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
AbsoluteLayout.LayoutParams(Int32, Int32, Int32, Int32)
建立一組新的佈局參數,包含指定的寬度、高度和位置。
[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
參數
- width
- Int32
寬度,或#MATCH_PARENT#WRAP_CONTENT是固定的像素大小
- height
- Int32
高度,或#MATCH_PARENT#WRAP_CONTENT是固定像素大小
- x
- Int32
子節點的 X 位置
- y
- Int32
子的Y位置
- 屬性
備註
建立一組新的佈局參數,包含指定的寬度、高度和位置。
Java 文件 android.widget.AbsoluteLayout.LayoutParams.AbsoluteLayout$LayoutParams(int, int, int, int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。