다음을 통해 공유


WindowManagerLayoutParams.VerticalWeight Property

Definition

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

[Android.Runtime.Register("verticalWeight")]
public float VerticalWeight { get; set; }
[<Android.Runtime.Register("verticalWeight")>]
member this.VerticalWeight : single with get, set

Property Value

Attributes

Remarks

Indicates how much of the extra space will be allocated vertically 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.

Java documentation for android.view.WindowManager.LayoutParams.verticalWeight.

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