Android Guides | Samples

Android.Views.WindowManagerLayoutParams.HorizontalMargin Property

The horizontal margin, as a percentage of the container's width, between the container and the widget.

Syntax

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

Remarks

The horizontal margin, as a percentage of the container's width, between the container and the widget. See Gravity.Apply(GravityFlags,Int32,Int32,Int32,Int32,Int32,Int32) for how this is used. This field is added with WindowManagerLayoutParams.X to supply the xAdj parameter.

[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