fix(community): 전체보기 그리드 여백과 배경을 리스트와 맞춘다
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
8
app/src/main/res/drawable/bg_round_corner_5_3_263238.xml
Normal file
8
app/src/main/res/drawable/bg_round_corner_5_3_263238.xml
Normal 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>
|
||||
@@ -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">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user