Skip to content

feat: 3주차 미션_레몬#25

Open
Lemon0610 wants to merge 5 commits intomainfrom
lemon-3
Open

feat: 3주차 미션_레몬#25
Lemon0610 wants to merge 5 commits intomainfrom
lemon-3

Conversation

@Lemon0610
Copy link
Copy Markdown
Collaborator

📌 PR 제목

[feat] 3주차 미션_RecyclerView 구현

🔗 관련 이슈

Closes #19

✨ 변경 사항

  • 홈 화면 RecyclerView를 추가
  • GridLayoutManager를 사용해 RecyclerView 구현

🔍 테스트

  • 테스트 완료
  • 에러 없음

📸 스크린샷 (선택)

구매하기 위시리스트
화면 캡처 2026-04-01 004934 화면 캡처 2026-04-01 004949 화면 캡처 2026-04-01 005004

🚨 추가 이슈

@Lemon0610 Lemon0610 changed the title Lemon 3 feat: 3주차 미션_레몬 Apr 1, 2026
Copy link
Copy Markdown
Collaborator

@kimdoyeon1234 kimdoyeon1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다! 전체적으로 RecyclerView와 Adapter를 활용해 다양한 상품 리스트를 잘 구현하셨네요. 각 아이템 레이아웃에 맞춰 데이터 모델을 세분화하여 정의한 점이 좋습니다.

2주차와 중복되는 코멘트는 생략했습니다!

전반적으로 깔끔하게 잘 작성된 코드인거 같아요! 고생 많으셨습니다! 🤓

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

현재 GridProductAdapter와 WishProductAdapter가 동일한 레이아웃과 바인딩 로직을 공유하고 있습니다. 이를 별도의 어댑터로 나누기보다, 하나의 ProductAdapter로 통합하는 것도 좋을거 같습니다! 필수는 아니니 참고만 해주세요!

Comment on lines +15 to +22
<TextView
android:id="@+id/txtName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="상품 이름"
android:textSize="20dp"
android:textStyle="bold"
android:paddingTop="6dp"/>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

현재 XML의 모든 TextView에서 textSize 단위로 dp를 사용 중인데, 시각 장애가 있거나 큰 글씨를 선호하는 사용자의 시스템 설정에 대응하려면 sp 단위를 사용하는 것이 안드로이드 표준 가이드입니다!

Comment on lines +34 to +36
}

override fun getItemCount() = items.size
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

단순히 items.size를 반환하는 것보다, 데이터 변경 시 성능 최적화를 위해 ListAdapter와 DiffUtil을 적용해볼 수도 있습니다! 그러면 getItemCount를 직접 오버라이드할 필요 없이 더 스마트하게 리스트를 관리할 수 있어요!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] 3주차 미션_레몬

2 participants