語言

GridLayout.AlignMargins 欄位

定義

警告

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

這個常數是一個 #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

欄位值

Value = 1
屬性

備註

這個常數是一個 #setAlignmentMode(int) alignmentMode。 當將 alignmentMode 設為 #ALIGN_MARGINS時,每個視角的邊界會依其邊界向外延伸,然後才將所得矩形的邊對齊。

例如,當 GridLayout 處於 #ALIGN_MARGINS 模式時, top - layoutParams.topMargin 所有屬於使用 #TOP 對齊的列群子節點的數量都是相同的。

Java 文件 android.widget.GridLayout.ALIGN_MARGINS。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

另請參閱