详情页下拉刷新 close #2912
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user