Language

ViewGroup.LayoutParams.Width Property

Definition

Information about how wide the view wants to be.

[Android.Runtime.Register("width")]
public int Width { get; set; }
[<Android.Runtime.Register("width")>]
member this.Width : int with get, set

Property Value

The requested width in pixels, or a layout size constant such as MatchParent or WrapContent.

Attributes

Remarks

Information about how wide the view wants to be. Can be one of the constants FILL_PARENT (replaced by MATCH_PARENT in API Level 8) or WRAP_CONTENT, or an exact size.

Java documentation for android.view.ViewGroup.LayoutParams.width.

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