fix(community): 전체보기 그리드 여백과 배경을 리스트와 맞춘다

This commit is contained in:
2026-03-06 19:20:58 +09:00
parent 066d1dfe1a
commit b4d6ef62a1
4 changed files with 27 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ class CreatorCommunityAllActivity : BaseActivity<ActivityCreatorCommunityAllBind
private var isListEnteredFromGridClick = false
private val handler = Handler(Looper.getMainLooper())
private val gridSpacingPx by lazy { 1.3f.dpToPx().toInt() }
private val contentEdgePaddingPx by lazy { 13.3f.dpToPx().toInt() }
private val gridItemDecoration by lazy {
GridSpacingItemDecoration(
spanCount = GRID_SPAN_COUNT,
@@ -313,6 +314,8 @@ class CreatorCommunityAllActivity : BaseActivity<ActivityCreatorCommunityAllBind
gridRecyclerView.adapter = gridAdapter
gridRecyclerView.setHasFixedSize(true)
gridRecyclerView.itemAnimator = null
gridRecyclerView.setPadding(0, contentEdgePaddingPx, 0, contentEdgePaddingPx)
gridRecyclerView.clipToPadding = false
if (gridRecyclerView.itemDecorationCount == 0) {
gridRecyclerView.addItemDecoration(gridItemDecoration)
}

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#263238" />
<corners android:radius="5.3dp" />
<stroke
android:width="1dp"
android:color="#263238" />
</shape>

View File

@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/bg_round_corner_5_3_333333"
android:background="@drawable/bg_round_corner_5_3_263238"
android:clipToOutline="true"
android:outlineProvider="background">