public class SurfaceSpacer

  1. Object
  2. SurfaceNode
  3. SurfaceSpacer
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.

Constructors

public SurfaceSpacer()Creates a spacer.
public SurfaceSpacer(int minDips)Creates a spacer with a minimum length along the parent’s axis.

Methods

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

Inherited methods

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 int
the minimum length in dips

Method details

getMinDips

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