From 75ba68eb8d65a32251704c604b3e27f3121808ce Mon Sep 17 00:00:00 2001 From: liugl <liugl@sinata.cn> Date: 星期四, 07 一月 2021 09:22:58 +0800 Subject: [PATCH] Merge branches 'cargo_small' and 'master' of http://sinata.cn:10101/gitblit/r/android/OkGoinCar into cargo_small --- app/src/main/java/com/okgoincar/slab/event/SlabMineEventAdapter.kt | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/okgoincar/slab/event/SlabMineEventAdapter.kt b/app/src/main/java/com/okgoincar/slab/event/SlabMineEventAdapter.kt index d6fe582..8612423 100644 --- a/app/src/main/java/com/okgoincar/slab/event/SlabMineEventAdapter.kt +++ b/app/src/main/java/com/okgoincar/slab/event/SlabMineEventAdapter.kt @@ -2,6 +2,7 @@ import android.view.View import cn.sinata.xldutils.utils.getNowTimeBlack +import cn.sinata.xldutils.utils.textColor import com.okgoincar.R import com.okgoincar.base.BaseRvAdapter import com.okgoincar.base.BaseViewHolder @@ -25,9 +26,11 @@ private fun setblack(nowTimeBlack: Boolean, itemView: View) { if (nowTimeBlack){ - itemView.rl_back.setBackgroundResource(R.color.black_191919) + itemView.rl_back.setBackgroundResource(R.color.slab_gray) + itemView.tv_start.textColor(context,R.color.write) }else{ - itemView.rl_back.setBackgroundResource(R.color.main_green) + itemView.rl_back.setBackgroundResource(R.color.write) + itemView.tv_start.textColor(context,R.color.black) } } -- Gitblit v1.7.1