View.MeasuredState 屬性

定義

只傳回 和 #getMeasuredHeightAndState() 的狀態位 #getMeasuredWidthAndState() ,並結合成一個整數。

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

屬性值

屬性

備註

只傳回 和 #getMeasuredHeightAndState() 的狀態位 #getMeasuredWidthAndState() ,並結合成一個整數。 寬度元件位於一般位 #MEASURED_STATE_MASK ,而高度元件位於移位 >>#MEASURED_HEIGHT_STATE_SHIFT#MEASURED_STATE_MASK

android.view.View.getMeasuredState() JAVA 檔。

此頁面的部分是根據所建立和共用的工作進行修改,並根據 2.5 屬性授權中所述的詞彙來使用。

適用於