From 4ed97d4600e3d9f55808236262f57d7247b54138 Mon Sep 17 00:00:00 2001 From: klaus Date: Thu, 14 Mar 2024 19:13:21 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=20=EB=A6=AC?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8,=20=EB=9D=BC=EC=9D=B4=EB=B8=8C=20=EC=A4=91?= =?UTF-8?q?=20=EC=A0=84=EC=B2=B4=EB=B3=B4=EA=B8=B0=20-=20=EA=B7=B8?= =?UTF-8?q?=EB=A6=AC=EB=93=9C=20=EC=95=84=EC=9D=B4=ED=85=9C=20=EC=82=AC?= =?UTF-8?q?=EC=9D=B4=20=EA=B0=84=EA=B2=A9=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sodalive/live/now/all/LiveNowAllActivity.kt | 2 +- .../sodalive/live/now/all/LiveNowAllAdapter.kt | 10 +++++----- app/src/main/res/layout/item_audio_content_new_all.xml | 9 +++++---- app/src/main/res/layout/item_live_now_all.xml | 1 + 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/kr/co/vividnext/sodalive/live/now/all/LiveNowAllActivity.kt b/app/src/main/java/kr/co/vividnext/sodalive/live/now/all/LiveNowAllActivity.kt index 64db950..5aec400 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/live/now/all/LiveNowAllActivity.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/live/now/all/LiveNowAllActivity.kt @@ -66,7 +66,7 @@ class LiveNowAllActivity : BaseActivity( } recyclerView.layoutManager = GridLayoutManager(this, spanCount) - recyclerView.addItemDecoration(GridSpacingItemDecoration(spanCount, spacing, true)) + recyclerView.addItemDecoration(GridSpacingItemDecoration(spanCount, spacing, false)) recyclerView.addOnScrollListener(object : RecyclerView.OnScrollListener() { override fun onScrolled(recyclerView: RecyclerView, dx: Int, dy: Int) { diff --git a/app/src/main/java/kr/co/vividnext/sodalive/live/now/all/LiveNowAllAdapter.kt b/app/src/main/java/kr/co/vividnext/sodalive/live/now/all/LiveNowAllAdapter.kt index 327afd8..c812bd9 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/live/now/all/LiveNowAllAdapter.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/live/now/all/LiveNowAllAdapter.kt @@ -30,12 +30,12 @@ class LiveNowAllAdapter( crossfade(true) placeholder(R.drawable.ic_place_holder) transformations(RoundedCornersTransformation(4.7f.dpToPx())) - } - val lp = binding.ivCover.layoutParams as ConstraintLayout.LayoutParams - lp.width = itemWidth - lp.height = itemWidth * 144 / 102 - binding.ivCover.layoutParams = lp + val lp = binding.ivCover.layoutParams as ConstraintLayout.LayoutParams + lp.width = itemWidth + lp.height = itemWidth * 144 / 102 + binding.ivCover.layoutParams = lp + } binding.ivLock.visibility = if (item.isPrivateRoom) { View.VISIBLE diff --git a/app/src/main/res/layout/item_audio_content_new_all.xml b/app/src/main/res/layout/item_audio_content_new_all.xml index ee623d0..d83b3b8 100644 --- a/app/src/main/res/layout/item_audio_content_new_all.xml +++ b/app/src/main/res/layout/item_audio_content_new_all.xml @@ -3,7 +3,8 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="wrap_content" - android:layout_height="wrap_content"> + android:layout_height="wrap_content" + android:layout_gravity="center"> @@ -29,8 +30,8 @@ android:id="@+id/iv_can" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:contentDescription="@null" android:layout_marginEnd="2dp" + android:contentDescription="@null" android:src="@drawable/ic_card_can_gray" /> diff --git a/app/src/main/res/layout/item_live_now_all.xml b/app/src/main/res/layout/item_live_now_all.xml index 653d155..2771845 100644 --- a/app/src/main/res/layout/item_live_now_all.xml +++ b/app/src/main/res/layout/item_live_now_all.xml @@ -3,6 +3,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="wrap_content" + android:layout_gravity="center" android:layout_height="wrap_content">