-
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
[FEAT/#35] BottomSheet 구현 #41
Conversation
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.
확인했습니다
세연이가 만들어준 뷰 재사용 할 생각에 떨리는군 ..
|
||
private fun initBottomSheet() { | ||
communityList.addAll(arrayOf("직장인", "학생", "취업준비생")) | ||
|
||
val listener: (String) -> Unit = { item -> | ||
viewModel.updateCommunity(item) | ||
bottomSheet?.dismiss() |
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.
요기 하드 코딩을 필요시에는 data class로 빼거나 resource로 관리하면 좋을것 같다는 생각이 듭니다 🫡
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.
반영했읍니다 👀👍🏻
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.
수고하셨습니다~!
} | ||
|
||
private inline fun <reified T : Fragment> navigateTo() { | ||
binding.btnNext.isEnabled = false | ||
inline fun <reified T : Fragment> navigateTo() { |
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.
오 좋습니다.
if (_signUpProgress.value == SignUpProgress.CurrentJob && _community.value == "직장인" | ||
|| _signUpProgress.value == SignUpProgress.ReadyJob && _community.value == "취업준비생") |
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.
조건문이 길어져 가독성이 떨어지는 것 같은데 각각을 BooleanType local 변수로 선언해서 넣어보는 건 어떨까요?
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.
좋아요! 아래 코멘트 함께 반영해 수정했습니다 🙃
jobDetailClassBottomSheet = SingleModalBottomSheet.newInstance("직군 입력", jobDetailList, jobDetailClassListener) | ||
jobDetailClassBottomSheet?.setFocusedImageView(ivShowWhat) | ||
jobDetailClassBottomSheet?.setSelectedItem(viewModel.jobDetailClass.value) | ||
jobDetailClassBottomSheet?.show(childFragmentManager, SingleModalBottomSheet.TAG) | ||
ivShowWhat.setImageResource(R.drawable.ic_arrow_up_l) |
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.
apply 함수 써보면 가독성에 좋을 것 같아요
<data> | ||
<variable | ||
name="vm" | ||
type="com.teumteum.teumteum.presentation.signup.SignUpViewModel" /> | ||
</data> |
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.
저희 데이터 바인딩 안 쓰기로 하지 않았나요?
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.
그으랬나요?... BindingFragment에 DataBindingUtil 사용되어 있어서 일단 적용하긴 했습니담 기억이 잘 .. ㅠㅠ
&& _community.value == COMMUNITY_WORKER | ||
val isTraineeInReadyJob = _signUpProgress.value == SignUpProgress.ReadyJob | ||
&& _community.value == COMMUNITY_TRAINEE | ||
if (isWorkerInCurrentJob || isTraineeInReadyJob) _currentStep.value++ |
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.
굿 저는 개인적으로 선호하는 방향입니다 :)
왕 진짜 짱 멋져요 우리팀 짱 😆 🤍 |
📌 개요
✨ 작업 내용
✨ PR 포인트
📸 스크린샷/동영상
단일 바텀시트
bottomsheet-single-1.mp4
bottomsheet-single-2.mp4
지역선택 바텀시트
bottomsheet-area.mp4
MBTI 선택 바텀시트
bottomsheet-mbti.mp4