详情页下拉刷新 close #2912
This commit is contained in:
@@ -113,10 +113,6 @@ class BookInfoActivity :
|
|||||||
override fun onActivityCreated(savedInstanceState: Bundle?) {
|
override fun onActivityCreated(savedInstanceState: Bundle?) {
|
||||||
binding.titleBar.setBackgroundResource(R.color.transparent)
|
binding.titleBar.setBackgroundResource(R.color.transparent)
|
||||||
binding.refreshLayout.setColorSchemeColors(accentColor)
|
binding.refreshLayout.setColorSchemeColors(accentColor)
|
||||||
binding.refreshLayout.setOnRefreshListener {
|
|
||||||
binding.refreshLayout.isRefreshing = false
|
|
||||||
refreshBook()
|
|
||||||
}
|
|
||||||
binding.arcView.setBgColor(backgroundColor)
|
binding.arcView.setBgColor(backgroundColor)
|
||||||
binding.llInfo.setBackgroundColor(backgroundColor)
|
binding.llInfo.setBackgroundColor(backgroundColor)
|
||||||
binding.scrollView.setBackgroundColor(backgroundColor)
|
binding.scrollView.setBackgroundColor(backgroundColor)
|
||||||
@@ -427,6 +423,10 @@ class BookInfoActivity :
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
refreshLayout?.setOnRefreshListener {
|
||||||
|
refreshLayout?.isRefreshing = false
|
||||||
|
refreshBook()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setSourceVariable() {
|
private fun setSourceVariable() {
|
||||||
|
|||||||
@@ -70,8 +70,6 @@
|
|||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
||||||
|
|
||||||
<ScrollView
|
<ScrollView
|
||||||
android:id="@+id/scroll_view"
|
android:id="@+id/scroll_view"
|
||||||
android:background="@color/background"
|
android:background="@color/background"
|
||||||
@@ -400,7 +398,8 @@
|
|||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|||||||
Reference in New Issue
Block a user