protected static class DSVOrientation.HorizontalHelper
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
HorizontalHelper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canScrollHorizontally() |
boolean |
canScrollVertically() |
float |
getDistanceFromCenter(android.graphics.Point center,
int viewCenterX,
int viewCenterY) |
int |
getDistanceToChangeCurrent(int childWidth,
int childHeight) |
int |
getFlingVelocity(int velocityX,
int velocityY) |
int |
getPendingDx(int pendingScroll) |
int |
getPendingDy(int pendingScroll) |
int |
getViewEnd(int recyclerWidth,
int recyclerHeight) |
boolean |
hasNewBecomeVisible(com.yarolegovich.discretescrollview.DiscreteScrollLayoutManager lm) |
boolean |
isViewVisible(android.graphics.Point viewCenter,
int halfWidth,
int halfHeight,
int endBound,
int extraSpace) |
void |
offsetChildren(int amount,
RecyclerViewProxy helper) |
void |
setCurrentViewCenter(android.graphics.Point recyclerCenter,
int scrolled,
android.graphics.Point outPoint) |
void |
shiftViewCenter(com.yarolegovich.discretescrollview.Direction direction,
int shiftAmount,
android.graphics.Point outCenter) |
public int getViewEnd(int recyclerWidth,
int recyclerHeight)
public int getDistanceToChangeCurrent(int childWidth,
int childHeight)
public void setCurrentViewCenter(android.graphics.Point recyclerCenter,
int scrolled,
android.graphics.Point outPoint)
public void shiftViewCenter(com.yarolegovich.discretescrollview.Direction direction,
int shiftAmount,
android.graphics.Point outCenter)
public boolean isViewVisible(android.graphics.Point viewCenter,
int halfWidth,
int halfHeight,
int endBound,
int extraSpace)
public boolean hasNewBecomeVisible(com.yarolegovich.discretescrollview.DiscreteScrollLayoutManager lm)
public void offsetChildren(int amount,
RecyclerViewProxy helper)
public float getDistanceFromCenter(android.graphics.Point center,
int viewCenterX,
int viewCenterY)
public int getFlingVelocity(int velocityX,
int velocityY)
public boolean canScrollHorizontally()
public boolean canScrollVertically()
public int getPendingDx(int pendingScroll)
public int getPendingDy(int pendingScroll)