Commit 75126e63 authored by chengkun's avatar chengkun

文案修改,下拉刷新默认位置

parent 3d29f672
......@@ -68,7 +68,7 @@ class OrderListActivity : BaseMvvmActivity<BorderActivityOrderListBinding, Order
binding.tvRefunded.setCompoundDrawables(null, null, null, dra)
binding.tvOrderlistAll.setTypeface(Typeface.defaultFromStyle(Typeface.NORMAL))
binding.tvOrderlistAll.setCompoundDrawables(null, null, null, null)
vm.requestFreshUserOrder(HashMap<String, String?>())
binding.smartRefresh.autoRefresh()
}
binding.tvOrderlistAll.setOnClickListener {
vm._listType = OrderListViewModel.NORMAL
......@@ -78,14 +78,14 @@ class OrderListActivity : BaseMvvmActivity<BorderActivityOrderListBinding, Order
val dra: Drawable? = getDrawable(R.drawable.icon_react_under_text)
dra!!.setBounds(0, 0, dra!!.intrinsicWidth, dra!!.intrinsicHeight)
binding.tvOrderlistAll.setCompoundDrawables(null, null, null, dra)
vm.requestFreshUserOrder(HashMap<String, String?>())
binding.smartRefresh.autoRefresh()
}
}
private fun setRecyclePos(pos:Int) {
when(vm._operationType) {
PULL -> {
binding.rcvOrderList.smoothScrollToPosition(1)
binding.rcvOrderList.smoothScrollToPosition(0)
}
LOAD -> {
// binding.rcvOrderList.smoothScrollBy()
......
......@@ -56,7 +56,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp40"
android:text="退款/售后"
android:text="退款/售后"
android:textColor="#333333"
android:textSize="16sp"
android:layout_gravity="center_vertical">
......
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