public class RefreshContentWrapper extends java.lang.Object implements RefreshContent
| 限定符和类型 | 字段和说明 |
|---|---|
protected ScrollBoundaryDeciderAdapter |
mBoundaryAdapter |
protected android.view.View |
mContentView |
protected boolean |
mEnableLoadMore |
protected boolean |
mEnableRefresh |
protected android.view.View |
mFixedFooter |
protected android.view.View |
mFixedHeader |
protected int |
mFooterHeight |
protected int |
mHeaderHeight |
protected android.view.MotionEvent |
mMotionEvent |
protected android.view.View |
mRealContentView |
protected android.view.View |
mScrollableView |
| 构造器和说明 |
|---|
RefreshContentWrapper(android.view.View view) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canLoadMore() |
boolean |
canRefresh() |
protected void |
findScrollableView(android.view.View content,
RefreshKernel kernel) |
protected android.view.View |
findScrollableViewByEvent(android.view.View content,
android.view.MotionEvent event,
android.view.View orgScrollableView) |
protected android.view.View |
findScrollableViewInternal(android.view.View content,
boolean selfable) |
void |
fling(int velocity) |
android.view.ViewGroup.LayoutParams |
getLayoutParams() |
int |
getMeasuredHeight() |
int |
getMeasuredWidth() |
android.view.View |
getScrollableView() |
android.view.View |
getView() |
static boolean |
isScrollableView(android.view.View view) |
void |
layout(int left,
int top,
int right,
int bottom) |
void |
measure(int widthSpec,
int heightSpec) |
protected static int |
measureViewHeight(android.view.View view) |
void |
moveSpinner(int spinner) |
void |
onActionDown(android.view.MotionEvent e) |
void |
onActionUpOrCancel() |
void |
onInitialHeaderAndFooter(int headerHeight,
int footerHeight) |
android.animation.ValueAnimator.AnimatorUpdateListener |
scrollContentWhenFinished(int spinner) |
protected static void |
scrollListBy(android.widget.AbsListView listView,
int y) |
void |
setEnableLoadMoreWhenContentNotFull(boolean enable) |
void |
setScrollBoundaryDecider(ScrollBoundaryDecider boundary) |
void |
setUpComponent(RefreshKernel kernel,
android.view.View fixedHeader,
android.view.View fixedFooter) |
protected int mHeaderHeight
protected int mFooterHeight
protected android.view.View mContentView
protected android.view.View mRealContentView
protected android.view.View mScrollableView
protected android.view.View mFixedHeader
protected android.view.View mFixedFooter
protected boolean mEnableRefresh
protected boolean mEnableLoadMore
protected android.view.MotionEvent mMotionEvent
protected ScrollBoundaryDeciderAdapter mBoundaryAdapter
protected void findScrollableView(android.view.View content,
RefreshKernel kernel)
protected android.view.View findScrollableViewInternal(android.view.View content,
boolean selfable)
protected android.view.View findScrollableViewByEvent(android.view.View content,
android.view.MotionEvent event,
android.view.View orgScrollableView)
@NonNull public android.view.View getView()
getView 在接口中 RefreshContentpublic void moveSpinner(int spinner)
moveSpinner 在接口中 RefreshContentpublic boolean canRefresh()
canRefresh 在接口中 RefreshContentpublic boolean canLoadMore()
canLoadMore 在接口中 RefreshContentpublic void measure(int widthSpec,
int heightSpec)
measure 在接口中 RefreshContentpublic android.view.ViewGroup.LayoutParams getLayoutParams()
getLayoutParams 在接口中 RefreshContentpublic int getMeasuredWidth()
getMeasuredWidth 在接口中 RefreshContentpublic int getMeasuredHeight()
getMeasuredHeight 在接口中 RefreshContentpublic void layout(int left,
int top,
int right,
int bottom)
layout 在接口中 RefreshContentpublic android.view.View getScrollableView()
getScrollableView 在接口中 RefreshContentpublic void onActionDown(android.view.MotionEvent e)
onActionDown 在接口中 RefreshContentpublic void onActionUpOrCancel()
onActionUpOrCancel 在接口中 RefreshContentpublic void fling(int velocity)
fling 在接口中 RefreshContentpublic void setUpComponent(RefreshKernel kernel, android.view.View fixedHeader, android.view.View fixedFooter)
setUpComponent 在接口中 RefreshContentpublic void onInitialHeaderAndFooter(int headerHeight,
int footerHeight)
onInitialHeaderAndFooter 在接口中 RefreshContentpublic void setScrollBoundaryDecider(ScrollBoundaryDecider boundary)
setScrollBoundaryDecider 在接口中 RefreshContentpublic void setEnableLoadMoreWhenContentNotFull(boolean enable)
public android.animation.ValueAnimator.AnimatorUpdateListener scrollContentWhenFinished(int spinner)
scrollContentWhenFinished 在接口中 RefreshContentprotected static int measureViewHeight(android.view.View view)
protected static void scrollListBy(@NonNull
android.widget.AbsListView listView,
int y)
public static boolean isScrollableView(android.view.View view)