Android Guides | Samples

Android.Views.WindowManagerLayoutParams.HorizontalWeight Property

Indicates how much of the extra space will be allocated horizontally to the view associated with these LayoutParams.

Syntax

[Android.Runtime.Register("horizontalWeight")]
public Single HorizontalWeight { get; set; }

Remarks

Indicates how much of the extra space will be allocated horizontally to the view associated with these LayoutParams. Specify 0 if the view should not be stretched. Otherwise the extra pixels will be pro-rated among all views whose weight is greater than 0.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1