feat: 游戏详情页-功能标签-APP—客户端 https://jira.shanqu.cc/browse/GHZSCY-6157
This commit is contained in:
@ -516,9 +516,7 @@ class NewGameDetailFragment(private val downloadButton: DownloadButton) : LazyFr
|
||||
LinearLayout.LayoutParams.WRAP_CONTENT,
|
||||
LinearLayout.LayoutParams.WRAP_CONTENT
|
||||
).apply {
|
||||
if (index != showTags.size - 1) {
|
||||
setMargins(8F.dip2px(), 0, 0, 0)
|
||||
}
|
||||
setMargins(8F.dip2px(), 0, 0, 0)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@ -8,6 +8,7 @@ import androidx.recyclerview.widget.RecyclerView
|
||||
import com.gh.gamecenter.common.utils.ImageUtils
|
||||
import com.gh.gamecenter.common.utils.dip2px
|
||||
import com.gh.gamecenter.common.utils.toBinding
|
||||
import com.gh.gamecenter.common.utils.toColor
|
||||
import com.gh.gamecenter.databinding.ItemGameDetailFunctionBinding
|
||||
import com.gh.gamecenter.gamedetail.entity.GameDetailInfoTag
|
||||
import com.lightgame.adapter.BaseRecyclerAdapter
|
||||
@ -31,8 +32,10 @@ class GameFunctionAdapter(
|
||||
|
||||
val infoTag = infoTags.getOrNull(position)
|
||||
ImageUtils.display(holder.binding.iconIv, infoTag?.icon)
|
||||
holder.binding.nameTv.setTextColor(com.gh.gamecenter.common.R.color.text_primary.toColor(mContext))
|
||||
holder.binding.desTv.setTextColor(com.gh.gamecenter.common.R.color.text_secondary.toColor(mContext))
|
||||
holder.binding.nameTv.text = infoTag?.name
|
||||
holder.binding.desTv.text = infoTag?.description
|
||||
holder.binding.desTv.text = infoTag?.des
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -207,7 +207,7 @@ data class GameDetailInfoTag(
|
||||
) {
|
||||
data class InfoTag(
|
||||
val name: String = "", // 功能名称
|
||||
val description: String = "", // 功能说明
|
||||
val des: String = "", // 功能说明
|
||||
val icon: String = "", // icon
|
||||
val color: String = "" // 颜色
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user