3.2 KiB
3.2 KiB
커뮤니티 전체 아이템 텍스트 수정
구현 체크리스트
item_creator_community_all.xml의 닉네임 글자 크기를item_creator_community.xml과 동일하게 조정item_creator_community_all.xml의 date 글자 크기를item_creator_community.xml과 동일하게 조정item_creator_community_all.xml의 content 글자 크기를item_creator_community.xml과 동일하게 조정- content 길이가 길 때 말줄임표가 보이도록 속성 보강
item_creator_community_all.xml의 닉네임/date/content fontFamily를item_creator_community.xml과 동일하게 조정- 콘텐츠가 여러 줄일 때도 글자 수 제한 초과 시 말줄임표가 보이도록 어댑터 로직 보강
- 여러 줄 접힘 상태에서 불필요한 스크롤 없이 말줄임표(
...)가 보이도록 텍스트 처리 로직 보강
검증 기록
- 무엇/왜/어떻게:
item_creator_community_all.xml에서tv_nickname,tv_date,tv_content의textSize를 기준 레이아웃과 동일 값으로 조정하고,tv_content폭을match_parent로 변경해 긴 텍스트에서 말줄임표가 동작하도록 보강했다. - 실행 명령:
./gradlew :app:testDebugUnitTest - 결과: BUILD SUCCESSFUL
- 실행 명령:
./gradlew :app:assembleDebug - 결과: BUILD SUCCESSFUL
- 진단: XML 파일은 현재 환경에서 LSP 진단 서버 미구성으로
lsp_diagnostics수행 불가(확인 메시지 수신). - 무엇/왜/어떻게:
CreatorCommunityAllAdapter에서 접힘 상태(isExpand=false)일 때 콘텐츠를 120자로 잘라...를 붙인visibleText로 표시하도록 수정해, 여러 줄에서도 글자 수 기준 말줄임표가 보이게 했다. - 실행 명령:
./gradlew --stop && ./gradlew :app:testDebugUnitTest && ./gradlew :app:assembleDebug - 결과: BUILD SUCCESSFUL (
:app:testDebugUnitTest,:app:assembleDebug순차 통과) - 진단: Kotlin/XML 확장자에 대한 LSP 서버 미구성으로
lsp_diagnostics는 수행 불가. - 무엇/왜/어떻게: 접힘 상태에서
LinkMovementMethod를 해제하고(movementMethod=null,linksClickable=false)maxLines=3,ellipsize=END, 120자 절단 텍스트를 적용했다. 펼침 상태에서만 URL span/링크 이동을 활성화해, 긴 여러 줄 콘텐츠에서 스크롤 대신 말줄임표가 우선 동작하도록 분리했다. - 실행 명령:
./gradlew --stop && ./gradlew :app:testDebugUnitTest && ./gradlew :app:assembleDebug - 결과: BUILD SUCCESSFUL (
:app:testDebugUnitTest,:app:assembleDebug순차 통과) - 진단:
.kt확장자 LSP 서버 미구성으로lsp_diagnostics수행 불가(환경 메시지 확인). - 무엇/왜/어떻게: 후속 요청에 따라
tv_nickname,tv_date,tv_content의fontFamily를 각각@font/bold,@font/regular,@font/regular로 변경해 기준 레이아웃과 동일하게 맞췄다. - 실행 명령:
./gradlew :app:testDebugUnitTest - 결과: BUILD SUCCESSFUL
- 실행 명령:
./gradlew :app:assembleDebug - 결과: BUILD SUCCESSFUL
- 진단: XML 파일은 현재 환경에서 LSP 진단 서버 미구성으로
lsp_diagnostics수행 불가(확인 메시지 수신).