共用方式為


WindowManagerLayoutParams.HorizontalMargin Property

Definition

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

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

Property Value

Attributes

Remarks

The horizontal margin, as a percentage of the container's width, 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 #x to supply the <var>xAdj</var> parameter.

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

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