Commit 7883e3a1 authored by jyx's avatar jyx

添加珊瑚展示标识

parent 3cab7657
......@@ -8,6 +8,7 @@ import android.widget.Button
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.mints.goodmoney.BuildConfig
import com.mints.goodmoney.R
import com.mints.goodmoney.mvp.model.TzTaskBean
import com.mints.goodmoney.ui.adapter.listener.OnItemChildClickListener
......@@ -52,6 +53,9 @@ class TaskAdapter(val dataList: List<TzTaskBean>, val context: Context) : Recycl
if (viewHolder is SHViewHolder) {
viewHolder.adContainer.setAdModel(data.coralAd)
if (BuildConfig.DEBUG) {
viewHolder.itemTvtext.text = "珊瑚"
}
}
val holder = viewHolder as BaseViewHolder
......@@ -75,7 +79,6 @@ class TaskAdapter(val dataList: List<TzTaskBean>, val context: Context) : Recycl
holder.btnSubmit.text = "继续试玩"
}
}
if (::mOnItemClickListener.isInitialized) {
holder.itemView.setOnClickListener {
setPosition(position)
......@@ -122,6 +125,7 @@ class TaskAdapter(val dataList: List<TzTaskBean>, val context: Context) : Recycl
val ivAvatar: ImageView = view.findViewById(R.id.item_iv_avatar)
val tvTitle: TextView = view.findViewById(R.id.item_tv_title)
val tvCoin: TextView = view.findViewById(R.id.item_tv_coin)
val itemTvtext: TextView = view.findViewById(R.id.item_tv_text)
val btnSubmit: Button = view.findViewById(R.id.item_btn_submit)
}
}
\ No newline at end of file
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