public class SurfaceSpacer
- Object
- SurfaceNode
- 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
From SurfaceNode
setPadding, setPadding, setBackground, setCornerRadius, setAlignment, setWeight, setSize, setAction, setAction, getPaddingTop, getPaddingRight, getPaddingBottom, getPaddingLeft, getBackground, getCornerRadius, getAlignment, getWeight, getWidthDips, getHeightDips, getActionId, getActionParams
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
minDipsint- the minimum length in dips
Method details
getMinDips
public int getMinDips()Returns the minimum length along the parent’s axis in dips.