public abstract class SurfaceContainer
- Object
- SurfaceNode
- SurfaceContainer
Known subtypesSurfaceBox, SurfaceColumn, SurfaceRow
The base class of surface nodes that hold children:
SurfaceColumn, SurfaceRow and
SurfaceBox. Descriptors are limited to 8 nesting levels so they stay within the memory and
transaction budgets of platform widget renderers.Constructors
public SurfaceContainer() |
Methods
public SurfaceContainer add(SurfaceNode child) | Adds a child node. |
public List<SurfaceNode> getChildren() | Returns the live list of children. |
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
SurfaceContainer
public SurfaceContainer()Method details
add
public SurfaceContainer add(SurfaceNode child)Adds a child node.
Parameters
childSurfaceNode- the node to append
Returns
this container, for chaining
getChildren
public List<SurfaceNode> getChildren()Returns the live list of children.