修复游戏列表评分数值字体大小不一问题
This commit is contained in:
@ -17,7 +17,7 @@ class ImageSlideAdapter(context: Context,
|
||||
var subject: GameEntity,
|
||||
val skipListener: View.OnClickListener,
|
||||
val entrance: String,
|
||||
private val mShowGameIconGif :Boolean = true) : BaseRecyclerAdapter<GameHorizontalItemViewHolder>(context) {
|
||||
private val mShowGameIconGif: Boolean = true) : BaseRecyclerAdapter<GameHorizontalItemViewHolder>(context) {
|
||||
|
||||
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): GameHorizontalItemViewHolder {
|
||||
val binding: GameHorizontalItemBinding = GameHorizontalItemBinding.bind(mLayoutInflater.inflate(R.layout.game_horizontal_item, parent, false))
|
||||
@ -33,7 +33,7 @@ class ImageSlideAdapter(context: Context,
|
||||
}
|
||||
|
||||
override fun onBindViewHolder(holder: GameHorizontalItemViewHolder, position: Int) {
|
||||
val padL = if (position == 0) 88f.dip2px() else 8f.dip2px()
|
||||
val padL = if (position == 0) 184f.dip2px() else 18f.dip2px()
|
||||
holder.binding.root.setPadding(padL, 0, 0, 8f.dip2px())
|
||||
|
||||
val gameEntity = subject.games?.get(position)
|
||||
|
||||
Reference in New Issue
Block a user