Share via


GridView.RequestedHorizontalSpacing Property

Definition

Returns the requested amount of horizontal spacing between each item in the grid.

public virtual int RequestedHorizontalSpacing { [Android.Runtime.Register("getRequestedHorizontalSpacing", "()I", "GetGetRequestedHorizontalSpacingHandler")] get; }
[<get: Android.Runtime.Register("getRequestedHorizontalSpacing", "()I", "GetGetRequestedHorizontalSpacingHandler")>]
member this.RequestedHorizontalSpacing : int

Property Value

The currently requested horizontal spacing between items, in pixels

Attributes

Remarks

Returns the requested amount of horizontal spacing between each item in the grid.

The value returned may have been supplied during inflation as part of a style, the default GridView style, or by a call to #setHorizontalSpacing(int). If layout is not yet complete or if GridView calculated a different horizontal spacing from what was requested, this may return a different value from #getHorizontalSpacing().

Java documentation for android.widget.GridView.getRequestedHorizontalSpacing().

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

See also