-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor: 금주의 식단 디자인 수정 #291
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
Conversation
m6z1
left a comment
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.
뷰홀더 파일만 분리해주시구 머지 고고
고생하셨서요
app/src/main/java/com/dongyang/android/youdongknowme/ui/adapter/CafeteriaAnotherAdapter.kt
Outdated
Show resolved
Hide resolved
|
말씀해주신 뷰 홀더 수정 후 테스트 진행중 주말 출력 부분에 문제가 있어 같이 수정하였습니다!
|
m6z1
left a comment
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.
주말에 제대로 동작하는 것 확인했습니다!
코드 놓쳤던 부분 작성해뒀으니 반영 부탁드려요!
고생하셨습니다 ㅎㅎ 👍
app/src/main/java/com/dongyang/android/youdongknowme/ui/view/cafeteria/CafeteriaFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/dongyang/android/youdongknowme/ui/view/cafeteria/CafeteriaFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/dongyang/android/youdongknowme/ui/view/cafeteria/CafeteriaFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/dongyang/android/youdongknowme/ui/view/cafeteria/CafeteriaViewModel.kt
Outdated
Show resolved
Hide resolved
|
|
||
| private val _daysMenus: MutableLiveData<List<String>> = MutableLiveData() | ||
| val daysMenus: LiveData<List<String>> = _daysMenus | ||
| private val _anotherMenus: MutableLiveData<List<Array<String>>> = MutableLiveData() |
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.
anotherMenus 로 변경하게 된 계기가 있나욥 ??
다른 메뉴보다 daysMenus 가 더 명시적인 것 같아서요!
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.
일품 메뉴 안에는 고정적으로 매일 판매하는 메뉴와 날마다 변동되는 메뉴들이 있습니다!
저는 daysMenus는 일품 전체보다는 각 요일에 한정적으로 판매하는 메뉴가 더 생각나서 anotherMenus로 변경하였습니다
app/src/main/java/com/dongyang/android/youdongknowme/ui/view/cafeteria/CafeteriaViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/dongyang/android/youdongknowme/ui/view/cafeteria/CafeteriaViewModel.kt
Outdated
Show resolved
Hide resolved
m6z1
left a comment
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.
코멘트 반영만 부탁드려요!
고생하셨습니다 : )
반영 후 머지 고고싱
app/src/main/java/com/dongyang/android/youdongknowme/data/model/AnotherMenuItem.kt
Outdated
Show resolved
Hide resolved
|
|
||
| private fun setupCalendar() { | ||
| val wmc = WindowMetricsCalculator.getOrCreate().computeCurrentWindowMetrics(requireActivity()) | ||
| val dayWidth = wmc.bounds.width() / 5 |
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.
5가 무슨 값인지 상수화 한 번만 부탁드려욥
| TypedValue.COMPLEX_UNIT_DIP, | ||
| DATE_CELL_HEIGHT_DP, | ||
| resources.displayMetrics |
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.
기존에 셀 높이의 124f도 상수화하였습니다.
📮 관련 이슈
✍️ 구현 내용
📷 구현 영상
default.mp4
✔️ 확인 사항