[6.7.0]
[fea] [算路模块修改]
This commit is contained in:
@@ -23,6 +23,7 @@ import com.mogo.och.weaknet.ui.bizswitch.SwtichBizeModel
|
||||
import kotlinx.android.synthetic.main.shuttle_wadk_task_running.view.no_order_data_view
|
||||
import kotlinx.android.synthetic.main.shuttle_weak_switch_line.view.aciv_refresh_task
|
||||
import kotlinx.android.synthetic.main.shuttle_weak_switch_line.view.actv_last_refresh_date
|
||||
import kotlinx.android.synthetic.main.shuttle_weak_switch_line.view.include_empty
|
||||
import kotlinx.android.synthetic.main.shuttle_weak_switch_line.view.switch_line_rv
|
||||
import me.jessyan.autosize.utils.AutoSizeUtils
|
||||
|
||||
@@ -135,10 +136,10 @@ class SwitchLineView: WindowRelativeLayout, SwtichLineModel.SwtichLineViewCallba
|
||||
BizLoopManager.runInMainThread{
|
||||
if (b) {
|
||||
switch_line_rv.visibility = View.GONE
|
||||
no_order_data_view.visibility = View.VISIBLE
|
||||
include_empty.visibility = View.VISIBLE
|
||||
} else {
|
||||
switch_line_rv.visibility = View.VISIBLE
|
||||
no_order_data_view.visibility = View.GONE
|
||||
include_empty.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,9 +37,6 @@ class TaskBottomDecoration(val distance: Int) : RecyclerView.ItemDecoration() {
|
||||
}else{
|
||||
outRect.bottom = distance
|
||||
}
|
||||
// if(pos==itemCount-1){
|
||||
// outRect.bottom = distance
|
||||
// }
|
||||
}
|
||||
//super.getItemOffsets(outRect, view, parent, state)
|
||||
}
|
||||
|
||||
@@ -47,12 +47,16 @@
|
||||
app:layout_constraintTop_toBottomOf="@+id/actv_last_refresh_date"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:layout_marginTop="@dimen/dp_22" />
|
||||
|
||||
|
||||
<include
|
||||
android:layout_width="match_parent"
|
||||
android:id="@+id/include_empty"
|
||||
layout="@layout/shuttle_weak_empty_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
layout="@layout/shuttle_weak_no_data_common_view"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
Reference in New Issue
Block a user