public class HorizontalScrollLithoView extends HorizontalScrollView implements HasLithoViewChildren
HorizontalScrollView
that allows to add more features needed for @HorizontalScrollSpec
.Modifier and Type | Class and Description |
---|---|
static interface |
HorizontalScrollLithoView.OnScrollChangeListener
Scroll change listener invoked when the scroll position changes.
|
static class |
HorizontalScrollLithoView.ScrollPosition |
Constructor and Description |
---|
HorizontalScrollLithoView(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
draw(Canvas canvas) |
void |
fling(int velocityX) |
void |
mount(ComponentTree componentTree,
HorizontalScrollLithoView.ScrollPosition scrollPosition,
int width,
int height,
HorizontalScrollLithoView.OnScrollChangeListener onScrollChangeListener,
ScrollStateListener scrollStateListener) |
void |
obtainLithoViewChildren(java.util.List<LithoView> lithoViews) |
protected void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec) |
protected void |
onScrollChanged(int l,
int t,
int oldl,
int oldt) |
boolean |
onTouchEvent(MotionEvent motionEvent) |
void |
unmount() |
public void fling(int velocityX)
public void draw(Canvas canvas)
protected void onScrollChanged(int l, int t, int oldl, int oldt)
public boolean onTouchEvent(MotionEvent motionEvent)
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
public void obtainLithoViewChildren(java.util.List<LithoView> lithoViews)
obtainLithoViewChildren
in interface HasLithoViewChildren
public void mount(ComponentTree componentTree, HorizontalScrollLithoView.ScrollPosition scrollPosition, int width, int height, HorizontalScrollLithoView.OnScrollChangeListener onScrollChangeListener, ScrollStateListener scrollStateListener)
public void unmount()