详情页下拉刷新 close #2912

This commit is contained in:
Xwite
2023-03-26 10:30:40 +08:00
parent 649c74605c
commit adfaa4c4ff
2 changed files with 291 additions and 292 deletions
@@ -113,10 +113,6 @@ class BookInfoActivity :
override fun onActivityCreated(savedInstanceState: Bundle?) {
binding.titleBar.setBackgroundResource(R.color.transparent)
binding.refreshLayout.setColorSchemeColors(accentColor)
binding.refreshLayout.setOnRefreshListener {
binding.refreshLayout.isRefreshing = false
refreshBook()
}
binding.arcView.setBgColor(backgroundColor)
binding.llInfo.setBackgroundColor(backgroundColor)
binding.scrollView.setBackgroundColor(backgroundColor)
@@ -427,6 +423,10 @@ class BookInfoActivity :
}
}
}
refreshLayout?.setOnRefreshListener {
refreshLayout?.isRefreshing = false
refreshBook()
}
}
private fun setSourceVariable() {