WindowManagerLayoutParams.VerticalMargin Property

Definition

The vertical margin, as a percentage of the container's height, between the container and the widget.

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

Property Value

Attributes

Remarks

The vertical margin, as a percentage of the container's height, between the container and the widget. See Gravity#apply(int, int, int, android.graphics.Rect, int, int, android.graphics.Rect) Gravity.apply for how this is used. This field is added with #y to supply the <var>yAdj</var> parameter.

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

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