From 951817455ad28563f56df98fb42f9655b36c80e0 Mon Sep 17 00:00:00 2001 From: kehaoyuan Date: Wed, 1 Jul 2020 18:22:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B8=B8=E6=88=8F=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E8=AF=84=E5=88=86=E6=95=B0=E5=80=BC=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E4=B8=8D=E4=B8=80=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/gh/gamecenter/game/imageslide/ImageSlideAdapter.kt | 4 ++-- app/src/main/res/layout/game_attach_item.xml | 2 +- app/src/main/res/layout/game_horizontal_item.xml | 4 ++-- app/src/main/res/layout/game_item.xml | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/gh/gamecenter/game/imageslide/ImageSlideAdapter.kt b/app/src/main/java/com/gh/gamecenter/game/imageslide/ImageSlideAdapter.kt index 47c9ad07bf..dfce7791ff 100644 --- a/app/src/main/java/com/gh/gamecenter/game/imageslide/ImageSlideAdapter.kt +++ b/app/src/main/java/com/gh/gamecenter/game/imageslide/ImageSlideAdapter.kt @@ -17,7 +17,7 @@ class ImageSlideAdapter(context: Context, var subject: GameEntity, val skipListener: View.OnClickListener, val entrance: String, - private val mShowGameIconGif :Boolean = true) : BaseRecyclerAdapter(context) { + private val mShowGameIconGif: Boolean = true) : BaseRecyclerAdapter(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) diff --git a/app/src/main/res/layout/game_attach_item.xml b/app/src/main/res/layout/game_attach_item.xml index 6dbfe434eb..4e211b802a 100644 --- a/app/src/main/res/layout/game_attach_item.xml +++ b/app/src/main/res/layout/game_attach_item.xml @@ -74,7 +74,7 @@