|
|
@ -38,6 +38,13 @@ class ExploreShowActivity : VMBaseActivity<ExploreShowViewModel>(R.layout.activi |
|
|
|
loadMoreView = LoadMoreView(this) |
|
|
|
loadMoreView = LoadMoreView(this) |
|
|
|
adapter.addFooterView(loadMoreView) |
|
|
|
adapter.addFooterView(loadMoreView) |
|
|
|
loadMoreView.startLoad() |
|
|
|
loadMoreView.startLoad() |
|
|
|
|
|
|
|
loadMoreView.setOnClickListener { |
|
|
|
|
|
|
|
if (!isLoading) { |
|
|
|
|
|
|
|
isLoading = true |
|
|
|
|
|
|
|
loadMoreView.hasMore() |
|
|
|
|
|
|
|
scrollToBottom() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
recycler_view.addOnScrollListener(object : RecyclerView.OnScrollListener() { |
|
|
|
recycler_view.addOnScrollListener(object : RecyclerView.OnScrollListener() { |
|
|
|
override fun onScrolled(recyclerView: RecyclerView, dx: Int, dy: Int) { |
|
|
|
override fun onScrolled(recyclerView: RecyclerView, dx: Int, dy: Int) { |
|
|
|
super.onScrolled(recyclerView, dx, dy) |
|
|
|
super.onScrolled(recyclerView, dx, dy) |
|
|
|