-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REFACTOR] 코스 발견 / 전면 리팩토링 #284
Conversation
…into feature/refactor-course-discover-screen
- 뷰홀더 안의 onBind 함수에서 역할에 따라 함수화 - 중복되는 이미지 로딩 코드는 바인딩 어댑터 사용
- StorageRepository, CourseRepository에서 로직이 동일한 함수 중에 하나만 남김. - UiStateV2 코드 일부 적용 - data layer에서 service, source, data/repository, domain/repository 코드 전면 수정
- 생성자로 context 넘기지 않도록 - On[Where/What]ItemClick 으로 네이밍 통일
런타임에 예외를 던져서 앱이 죽어버리는 현상을 방지하기 위해
나중에 로직 다시 설계할 예정
} | ||
|
||
fun getRecommendCourses(pageNo: Int) { | ||
viewModel.getRecommendCourse(pageNo = pageNo, "date") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아마 복붙 이슈로 이쪽 함수에서 named argument가 누락된 것 같은데 전반적으로 확인 한 번 부탁드립니다!!
super.onScrolled(recyclerView, dx, dy) | ||
|
||
// 스크롤을 내리면 원형 버튼이 보이도록 | ||
if (dy > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기 숫자 0이 무슨 의미인지 잘 모를 수 있으니 상수로 적어주시면 이해에 도움이 될 것 같습니다!
private fun initAppBarOffsetChangedListener() { | ||
// CollapsingToolbarLayout의 높이가 완전히 확장되면 텍스트가 포함된 버튼이 보이도록 | ||
binding.appBarDiscover.addOnOffsetChangedListener { appBarLayout, verticalOffset -> | ||
if (verticalOffset == 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기도 숫자 0을 상수로 바꿔주시면 이해에 도움이 될 것 같아요!
📌 개요
✨ 작업 내용
✨ PR 포인트
📸 스크린샷/동영상
course_discover.mp4