Udostępnij za pośrednictwem


ViewGroup.LayoutParams.SetBaseAttributes(TypedArray, Int32, Int32) Method

Definition

Extracts the layout parameters from the supplied attributes.

[Android.Runtime.Register("setBaseAttributes", "(Landroid/content/res/TypedArray;II)V", "GetSetBaseAttributes_Landroid_content_res_TypedArray_IIHandler")]
protected virtual void SetBaseAttributes (Android.Content.Res.TypedArray a, int widthAttr, int heightAttr);
[<Android.Runtime.Register("setBaseAttributes", "(Landroid/content/res/TypedArray;II)V", "GetSetBaseAttributes_Landroid_content_res_TypedArray_IIHandler")>]
abstract member SetBaseAttributes : Android.Content.Res.TypedArray * int * int -> unit
override this.SetBaseAttributes : Android.Content.Res.TypedArray * int * int -> unit

Parameters

a
TypedArray

the style attributes to extract the parameters from

widthAttr
Int32

the identifier of the width attribute

heightAttr
Int32

the identifier of the height attribute

Attributes

Remarks

Extracts the layout parameters from the supplied attributes.

Java documentation for android.view.ViewGroup.LayoutParams.setBaseAttributes(android.content.res.TypedArray, 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