GridLayout.AlignMargins 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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相同。
适用于 . 的 android.widget.GridLayout.ALIGN_MARGINSJava 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。