2.8 KiB
2.8 KiB
20260317_프로필후원순위왕관UI동일화.md
개요
UserProfileDonationAdapter의 순위 왕관 표시 UI를CreatorRankingAdapter의 랭킹 배지 UI와 동일한 리소스/표시 방식으로 맞춘다.
작업 내용
UserProfileDonationAdapter.kt의 순위 UI 로직을img_rank_1,img_rank_2,img_rank_3기반으로 변경- 기존 원형 배경(
iv_bg) 및 왕관 아이콘(ic_crown_*) 노출 로직 제거 item_user_profile_donation.xml에서iv_crown위치를 중앙 고정으로 변경item_user_profile_donation.xml에서iv_crown크기를match_parent로 조정하고fitCenter적용UserProfileDonationAdapter.kt에서 런타임LayoutParams위치 세팅 코드 제거- 검증 수행 (
lsp_diagnostics,./gradlew :app:testDebugUnitTest,./gradlew :app:assembleDebug)
검증 기록
- 무엇을: 유저 프로필 후원 랭킹의 상위 3위 왕관 표시 UI를 홈 크리에이터 랭킹 배지와 동일 리소스로 변경
- 왜: 화면 간 순위 표현의 일관성을 맞추기 위함
- 어떻게:
UserProfileDonationAdapter.kt에서 상위 3위 리소스를img_rank_1~3로 교체iv_bg는 항상GONE처리하고iv_crown을 중앙 정렬하여 배지 오버레이 방식으로 통일lsp_diagnostics시도(현재 환경은 Kotlin LSP 미구성), Gradle 테스트/빌드로 컴파일 및 동작 가능 여부 확인
- 결과:
app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/donation/UserProfileDonationAdapter.kt반영 완료./gradlew :app:testDebugUnitTest성공./gradlew :app:assembleDebug성공- LSP 진단은
.kt서버 미설정으로 미실행(대신 Gradle 검증으로 대체)
추가 수정 (왕관 위치/크기)
- 무엇을: 왕관 배지의 위치를 XML 고정으로 전환하고 배지 크기를 조정
- 왜: 바인딩마다 위치를 재설정하는 중복 코드를 제거하고, 프로필 이미지가 배지 밖으로 보이는 문제를 방지하기 위함
- 어떻게:
item_user_profile_donation.xml의iv_crown을layout_centerInParent="true",layout_width/height="match_parent",scaleType="fitCenter"로 수정UserProfileDonationAdapter.kt에서RelativeLayout.LayoutParams를 조작하던 코드와 import 제거lsp_diagnostics재시도(현재 환경은.kt,.xmlLSP 미구성), Gradle 테스트/빌드 재검증
- 결과:
app/src/main/res/layout/item_user_profile_donation.xml반영 완료app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/donation/UserProfileDonationAdapter.kt반영 완료./gradlew :app:testDebugUnitTest성공./gradlew :app:assembleDebug성공- LSP 진단은
.kt,.xml서버 미설정으로 미실행(대신 Gradle 검증으로 대체)