ViewGroup.GenerateLayoutParams ViewGroup.GenerateLayoutParams Method

Definition

Overloads

GenerateLayoutParams(IAttributeSet) GenerateLayoutParams(IAttributeSet)

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

GenerateLayoutParams(ViewGroup+LayoutParams) GenerateLayoutParams(ViewGroup+LayoutParams)

Returns a safe set of layout parameters based on the supplied layout params.

GenerateLayoutParams(IAttributeSet) 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);
abstract member GenerateLayoutParams : Android.Util.IAttributeSet -> Android.Views.ViewGroup.LayoutParams
override this.GenerateLayoutParams : Android.Util.IAttributeSet -> Android.Views.ViewGroup.LayoutParams

Parameters

attrs
IAttributeSet IAttributeSet

the attributes to build the layout parameters from

Returns

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.

GenerateLayoutParams(ViewGroup+LayoutParams) GenerateLayoutParams(ViewGroup+LayoutParams)

Returns a safe set of layout parameters based on the supplied layout params.

[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);
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 ViewGroup.LayoutParams

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

Returns

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