View.MeasuredWidthAndState Property

Definition

Return the full width measurement information for this view as computed by the most recent call to #measure(int, int).

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

Property Value

The measured width of this view as a bit mask.

Attributes

Remarks

Return the full width measurement information for this view as computed by the most recent call to #measure(int, int). This result is a bit mask as defined by #MEASURED_SIZE_MASK and #MEASURED_STATE_TOO_SMALL. This should be used during measurement and layout calculations only. Use #getWidth() to see how wide a view is after layout.

Java documentation for android.view.View.getMeasuredWidthAndState().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to