public class SwipeRefreshLayoutForNormal
extends SwipeRefreshLayout
implements android.widget.AbsListView.OnScrollListener
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
SwipeRefreshLayoutForNormal.OnUpLoadListener |
| 构造器和说明 |
|---|
SwipeRefreshLayoutForNormal(android.content.Context context) |
SwipeRefreshLayoutForNormal(android.content.Context context,
android.util.AttributeSet attrs) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkStateAndSetMaxSize(int maxSize,
int canScrollCount)
检是否显示加载完成的布局
|
boolean |
dispatchTouchEvent(android.view.MotionEvent event) |
protected void |
onLayout(boolean changed,
int left,
int top,
int right,
int bottom) |
void |
onScroll(android.widget.AbsListView view,
int firstVisibleItem,
int visibleItemCount,
int totalItemCount) |
void |
onScrollStateChanged(android.widget.AbsListView view,
int scrollState) |
void |
setDefaultChildCount(int defaultChildCount)
设置当前listview包含的默认的child count
|
void |
setLoadingFooterView()
设置加载状态的footer view
|
void |
setOnUpLoadListener(SwipeRefreshLayoutForNormal.OnUpLoadListener loadListener) |
void |
setUpLoading(boolean loading) |
public SwipeRefreshLayoutForNormal(android.content.Context context)
public SwipeRefreshLayoutForNormal(android.content.Context context,
android.util.AttributeSet attrs)
protected void onLayout(boolean changed,
int left,
int top,
int right,
int bottom)
public boolean dispatchTouchEvent(android.view.MotionEvent event)
public void setDefaultChildCount(int defaultChildCount)
defaultChildCount - 默认的child countpublic void checkStateAndSetMaxSize(int maxSize,
int canScrollCount)
maxSize - maxSizecanScrollCount - canScrollCountpublic void setLoadingFooterView()
public void setUpLoading(boolean loading)
public void setOnUpLoadListener(SwipeRefreshLayoutForNormal.OnUpLoadListener loadListener)
public void onScrollStateChanged(android.widget.AbsListView view,
int scrollState)
onScrollStateChanged 在接口中 android.widget.AbsListView.OnScrollListenerpublic void onScroll(android.widget.AbsListView view,
int firstVisibleItem,
int visibleItemCount,
int totalItemCount)
onScroll 在接口中 android.widget.AbsListView.OnScrollListener