-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
版本为com.yanzhenjie.recyclerview:x:1.3.2
使用SwipeRecyclerView + DefaultLoadMoreView
现象如标题所述
以下是我使用代码部分片段
if (data.isSuccess) {
if (!data.hasMore) finishBrowseBlock.invoke()
when {
data.isFirstEmpty -> {
loadService.showNoData()
}
data.isRefresh -> {
baseQuickAdapter.setList(data.listData)
effectiveDataBlock?.invoke(data.listData)
loadService.showSuccess()
}
else -> {
slideUpBlock?.invoke(false)
baseQuickAdapter.addData(data.listData)
loadService.showSuccess()
}
}
} else {
if (data.isRefresh) {
loadService.showEmpty()
} else {
recyclerView.loadMoreError(0,data.errMessage)
}
}
recyclerView.loadMoreFinish(data.isEmpty,data.hasMore)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels