View.OnLayout(Boolean, Int32, Int32, Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當此檢視應將大小和位置指派給其每個子系時,從配置呼叫。
[Android.Runtime.Register("onLayout", "(ZIIII)V", "GetOnLayout_ZIIIIHandler")]
protected virtual void OnLayout (bool changed, int left, int top, int right, int bottom);
[<Android.Runtime.Register("onLayout", "(ZIIII)V", "GetOnLayout_ZIIIIHandler")>]
abstract member OnLayout : bool * int * int * int * int -> unit
override this.OnLayout : bool * int * int * int * int -> unit
參數
- changed
- Boolean
這是此檢視的新大小或位置
- left
- Int32
相對於父系的位置
- top
- Int32
最上層位置,相對於父系
- right
- Int32
相對於父系的右位置
- bottom
- Int32
底端位置,相對於父系
- 屬性
備註
當此檢視應將大小和位置指派給其每個子系時,從配置呼叫。
具有子系的衍生類別應該覆寫這個方法,並在每個子系上呼叫配置。
的 android.view.View.onLayout(boolean, int, int, int, int)
JAVA 檔。
此頁面的部分是根據 原始碼專案所建立和共用的工作進行修改,並根據中所述的詞彙使用。