public final class HorizontalScroll extends SpecGeneratedComponent
android.widget.HorizontalScrollView.com.facebook.litho.widget.HorizontalScrollSpec| Modifier and Type | Class and Description |
|---|---|
static class |
HorizontalScroll.Builder |
SpecGeneratedComponent.TransitionContainerComponent.ContainerBuilder<T extends Component.ContainerBuilder<T>>, Component.MountType, Component.RenderData| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canMeasure()
Whether this
Component is able to measure itself according to
specific size constraints. |
boolean |
canPreallocate()
This API informs the framework to fill the content pool for this Mountable ahead of time.
|
protected void |
copyInterStageImpl(InterStagePropsContainer copyIntoInterStagePropsContainer,
InterStagePropsContainer copyFromInterStagePropsContainer) |
static HorizontalScroll.Builder |
create(ComponentContext context) |
static HorizontalScroll.Builder |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes) |
protected void |
createInitialState(ComponentContext c) |
protected com.facebook.litho.widget.HorizontalScroll.HorizontalScrollInterStagePropsContainer |
createInterStagePropsContainer() |
protected com.facebook.litho.widget.HorizontalScroll.HorizontalScrollStateContainer |
createStateContainer() |
Component.MountType |
getMountType()
This indicates the type of the
Object that will be returned by com.facebook.litho.Component#mount. |
protected boolean |
hasState() |
boolean |
isEquivalentProps(Component other,
boolean shouldCompareCommonProps)
Determine if this component has equivalent props to a given component.
|
protected boolean |
isMountSizeDependent() |
HorizontalScroll |
makeShallowCopy() |
protected void |
onBoundsDefined(ComponentContext context,
ComponentLayout layout,
InterStagePropsContainer _2)
Called after the layout calculation is finished and the given
ComponentLayout has its
bounds defined. |
protected java.lang.Object |
onCreateMountContent(Context c)
Create the object that will be mounted in the
LithoView. |
protected void |
onLoadStyle(ComponentContext c) |
protected void |
onMeasure(ComponentContext context,
ComponentLayout layout,
int widthSpec,
int heightSpec,
Size size,
InterStagePropsContainer _5) |
protected void |
onMount(ComponentContext context,
java.lang.Object horizontalScrollLithoView,
InterStagePropsContainer _2)
Deploy all UI elements representing the final bounds defined in the given
ComponentLayout. |
protected void |
onUnmount(ComponentContext context,
java.lang.Object mountedView,
InterStagePropsContainer _2)
Unload UI elements associated with this component.
|
int |
poolSize()
This API informs the framework about the size of the content pool.
|
protected void |
transferState(StateContainer _prevStateContainer,
StateContainer _nextStateContainer)
|
acceptTriggerEvent, acceptTriggerEventImpl, applyPreviousRenderData, bindDynamicProp, copyPrepareInterStageImpl, createContent, createPoolableContent, createPrepareInterStagePropsContainer, createRecyclingPool, dispatchOnEnteredRange, dispatchOnExitedRange, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getInterStagePropsContainer, getPoolableContentType, getPrepareInterStagePropsContainer, getSimpleName, getSimpleNameDelegate, getTreePropsForChildren, hasAttachDetachCallback, hasOwnErrorHandler, implementsAccessibility, implementsExtraAccessibilityNodes, isRecyclingDisabled, needsPreviousRenderData, onAttached, onBind, onCreateLayout, onCreateLayoutWithSizeSpec, onCreateMountContentPool, onDetached, onError, onMeasureBaseline, onPrepare, onUnbind, populateTreeProps, prepare, recordEventTrigger, recordRenderData, render, shouldAlwaysRemeasure, usesLocalStateContainerclone, createMountContent, dispatchErrorEvent, dispatchOnEvent, dispatchOnEventImpl, equals, excludeFromIncrementalMount, getCommonProps, getDynamicProps, getErrorHandler, getEventDispatcher, getEventTrigger, getEventTrigger, getHandle, getTreePropFromParent, getTypeId, hasChildLithoViews, hasClickHandlerSet, hashCode, implementsShouldUpdate, isEqualivalentTreeProps, isEquivalentCommonProps, isEquivalentTo, isEquivalentTo, isLayoutSpecWithSizeSpec, isPureRender, isPureRender, measure, measure, measureMightNotCacheInternalNode, newEventHandler, newEventTrigger, newEventTrigger, onCreateTransition, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, registerWorkingRange, resolve, retrieveValue, shouldUpdate, toString, willRenderprotected com.facebook.litho.widget.HorizontalScroll.HorizontalScrollStateContainer createStateContainer()
createStateContainer in class SpecGeneratedComponentprotected com.facebook.litho.widget.HorizontalScroll.HorizontalScrollInterStagePropsContainer createInterStagePropsContainer()
createInterStagePropsContainer in class SpecGeneratedComponentpublic boolean isEquivalentProps(Component other, boolean shouldCompareCommonProps)
ComponentisEquivalentProps in class Componentother - the component to compare toprotected void copyInterStageImpl(InterStagePropsContainer copyIntoInterStagePropsContainer, InterStagePropsContainer copyFromInterStagePropsContainer)
copyInterStageImpl in class SpecGeneratedComponentpublic HorizontalScroll makeShallowCopy()
makeShallowCopy in class Componentprotected void onLoadStyle(ComponentContext c)
onLoadStyle in class Componentprotected void onMeasure(ComponentContext context, ComponentLayout layout, int widthSpec, int heightSpec, Size size, InterStagePropsContainer _5)
onMeasure in class SpecGeneratedComponentprotected boolean canMeasure()
ComponentComponent is able to measure itself according to
specific size constraints.canMeasure in class Componentprotected void onBoundsDefined(ComponentContext context, ComponentLayout layout, InterStagePropsContainer _2)
SpecGeneratedComponentComponentLayout has its
bounds defined. You can use ComponentLayout.getX(), ComponentLayout.getY(),
ComponentLayout.getWidth(), and ComponentLayout.getHeight() to get the size and
position of the component in the layout tree.onBoundsDefined in class SpecGeneratedComponentcontext - The Context used by this component.layout - The ComponentLayout with defined position and size.protected java.lang.Object onCreateMountContent(Context c)
ComponentLithoView.onCreateMountContent in class Componentc - The Context to be used to create the content.protected void onMount(ComponentContext context, java.lang.Object horizontalScrollLithoView, InterStagePropsContainer _2)
SpecGeneratedComponentComponentLayout. Return either a Drawable or a View or null to be
mounted.onMount in class SpecGeneratedComponentcontext - The ComponentContext to mount the component into.protected void onUnmount(ComponentContext context, java.lang.Object mountedView, InterStagePropsContainer _2)
SpecGeneratedComponentonUnmount in class SpecGeneratedComponentcontext - The Context for this mount operation.mountedView - The Drawable or View mounted by this component.protected void createInitialState(ComponentContext c)
createInitialState in class SpecGeneratedComponentpublic Component.MountType getMountType()
ComponentObject that will be returned by com.facebook.litho.Component#mount.getMountType in class ComponentComponent.MountTypepublic int poolSize()
ContentAllocatorExperimental. Currently for Litho team internal use only.
poolSize in interface ContentAllocatorpoolSize in class SpecGeneratedComponentpublic boolean canPreallocate()
ContentAllocatorfalse, i.e. content is not pre-allocated. Pre-allocation of the
content can improve performance in some circumstances where creating the content is expensive.canPreallocate in interface ContentAllocatorcanPreallocate in class SpecGeneratedComponentprotected boolean isMountSizeDependent()
isMountSizeDependent in class SpecGeneratedComponentprotected boolean hasState()
hasState in class SpecGeneratedComponentprotected void transferState(StateContainer _prevStateContainer, StateContainer _nextStateContainer)
ComponenttransferState in class Componentpublic static HorizontalScroll.Builder create(ComponentContext context)
public static HorizontalScroll.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes)