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

[AN/USER] feat: 메인 화면을 프래그먼트, 바텀네비게이션 구현(#92) #104

Merged
merged 6 commits into from
Jul 24, 2023

Conversation

EmilyCh0
Copy link
Member

📌 관련 이슈

✨ PR 세부 내용

  • HomeActivity에서 바텀네비게이션으로 화면을 이동하도록 구현했습니다.
  • FestivalListFragment / TicketListFragment / MyPageFramgent 로 이동합니다.
  • 프래그먼트는 show / hide로 변경됩니다.
  • 디자인 작업 없이 빈 화면으로 이동하도록 구현했습니다.
  • 앱 실행 시 HomeActivity로 launch 되도록 했습니다.

@EmilyCh0 EmilyCh0 added AN 안드로이드에 관련된 작업 USER labels Jul 24, 2023
@EmilyCh0 EmilyCh0 self-assigned this Jul 24, 2023
Copy link
Collaborator

@re4rk re4rk left a comment

Choose a reason for hiding this comment

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

LGTM👍

@@ -21,4 +21,7 @@
<string name="ticket_entry_tv_before_entry">입장 전</string>
<string name="ticket_entry_tv_after_entry">입장 완료</string>
<string name="ticket_entry_tv_away">외출중</string>
<string name="home_bottom_navigation_festival">축제 목록</string>
Copy link
Collaborator

Choose a reason for hiding this comment

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

!-- Strings related to home --> 넣어주면 좋을 거 같아요!

}
}

private inline fun <reified T : Fragment> AppCompatActivity.changeFragment() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

확장함수가 아니여도 될거같아요!

@@ -37,7 +37,7 @@ class MainViewModel(

fun loadTicket() {
viewModelScope.launch(exceptionHandler) {
_ticket.postValue(ticketRepository.loadTicket(0L).toPresentation())
_ticket.postValue(ticketRepository.loadTicket(9L).toPresentation())
Copy link
Member

Choose a reason for hiding this comment

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

이슈와 관련된 수정사항만 커밋해주세요!

Copy link
Member Author

@EmilyCh0 EmilyCh0 Jul 24, 2023

Choose a reason for hiding this comment

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

예.

Comment on lines 17 to 18
val binding = FragmentMyPageBinding.inflate(inflater)
return binding.root
Copy link
Member

Choose a reason for hiding this comment

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

Fragment LifeCycle 과 ViewLifeCycle 이 달라서 binding 을 놓아주는 과정이 필요할 것 같아요!

https://developer.android.com/guide/fragments/lifecycle

Copy link
Member Author

Choose a reason for hiding this comment

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

반영했습니다 👍

Copy link
Member

@SeongHoonC SeongHoonC left a comment

Choose a reason for hiding this comment

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

LGTM

@EmilyCh0 EmilyCh0 merged commit 96511a4 into dev Jul 24, 2023
@EmilyCh0 EmilyCh0 deleted the feat/#92 branch July 24, 2023 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AN 안드로이드에 관련된 작업 USER
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[AN] 메인 화면을 프래그먼트, 바텀네비게이션으로 화면 이동하도록 한다
3 participants