public class RefreshContentWrapper extends java.lang.Object implements RefreshContent, CoordinatorLayoutListener, android.animation.ValueAnimator.AnimatorUpdateListener
Modifier and Type | Field and Description |
---|---|
protected SimpleBoundaryDecider |
mBoundaryAdapter |
protected android.view.View |
mContentView |
protected boolean |
mEnableLoadMore |
protected boolean |
mEnableRefresh |
protected android.view.View |
mFixedFooter |
protected android.view.View |
mFixedHeader |
protected int |
mLastSpinner |
protected android.view.View |
mOriginalContentView |
protected android.view.View |
mScrollableView |
Constructor and Description |
---|
RefreshContentWrapper(android.view.View view) |
Modifier and Type | Method and Description |
---|---|
boolean |
canLoadMore() |
boolean |
canRefresh() |
protected void |
findScrollableView(android.view.View content,
RefreshKernel kernel) |
protected android.view.View |
findScrollableViewByPoint(android.view.View content,
android.graphics.PointF event,
android.view.View orgScrollableView) |
protected android.view.View |
findScrollableViewInternal(android.view.View content,
boolean selfAble) |
android.view.View |
getScrollableView() |
android.view.View |
getView() |
void |
moveSpinner(int spinner,
int headerTranslationViewId,
int footerTranslationViewId) |
void |
onActionDown(android.view.MotionEvent e) |
void |
onAnimationUpdate(android.animation.ValueAnimator animation) |
void |
onCoordinatorUpdate(boolean enableRefresh,
boolean enableLoadMore) |
android.animation.ValueAnimator.AnimatorUpdateListener |
scrollContentWhenFinished(int spinner) |
void |
setEnableLoadMoreWhenContentNotFull(boolean enable) |
void |
setScrollBoundaryDecider(ScrollBoundaryDecider boundary) |
void |
setUpComponent(RefreshKernel kernel,
android.view.View fixedHeader,
android.view.View fixedFooter) |
protected android.view.View mContentView
protected android.view.View mOriginalContentView
protected android.view.View mScrollableView
protected android.view.View mFixedHeader
protected android.view.View mFixedFooter
protected int mLastSpinner
protected boolean mEnableRefresh
protected boolean mEnableLoadMore
protected SimpleBoundaryDecider mBoundaryAdapter
protected void findScrollableView(android.view.View content, RefreshKernel kernel)
public void onCoordinatorUpdate(boolean enableRefresh, boolean enableLoadMore)
onCoordinatorUpdate
in interface CoordinatorLayoutListener
protected android.view.View findScrollableViewInternal(android.view.View content, boolean selfAble)
protected android.view.View findScrollableViewByPoint(android.view.View content, android.graphics.PointF event, android.view.View orgScrollableView)
public android.view.View getView()
getView
in interface RefreshContent
public android.view.View getScrollableView()
getScrollableView
in interface RefreshContent
public void moveSpinner(int spinner, int headerTranslationViewId, int footerTranslationViewId)
moveSpinner
in interface RefreshContent
public boolean canRefresh()
canRefresh
in interface RefreshContent
public boolean canLoadMore()
canLoadMore
in interface RefreshContent
public void onActionDown(android.view.MotionEvent e)
onActionDown
in interface RefreshContent
public void setUpComponent(RefreshKernel kernel, android.view.View fixedHeader, android.view.View fixedFooter)
setUpComponent
in interface RefreshContent
public void setScrollBoundaryDecider(ScrollBoundaryDecider boundary)
setScrollBoundaryDecider
in interface RefreshContent
public void setEnableLoadMoreWhenContentNotFull(boolean enable)
setEnableLoadMoreWhenContentNotFull
in interface RefreshContent
public android.animation.ValueAnimator.AnimatorUpdateListener scrollContentWhenFinished(int spinner)
scrollContentWhenFinished
in interface RefreshContent
public void onAnimationUpdate(android.animation.ValueAnimator animation)
onAnimationUpdate
in interface android.animation.ValueAnimator.AnimatorUpdateListener