語言

View.MeasuredWidthAndState 屬性

定義

回傳此視圖的全寬測量資訊,該資訊由最近一次呼叫 計算 #measure(int, int)得出。

public int MeasuredWidthAndState { [Android.Runtime.Register("getMeasuredWidthAndState", "()I", "")] get; }
[<get: Android.Runtime.Register("getMeasuredWidthAndState", "()I", "")>]
member this.MeasuredWidthAndState : int

屬性值

這個視角的寬度是位遮罩。

屬性

備註

回傳此視圖的全寬測量資訊,該資訊由最近一次呼叫 計算 #measure(int, int)得出。 此結果為由定義 #MEASURED_SIZE_MASK 的 #MEASURED_STATE_TOO_SMALL位元遮罩。 此方法僅用於測量與佈局計算。 用 #getWidth() 來判斷佈局後視野的寬度。

Java 文件 android.view.View.getMeasuredWidthAndState()。

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

適用於