Class SurfaceSpacer
java.lang.Object
com.codename1.surfaces.SurfaceNode
com.codename1.surfaces.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.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a spacer.SurfaceSpacer(int minDips) Creates a spacer with a minimum length along the parent's axis. -
Method Summary
Modifier and TypeMethodDescriptionintReturns 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
-
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.
-