public final class Card extends ComponentLifecycle
com.facebook.litho.widget.CardSpec
Modifier and Type | Class and Description |
---|---|
static class |
Card.Builder |
ComponentLifecycle.MountType, ComponentLifecycle.RenderData, ComponentLifecycle.StateContainer, ComponentLifecycle.StateUpdate
Modifier and Type | Method and Description |
---|---|
static Card.Builder |
create(ComponentContext context) |
static Card.Builder |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes) |
boolean |
isPureRender() |
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, 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 boolean isPureRender()
isPureRender
in class ComponentLifecycle
public static Card.Builder create(ComponentContext context)
public static Card.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes)