public final class VerticalScroll extends ComponentLifecycle
ScrollView
.
See also:
HorizontalScroll
for horizontal scrollability.com.facebook.litho.widget.VerticalScrollSpec
Modifier and Type | Class and Description |
---|---|
static class |
VerticalScroll.Builder |
ComponentLifecycle.MountType, ComponentLifecycle.RenderData, ComponentLifecycle.StateContainer, ComponentLifecycle.StateUpdate
Modifier and Type | Method and Description |
---|---|
boolean |
canMountIncrementally()
Whether this
ComponentLifecycle mounts views that contain component-based
content that can be incrementally mounted e.g. |
protected boolean |
canPreallocate() |
static VerticalScroll.Builder |
create(ComponentContext context) |
static VerticalScroll.Builder |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes) |
protected void |
createInitialState(ComponentContext context,
Component _abstractImpl) |
ComponentLifecycle.MountType |
getMountType()
This indicates the type of the
Object that will be returned by
ComponentLifecycle.mount(com.facebook.litho.ComponentContext, java.lang.Object, com.facebook.litho.Component<?>) . |
protected boolean |
hasState() |
protected void |
onBind(ComponentContext context,
Object lithoScrollView,
Component _abstractImpl) |
protected Object |
onCreateMountContent(ComponentContext context)
Create the object that will be mounted in the
LithoView . |
protected void |
onMount(ComponentContext context,
Object lithoScrollView,
Component _abstractImpl)
Deploy all UI elements representing the final bounds defined in the given
ComponentLayout . |
protected void |
onPrepare(ComponentContext context,
Component _abstractImpl) |
protected void |
onUnbind(ComponentContext context,
Object lithoScrollView,
Component _abstractImpl) |
protected void |
onUnmount(ComponentContext context,
Object lithoScrollView,
Component _abstractImpl)
Unload UI elements associated with this component.
|
protected int |
poolSize() |
protected void |
transferState(ComponentContext context,
ComponentLifecycle.StateContainer prevStateContainer,
Component component)
|
acceptTriggerEvent, acquireDiff, acquireOutput, applyPreviousRenderData, callsShouldUpdateOnMount, canAcceptTrigger, canMeasure, dispatchOnEvent, getEventTrigger, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getTreePropsForChildren, implementsAccessibility, implementsExtraAccessibilityNodes, isMountSizeDependent, isPureRender, needsPreviousRenderData, newEventHandler, newEventHandler, newEventTrigger, onBoundsDefined, onCreateLayout, onCreateLayoutWithSizeSpec, onCreateTransition, onLoadStyle, onMeasure, onMeasureBaseline, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, populateTreeProps, recordRenderData, releaseDiff, releaseOutput, shouldUpdate, shouldUseDisplayList
protected void onPrepare(ComponentContext context, Component _abstractImpl)
onPrepare
in class ComponentLifecycle
protected Object onCreateMountContent(ComponentContext context)
ComponentLifecycle
LithoView
.onCreateMountContent
in class ComponentLifecycle
context
- The ComponentContext
to be used to create the content.protected void createInitialState(ComponentContext context, Component _abstractImpl)
createInitialState
in class ComponentLifecycle
protected void onMount(ComponentContext context, Object lithoScrollView, Component _abstractImpl)
ComponentLifecycle
ComponentLayout
. Return either a Drawable
or a View
or
null
to be mounted.onMount
in class ComponentLifecycle
context
- The ComponentContext
to mount the component into._abstractImpl
- The Component
for this component.protected void onBind(ComponentContext context, Object lithoScrollView, Component _abstractImpl)
onBind
in class ComponentLifecycle
protected void onUnbind(ComponentContext context, Object lithoScrollView, Component _abstractImpl)
onUnbind
in class ComponentLifecycle
protected void onUnmount(ComponentContext context, Object lithoScrollView, Component _abstractImpl)
ComponentLifecycle
onUnmount
in class ComponentLifecycle
context
- The Context
for this mount operation.lithoScrollView
- The Drawable
or View
mounted by this component._abstractImpl
- The Component
for this component.public ComponentLifecycle.MountType getMountType()
ComponentLifecycle
Object
that will be returned by
ComponentLifecycle.mount(com.facebook.litho.ComponentContext, java.lang.Object, com.facebook.litho.Component<?>)
.getMountType
in class ComponentLifecycle
ComponentLifecycle.MountType
protected int poolSize()
poolSize
in class ComponentLifecycle
protected boolean canPreallocate()
canPreallocate
in class ComponentLifecycle
public boolean canMountIncrementally()
ComponentLifecycle
ComponentLifecycle
mounts views that contain component-based
content that can be incrementally mounted e.g. if the mounted view has a
LithoView with incremental mount enabled.canMountIncrementally
in class ComponentLifecycle
protected boolean hasState()
hasState
in class ComponentLifecycle
protected void transferState(ComponentContext context, ComponentLifecycle.StateContainer prevStateContainer, Component component)
ComponentLifecycle
transferState
in class ComponentLifecycle
public static VerticalScroll.Builder create(ComponentContext context)
public static VerticalScroll.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes)