GridView.HorizontalSpacing Property

Definition

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

public virtual int HorizontalSpacing { [Android.Runtime.Register("getHorizontalSpacing", "()I", "GetGetHorizontalSpacingHandler")] get; }
[<get: Android.Runtime.Register("getHorizontalSpacing", "()I", "GetGetHorizontalSpacingHandler")>]
member this.HorizontalSpacing : int

Property Value

Current horizontal spacing between each item in pixels

Attributes

Remarks

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

This is only accurate for the current layout. If #setHorizontalSpacing(int) has been called but layout is not yet complete, this method may return a stale value. To get the horizontal spacing that was explicitly requested use #getRequestedHorizontalSpacing().

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

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