语言

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()。

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

适用于