Skip to content
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

메인화면 식단 영역 최종 리뉴얼 및 QA 대응 #231

Merged
merged 11 commits into from
Apr 19, 2024

Conversation

wateralsie
Copy link
Contributor

이슈

작업사항

  • 식단 영역 TabLayout + ViewPager2 구성으로 변경
    image
  • 코너 변경시 메뉴의 남은 자리가 전에 보여졌던 코너의 메뉴로 채워지는 이슈 해결
  • 제목 18:30~00:00 일때 "내일 식단", 아닐시 "오늘 식단" 으로 표시

참고사항

  • DiningListExtention의 arrange() 확장함수 로직이 변경됨에 따라 (2캠퍼스 삭제, 포함되지 않은 코너는 빈 Dining 항목으로 들어가도록) 식단 상세화면 리사이클러뷰 로직도 변경해주었습니다.

구현 화면

(18시 01분 기준 - 에뮬레이터 직접 끈거에요 앱 터진거 아니에요)

2024-04-16.6.04.21.mov
image

Copy link
Member

@skdud0629 skdud0629 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다~!

Copy link
Contributor

@ThirFir ThirFir left a comment

Choose a reason for hiding this comment

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

수고하셨습니다! 👍

}

private fun updateMenu(list: List<Dining>, position: Int, arrangedList: List<Dining>) {
val menus = listOf(
Copy link
Contributor

Choose a reason for hiding this comment

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

TextView가 많아서 관리하는 데 조금 어려움이 있지 않을까 생각이 들어요. 식단 상세 페이지의 경우 하나의 텍스트 뷰에서 줄바꿈을 통해 식단을 구분하여 표시하고 있는데, 그런 비슷한 느낌으로 텍스트 뷰를 줄이면 코드 작성이 더 수월해질 수 있을 것 같아요.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

forEach로 한번에 접근하면 되서 어려움은 느끼지 못했었는데 공식문서에서도 이렇게 권장하는걸 보니 구조를 바꾸어야하긴 하겠네용 반영하겠습니다!

Copy link
Contributor Author

@wateralsie wateralsie Apr 18, 2024

Choose a reason for hiding this comment

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

4eb658d 아래쪽 리뷰 내용과 같이 수정했습니다!
@ThirFir

}
}

fun updateDining(list: List<Dining>, position: Int) {
Copy link
Contributor

Choose a reason for hiding this comment

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

변수명을 list 대신 좀 더 명확한 것으로 사용한다면 다른 사람 입장에서 구분하기 좋을 것 같습니다!

@wateralsie wateralsie merged commit 164f040 into develop Apr 19, 2024
@wateralsie wateralsie deleted the feature/update-main-dining-ui branch April 19, 2024 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants