语言

View.MeasuredHeightAndState 属性

定义

返回此视图的完整高度度量信息,由最近调用的 #measure(int, int)调用计算。

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

属性值

此视图的测量高度作为位掩码。

特性

注解

返回此视图的完整高度度量信息,由最近调用的 #measure(int, int)调用计算。 此结果是一个位掩码,由 #MEASURED_SIZE_MASK 和 #MEASURED_STATE_TOO_SMALL. 这只能在度量和布局计算期间使用。 用于 #getHeight() 查看布局后的视图高。

Java文档android.view.View.getMeasuredHeightAndState()。

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

适用于