Freigeben über


GridLayout.AlignMargins Field

Definition

Caution

This constant will be removed in the future version. Use Android.Widget.GridAlign enum directly instead of this field.

This constant is an #setAlignmentMode(int) alignmentMode.

[Android.Runtime.Register("ALIGN_MARGINS")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Widget.GridAlign enum directly instead of this field.", true)]
public const Android.Widget.GridAlign AlignMargins = 1;
[<Android.Runtime.Register("ALIGN_MARGINS")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Widget.GridAlign enum directly instead of this field.", true)>]
val mutable AlignMargins : Android.Widget.GridAlign

Field Value

Value = 1
Attributes

Remarks

This constant is an #setAlignmentMode(int) alignmentMode. When the alignmentMode is set to #ALIGN_MARGINS, the bounds of each view are extended outwards, according to their margins, before the edges of the resulting rectangle are aligned.

For example, when GridLayout is in #ALIGN_MARGINS mode, the quantity top - layoutParams.topMargin is the same for all children that belong to a row group that uses #TOP alignment.

Java documentation for android.widget.GridLayout.ALIGN_MARGINS.

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

See also