Package ai.nexconn.chatui.widget
Class ChatUISwipeRefreshLayout
-
- All Implemented Interfaces:
public class ChatUISwipeRefreshLayout
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceChatUISwipeRefreshLayout.OnLoadListenerpublic interfaceChatUISwipeRefreshLayout.OnFlushListener
-
Field Summary
Fields Modifier and Type Field Description public booleanisRefreshFinishpublic booleanisLoadMoreFinish
-
Constructor Summary
Constructors Constructor Description ChatUISwipeRefreshLayout(Context context)ChatUISwipeRefreshLayout(Context context, AttributeSet attrs)
-
Method Summary
Modifier and Type Method Description booleandispatchTouchEvent(MotionEvent ev)voidsetRefreshing(boolean flushing)Set the refresh state, controlled by the flushing parameter voidsetLoadMoreFinish(boolean loading)Set the loading state voidsetCanRefresh(boolean enabled)Set whether pull-to-refresh is enabled voidsetCanLoading(boolean enabled)voidsetOnLoadListener(ChatUISwipeRefreshLayout.OnLoadListener listener)voidsetOnFlushListener(ChatUISwipeRefreshLayout.OnFlushListener listener)voidsetAutoLoading(boolean autoLoading)Set the pull-up loading mode: auto-show FooterView and load when scrolled to bottom, or require an additional manual pull-up after reaching the bottom. -
-
Method Detail
-
dispatchTouchEvent
boolean dispatchTouchEvent(MotionEvent ev)
-
setRefreshing
void setRefreshing(boolean flushing)
Set the refresh state, controlled by the flushing parameter
- Parameters:
flushing- whether to refresh
-
setLoadMoreFinish
void setLoadMoreFinish(boolean loading)
Set the loading state
- Parameters:
loading- loading state
-
setCanRefresh
void setCanRefresh(boolean enabled)
Set whether pull-to-refresh is enabled
- Parameters:
enabled- whether pull-to-refresh is enabled
-
setCanLoading
void setCanLoading(boolean enabled)
-
setOnLoadListener
void setOnLoadListener(ChatUISwipeRefreshLayout.OnLoadListener listener)
-
setOnFlushListener
void setOnFlushListener(ChatUISwipeRefreshLayout.OnFlushListener listener)
-
setAutoLoading
void setAutoLoading(boolean autoLoading)
Set the pull-up loading mode: auto-show FooterView and load when scrolled to bottom, or require an additional manual pull-up after reaching the bottom.
- Parameters:
autoLoading- true to auto-load when scrolled to bottom, false to require manual pull-up
-
-
-
-