語言

ViewGroup.GenerateLayoutParams 方法

定義

多載

名稱 Description
GenerateLayoutParams(IAttributeSet)

回傳一組基於所提供屬性設定的新版面參數。

GenerateLayoutParams(ViewGroup+LayoutParams)

回傳一組基於所提供屬性設定的新版面參數。

GenerateLayoutParams(IAttributeSet)

回傳一組基於所提供屬性設定的新版面參數。

[Android.Runtime.Register("generateLayoutParams", "(Landroid/util/AttributeSet;)Landroid/view/ViewGroup$LayoutParams;", "GetGenerateLayoutParams_Landroid_util_AttributeSet_Handler")]
public virtual Android.Views.ViewGroup.LayoutParams? GenerateLayoutParams(Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register("generateLayoutParams", "(Landroid/util/AttributeSet;)Landroid/view/ViewGroup$LayoutParams;", "GetGenerateLayoutParams_Landroid_util_AttributeSet_Handler")>]
abstract member GenerateLayoutParams : Android.Util.IAttributeSet -> Android.Views.ViewGroup.LayoutParams
override this.GenerateLayoutParams : Android.Util.IAttributeSet -> Android.Views.ViewGroup.LayoutParams

參數

attrs
IAttributeSet

屬性來建立版面參數

傳回

或其後代的實例android.view.ViewGroup.LayoutParams

屬性

備註

Java 文件 android.view.ViewGroup.generateLayoutParams(android.util.AttributeSet)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

GenerateLayoutParams(ViewGroup+LayoutParams)

回傳一組基於所提供屬性設定的新版面參數。

[Android.Runtime.Register("generateLayoutParams", "(Landroid/view/ViewGroup$LayoutParams;)Landroid/view/ViewGroup$LayoutParams;", "GetGenerateLayoutParams_Landroid_view_ViewGroup_LayoutParams_Handler")]
protected virtual Android.Views.ViewGroup.LayoutParams? GenerateLayoutParams(Android.Views.ViewGroup.LayoutParams? p);
[<Android.Runtime.Register("generateLayoutParams", "(Landroid/view/ViewGroup$LayoutParams;)Landroid/view/ViewGroup$LayoutParams;", "GetGenerateLayoutParams_Landroid_view_ViewGroup_LayoutParams_Handler")>]
abstract member GenerateLayoutParams : Android.Views.ViewGroup.LayoutParams -> Android.Views.ViewGroup.LayoutParams
override this.GenerateLayoutParams : Android.Views.ViewGroup.LayoutParams -> Android.Views.ViewGroup.LayoutParams

參數

p
ViewGroup.LayoutParams

將版面參數轉換為適合此 ViewGroup 的版面參數集合。

傳回

或其後代的實例android.view.ViewGroup.LayoutParams

屬性

備註

Java 文件 android.view.ViewGroup.generateLayoutParams(android.util.AttributeSet)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於