public final class SolidColor extends ComponentLifecycle
com.facebook.litho.widget.SolidColorSpec
Modifier and Type | Class and Description |
---|---|
static class |
SolidColor.Builder |
ComponentLifecycle.MountType, ComponentLifecycle.RenderData, ComponentLifecycle.StateContainer, ComponentLifecycle.StateUpdate
Modifier and Type | Method and Description |
---|---|
static SolidColor.Builder |
create(ComponentContext context) |
static SolidColor.Builder |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes) |
protected ComponentLayout |
onCreateLayout(ComponentContext c,
Component _abstractImpl)
Generate a tree of
ComponentLayout representing the layout structure of
the Component and its sub-components. |
acceptTriggerEvent, acquireDiff, acquireOutput, applyPreviousRenderData, callsShouldUpdateOnMount, canAcceptTrigger, canMeasure, canMountIncrementally, canPreallocate, createInitialState, dispatchOnEvent, getEventTrigger, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getMountType, getTreePropsForChildren, hasState, implementsAccessibility, implementsExtraAccessibilityNodes, isMountSizeDependent, isPureRender, needsPreviousRenderData, newEventHandler, newEventHandler, newEventTrigger, onBind, onBoundsDefined, onCreateLayoutWithSizeSpec, onCreateMountContent, onCreateTransition, onLoadStyle, onMeasure, onMeasureBaseline, onMount, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, onPrepare, onUnbind, onUnmount, poolSize, populateTreeProps, recordRenderData, releaseDiff, releaseOutput, shouldUpdate, shouldUseDisplayList, transferState
protected ComponentLayout onCreateLayout(ComponentContext c, Component _abstractImpl)
ComponentLifecycle
ComponentLayout
representing the layout structure of
the Component
and its sub-components. You should use
ComponentContext.newLayoutBuilder(int, int)
to build the layout tree.onCreateLayout
in class ComponentLifecycle
c
- The ComponentContext
to build a ComponentLayout
tree._abstractImpl
- The component to create the ComponentLayout
tree from.public static SolidColor.Builder create(ComponentContext context)
public static SolidColor.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes)