5.3 KiB
5.3 KiB
20260318_라이브룸채팅왕관표시수정.md
개요
- 라이브룸 일반 채팅(
LiveRoomNormalChat)의 랭킹 왕관 표시를 요청사항에 맞게 수정한다.
작업 내용
- 기존 랭킹 분기(
-2,-1,1,2,3) 및 레이아웃 구조 확인 item_live_room_chat.xml에서 왕관 parent/자식 크기 제어 구조 반영LiveRoomChat.kt에서1,2,3위 왕관 리소스/배경 처리 로직 반영-2,-1표시 및 크기 유지 확인- 검증 수행 (
lsp_diagnostics,./gradlew :app:testDebugUnitTest,./gradlew :app:assembleDebug) - 사용자 피드백 반영:
fl_crown제거 후fl_profile/iv_crown직접 크기 조절로 재수정 1,2,3위에서만iv_crown=match_parent,fl_profile=39x38dp적용 및 나머지 기본 크기 유지
검증 기록
- 무엇을: 라이브룸 일반 채팅의 랭킹 왕관 표시에서
1,2,3위 리소스를img_rank_1~3로 변경하고, 해당 경우에만 왕관 parent 크기를39dp x 38dp로 적용 - 왜: 상위 3위 왕관 표시 규격을 신규 디자인 리소스에 맞추고,
-2,-1표시 크기는 기존과 동일하게 유지하기 위함 - 어떻게:
item_live_room_chat.xml에iv_crown전용 parent(fl_crown)를 추가하고iv_crown을match_parent로 변경LiveRoomChat.kt에서 기본 왕관 parent 크기를16.7dp로 초기화 후,1,2,3위에서만39dp x 38dp로 변경1,2,3위에서는iv_bg를null처리하고img_rank_1,img_rank_2,img_rank_3를 사용-2,-1분기의 왕관/배경 리소스는 기존 로직을 유지lsp_diagnostics실행(현재 환경.kt,.xmlLSP 미구성), Gradle 테스트/빌드 검증 수행
- 실행 명령:
lsp_diagnostics filePath=app/src/main/java/kr/co/vividnext/sodalive/live/room/chat/LiveRoomChat.ktlsp_diagnostics filePath=app/src/main/res/layout/item_live_room_chat.xml./gradlew :app:testDebugUnitTest./gradlew :app:assembleDebug
- 결과:
app/src/main/java/kr/co/vividnext/sodalive/live/room/chat/LiveRoomChat.kt반영 완료app/src/main/res/layout/item_live_room_chat.xml반영 완료./gradlew :app:testDebugUnitTest성공./gradlew :app:assembleDebug성공- LSP 진단은
.kt,.xml서버 미설정으로 미실행(Gradle 검증으로 대체)
추가 검증 (lint)
- 무엇을: 변경 영향 확인을 위해
:app:lintDebug추가 실행 - 왜: XML/Kotlin 수정 후 정적 분석 경고/오류 여부를 확인하기 위함
- 실행 명령:
./gradlew :app:lintDebug
- 결과:
- 실패(기존 이슈):
AndroidManifest.xml의com.facebook.FacebookActivityMissingClass 포함 기존 lint 오류 21건, 경고 593건 - 이번 변경 파일(
LiveRoomChat.kt,item_live_room_chat.xml) 직접 오류는 로그상 확인되지 않음
- 실패(기존 이슈):
추가 수정 (요청 반영: fl_profile/iv_crown 직접 조절)
- 무엇을:
fl_crown방식 대신fl_profile과iv_crown의 크기를 직접 제어하도록 변경 - 왜: 왕관 전용 container가 프로필 container보다 커져 표시가 깨질 수 있는 문제를 방지하기 위함
- 어떻게:
item_live_room_chat.xml에서fl_crown을 제거하고iv_crown을fl_profile직계 자식으로 복원LiveRoomChat.kt에서LiveRoomNormalChat바인딩 시 기본값을fl_profile=33.3dp,iv_crown=16.7dp로 초기화1,2,3위일 때만fl_profile=39x38dp,iv_crown=match_parent로 변경하고img_rank_1~3적용-2,-1, 그 외 분기는 기본 크기를 유지- 뷰 재활용 영향 방지를 위해
LiveRoomDonationChat,LiveRoomRouletteDonationChat에서도 기본 크기 초기화 추가
- 실행 명령:
lsp_diagnostics filePath=app/src/main/java/kr/co/vividnext/sodalive/live/room/chat/LiveRoomChat.ktlsp_diagnostics filePath=app/src/main/res/layout/item_live_room_chat.xml./gradlew :app:testDebugUnitTest./gradlew :app:assembleDebug
- 결과:
app/src/main/java/kr/co/vividnext/sodalive/live/room/chat/LiveRoomChat.kt재반영 완료app/src/main/res/layout/item_live_room_chat.xml재반영 완료LiveRoomDonationChat,LiveRoomRouletteDonationChat의 기본 크기 초기화 반영 완료
재검증 결과 (요청 반영 후)
- 실행 명령:
lsp_diagnostics filePath=app/src/main/java/kr/co/vividnext/sodalive/live/room/chat/LiveRoomChat.ktlsp_diagnostics filePath=app/src/main/res/layout/item_live_room_chat.xml./gradlew :app:testDebugUnitTest./gradlew :app:assembleDebug
- 결과:
lsp_diagnostics는 현재 환경.kt,.xml서버 미설정으로 미실행./gradlew :app:testDebugUnitTest성공./gradlew :app:assembleDebug성공
최종 재검증
- 실행 명령:
lsp_diagnostics filePath=app/src/main/java/kr/co/vividnext/sodalive/live/room/chat/LiveRoomChat.ktlsp_diagnostics filePath=app/src/main/res/layout/item_live_room_chat.xml./gradlew :app:testDebugUnitTest./gradlew :app:assembleDebug
- 결과:
lsp_diagnostics는 현재 환경.kt,.xml서버 미설정으로 미실행./gradlew :app:testDebugUnitTest성공(UP-TO-DATE 포함)./gradlew :app:assembleDebug성공(UP-TO-DATE 포함)