fix(community): 전체보기 그리드 여백과 배경을 리스트와 맞춘다
This commit is contained in:
@@ -51,6 +51,7 @@ class CreatorCommunityAllActivity : BaseActivity<ActivityCreatorCommunityAllBind
|
|||||||
private var isListEnteredFromGridClick = false
|
private var isListEnteredFromGridClick = false
|
||||||
private val handler = Handler(Looper.getMainLooper())
|
private val handler = Handler(Looper.getMainLooper())
|
||||||
private val gridSpacingPx by lazy { 1.3f.dpToPx().toInt() }
|
private val gridSpacingPx by lazy { 1.3f.dpToPx().toInt() }
|
||||||
|
private val contentEdgePaddingPx by lazy { 13.3f.dpToPx().toInt() }
|
||||||
private val gridItemDecoration by lazy {
|
private val gridItemDecoration by lazy {
|
||||||
GridSpacingItemDecoration(
|
GridSpacingItemDecoration(
|
||||||
spanCount = GRID_SPAN_COUNT,
|
spanCount = GRID_SPAN_COUNT,
|
||||||
@@ -313,6 +314,8 @@ class CreatorCommunityAllActivity : BaseActivity<ActivityCreatorCommunityAllBind
|
|||||||
gridRecyclerView.adapter = gridAdapter
|
gridRecyclerView.adapter = gridAdapter
|
||||||
gridRecyclerView.setHasFixedSize(true)
|
gridRecyclerView.setHasFixedSize(true)
|
||||||
gridRecyclerView.itemAnimator = null
|
gridRecyclerView.itemAnimator = null
|
||||||
|
gridRecyclerView.setPadding(0, contentEdgePaddingPx, 0, contentEdgePaddingPx)
|
||||||
|
gridRecyclerView.clipToPadding = false
|
||||||
if (gridRecyclerView.itemDecorationCount == 0) {
|
if (gridRecyclerView.itemDecorationCount == 0) {
|
||||||
gridRecyclerView.addItemDecoration(gridItemDecoration)
|
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"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="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:clipToOutline="true"
|
||||||
android:outlineProvider="background">
|
android:outlineProvider="background">
|
||||||
|
|
||||||
|
|||||||
15
docs/20260306_커뮤니티그리드패딩배경동일화.md
Normal file
15
docs/20260306_커뮤니티그리드패딩배경동일화.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# 크리에이터 커뮤니티 전체보기 Grid 패딩/배경 동기화
|
||||||
|
|
||||||
|
- [x] Grid RecyclerView 상/하 padding을 List와 동일 기준으로 적용
|
||||||
|
- [x] Grid 아이템 배경색을 List 아이템 배경색과 동일하게 수정
|
||||||
|
- [x] 변경 파일 진단/빌드/테스트 실행 및 결과 기록
|
||||||
|
|
||||||
|
## 검증 기록
|
||||||
|
|
||||||
|
### 2026-03-06
|
||||||
|
- 무엇/왜/어떻게: Grid 상/하 여백과 Grid 아이템 배경색 변경이 기존 프로젝트 기준에서 안전한지 확인하기 위해 진단, 단위 테스트, 디버그 빌드, 린트를 순서대로 실행했다.
|
||||||
|
- LSP 진단: `lsp_diagnostics` (`CreatorCommunityAllActivity.kt`) 시도 결과, 현재 실행 환경에 Kotlin LSP 서버가 없어 진단 불가(`No LSP server configured for extension: .kt`).
|
||||||
|
- 실행 명령: `./gradlew :app:testDebugUnitTest :app:assembleDebug`
|
||||||
|
- 결과: `BUILD SUCCESSFUL` (단위 테스트 통과 및 디버그 빌드 성공).
|
||||||
|
- 실행 명령: `./gradlew :app:lintDebug`
|
||||||
|
- 결과: 실패. 기존 프로젝트 이슈로 보이는 `AndroidManifest.xml`의 `MissingClass(com.facebook.FacebookActivity)` 포함 다수(18 errors, 577 warnings)로 중단되었고, 이번 변경 파일(`CreatorCommunityAllActivity.kt`, `item_creator_community_all_grid.xml`, `bg_round_corner_5_3_263238.xml`)과 직접 연관된 신규 오류는 로그에서 확인되지 않았다.
|
||||||
Reference in New Issue
Block a user