33 lines
3.2 KiB
Markdown
33 lines
3.2 KiB
Markdown
# 커뮤니티 전체 아이템 텍스트 수정
|
|
|
|
## 구현 체크리스트
|
|
- [x] `item_creator_community_all.xml`의 닉네임 글자 크기를 `item_creator_community.xml`과 동일하게 조정
|
|
- [x] `item_creator_community_all.xml`의 date 글자 크기를 `item_creator_community.xml`과 동일하게 조정
|
|
- [x] `item_creator_community_all.xml`의 content 글자 크기를 `item_creator_community.xml`과 동일하게 조정
|
|
- [x] content 길이가 길 때 말줄임표가 보이도록 속성 보강
|
|
- [x] `item_creator_community_all.xml`의 닉네임/date/content fontFamily를 `item_creator_community.xml`과 동일하게 조정
|
|
- [x] 콘텐츠가 여러 줄일 때도 글자 수 제한 초과 시 말줄임표가 보이도록 어댑터 로직 보강
|
|
- [x] 여러 줄 접힘 상태에서 불필요한 스크롤 없이 말줄임표(`...`)가 보이도록 텍스트 처리 로직 보강
|
|
|
|
## 검증 기록
|
|
- 무엇/왜/어떻게: `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` 수행 불가(확인 메시지 수신).
|