语言

GridLayout.OnLayout(Boolean, Int32, Int32, Int32, Int32) 方法

定义

当此视图应为其每个子级分配大小和位置时,从布局调用。 具有子级的派生类应重写此方法,并在每个子级上调用布局。

[Android.Runtime.Register("onLayout", "(ZIIII)V", "GetOnLayout_ZIIIIHandler")]
protected override void OnLayout(bool changed, int left, int top, int right, int bottom);
[<Android.Runtime.Register("onLayout", "(ZIIII)V", "GetOnLayout_ZIIIIHandler")>]
override this.OnLayout : bool * int * int * int * int -> unit

参数

changed
Boolean

这是此视图的新大小或位置

left
Int32

相对于父位置的左侧位置

top
Int32

相对于父级的位置

right
Int32

相对于父位置的右位置

bottom
Int32

相对于父位置的底部位置

属性

注解

请参阅此成员的 Android 参考文档。

Java文档android.widget.GridLayout.onLayout(boolean, int, int, int, int)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于