Commit 7883e3a1 authored by jyx's avatar jyx

添加珊瑚展示标识

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