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 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.