Megosztás a következőn keresztül:


ViewGroup.GenerateLayoutParams Method

Definition

Overloads

GenerateLayoutParams(IAttributeSet)

Returns a new set of layout parameters based on the supplied attributes set.

GenerateLayoutParams(ViewGroup+LayoutParams)

Returns a new set of layout parameters based on the supplied attributes set.

GenerateLayoutParams(IAttributeSet)

Returns a new set of layout parameters based on the supplied attributes set.

[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

Parameters

attrs
IAttributeSet

the attributes to build the layout parameters from

Returns

an instance of android.view.ViewGroup.LayoutParams or one of its descendants

Attributes

Remarks

Java documentation for android.view.ViewGroup.generateLayoutParams(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

GenerateLayoutParams(ViewGroup+LayoutParams)

Returns a new set of layout parameters based on the supplied attributes set.

[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

Parameters

p
ViewGroup.LayoutParams

The layout parameters to convert into a suitable set of layout parameters for this ViewGroup.

Returns

an instance of android.view.ViewGroup.LayoutParams or one of its descendants

Attributes

Remarks

Java documentation for android.view.ViewGroup.generateLayoutParams(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