GridLayout.OnLayout(Boolean, Int32, Int32, Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當此視圖應為每個子節點指派大小與位置時,會從版面中呼叫。 帶有子節點的衍生類別應覆蓋此方法,並在每個子節點呼叫佈局。
[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)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。