Commit 0bd6f8eb authored by chengkun's avatar chengkun

修改状态栏背景色

parent 0d714c68
...@@ -32,7 +32,7 @@ class OrderListActivity : BaseMvvmActivity<BorderActivityOrderListBinding, Order ...@@ -32,7 +32,7 @@ class OrderListActivity : BaseMvvmActivity<BorderActivityOrderListBinding, Order
override fun initView() { override fun initView() {
initTitleBar(binding.orderListToolbar, binding.tvTitle, "参与的") initTitleBar(binding.orderListToolbar, binding.tvTitle, "参与的")
SystemBarUtils.setStatusBarTextColorWhite(this) SystemBarUtils.setStatusBarTextColorBlack(this)
binding.orderListToolbar.setNavigationIcon(R.drawable.icon_back) binding.orderListToolbar.setNavigationIcon(R.drawable.icon_back)
initRecycleView() initRecycleView()
initClickEvent() initClickEvent()
...@@ -52,7 +52,8 @@ class OrderListActivity : BaseMvvmActivity<BorderActivityOrderListBinding, Order ...@@ -52,7 +52,8 @@ class OrderListActivity : BaseMvvmActivity<BorderActivityOrderListBinding, Order
listAdapter = OrderListAdapter() listAdapter = OrderListAdapter()
binding.rcvOrderList.adapter = listAdapter binding.rcvOrderList.adapter = listAdapter
listAdapter.setList(it) listAdapter.setList(it)
setRecyclePos() var oldPos = listAdapter.itemCount
setRecyclePos(oldPos)
}) })
} }
...@@ -82,13 +83,13 @@ class OrderListActivity : BaseMvvmActivity<BorderActivityOrderListBinding, Order ...@@ -82,13 +83,13 @@ class OrderListActivity : BaseMvvmActivity<BorderActivityOrderListBinding, Order
} }
} }
private fun setRecyclePos() { private fun setRecyclePos(pos:Int) {
when(vm._operationType) { when(vm._operationType) {
PULL -> { PULL -> {
binding.rcvOrderList.smoothScrollToPosition(1) binding.rcvOrderList.smoothScrollToPosition(1)
} }
LOAD -> { LOAD -> {
binding.rcvOrderList.smoothScrollToPosition(listAdapter.itemCount - 1) binding.rcvOrderList.smoothScrollToPosition(pos)
} }
} }
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:background="#D8D8D8"> android:background="#F7F7F7">
<androidx.appcompat.widget.Toolbar <androidx.appcompat.widget.Toolbar
android:id="@+id/order_list_toolbar" android:id="@+id/order_list_toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -77,6 +77,11 @@ ...@@ -77,6 +77,11 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"> app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager">
</androidx.recyclerview.widget.RecyclerView> </androidx.recyclerview.widget.RecyclerView>
<com.scwang.smart.refresh.footer.ClassicsFooter
android:layout_width="match_parent"
android:layout_height="0dp">
</com.scwang.smart.refresh.footer.ClassicsFooter>
</com.scwang.smart.refresh.layout.SmartRefreshLayout> </com.scwang.smart.refresh.layout.SmartRefreshLayout>
</LinearLayout> </LinearLayout>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment