# Class SurfaceSpacer

java.lang.Object
com.codename1.surfaces.SurfaceNode
com.codename1.surfaces.SurfaceSpacer

public class SurfaceSpacer extends SurfaceNode
A flexible spacer that absorbs the leftover space of its parent row or column, pushing its siblings apart. Maps to a SwiftUI `Spacer` and a weighted empty view on Android.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SurfaceSpacer()`
  Creates a spacer.
  `SurfaceSpacer(int minDips)`
  Creates a spacer with a minimum length along the parent's axis.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getMinDips()`
  Returns the minimum length along the parent's axis in dips.

  ### Methods inherited from class SurfaceNode

  `getActionId, getActionParams, getAlignment, getBackground, getCornerRadius, getHeightDips, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getWeight, getWidthDips, setAction, setAction, setAlignment, setBackground, setCornerRadius, setPadding, setPadding, setSize, setWeight`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### SurfaceSpacer

    public SurfaceSpacer()
    Creates a spacer.

  - ### SurfaceSpacer

    public SurfaceSpacer(int minDips)

    Creates a spacer with a minimum length along the parent's axis.

    ###### Parameters

    - `minDips`: the minimum length in dips

- ## Method Details

  - ### getMinDips

    public int getMinDips()
    Returns the minimum length along the parent's axis in dips.