详情页下拉刷新 close #2912

This commit is contained in:
Xwite
2023-03-26 10:30:40 +08:00
parent 203170c075
commit 1d0996a412
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() {
@@ -70,8 +70,6 @@
</RelativeLayout>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
<ScrollView
android:id="@+id/scroll_view"
android:background="@color/background"
@@ -400,7 +398,8 @@
</LinearLayout>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>