public class RongSwipeRefreshLayout
extends SwipeRefreshLayout
Modifier and Type | Class and Description |
---|---|
static interface |
RongSwipeRefreshLayout.OnFlushListener |
static interface |
RongSwipeRefreshLayout.OnLoadListener |
Modifier and Type | Field and Description |
---|---|
boolean |
isLoadMoreFinish |
boolean |
isRefreshFinish |
Constructor and Description |
---|
RongSwipeRefreshLayout(android.content.Context context) |
RongSwipeRefreshLayout(android.content.Context context,
android.util.AttributeSet attrs) |
Modifier and Type | Method and Description |
---|---|
boolean |
dispatchTouchEvent(android.view.MotionEvent ev) |
protected void |
onLayout(boolean changed,
int left,
int top,
int right,
int bottom) |
void |
setAutoLoading(boolean autoLoading)
用于设置上拉加载的模式,是将内容滑动底部后自动滑出 FooterView 直接加载,
还是先滑动到最底部,然后再手动的上拉一次才能加载?
|
void |
setCanLoading(boolean enabled) |
void |
setCanRefresh(boolean enabled)
设置是否可以下拉刷新
|
void |
setLoadMoreFinish(boolean loading)
设置加载状态,是否加载传入boolean值进行判断
|
void |
setOnFlushListener(RongSwipeRefreshLayout.OnFlushListener listener) |
void |
setOnLoadListener(RongSwipeRefreshLayout.OnLoadListener listener) |
void |
setRefreshing(boolean flushing)
设置刷新状态,是否刷新有参数 flushing 控制
|
public boolean isRefreshFinish
public boolean isLoadMoreFinish
public RongSwipeRefreshLayout(android.content.Context context)
public RongSwipeRefreshLayout(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 ev)
public void setAutoLoading(boolean autoLoading)
autoLoading
- 是将内容滑动底部后自动滑出 FooterView 直接加载,
还是先滑动到最底部,然后再手动的上拉一次才能加载public void setRefreshing(boolean flushing)
flushing
- 是否刷新public void setLoadMoreFinish(boolean loading)
loading
- 加载状态public void setCanRefresh(boolean enabled)
enabled
- 是否可以下拉刷新public void setCanLoading(boolean enabled)
public void setOnLoadListener(RongSwipeRefreshLayout.OnLoadListener listener)
public void setOnFlushListener(RongSwipeRefreshLayout.OnFlushListener listener)