-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Feat/#14 닉네임 입력 화면 개발 #30
base: develop
Are you sure you want to change the base?
The head ref may contain hidden characters: "feat/#14-\uB2C9\uB124\uC784-\uC785\uB825-\uD654\uBA74-\uAC1C\uBC1C"
Conversation
binding.viewpagerButton.setTextColor(ContextCompat.getColor(requireContext(), R.color.white)) | ||
} else { | ||
binding.viewpagerButton.setTextColor(ContextCompat.getColor(requireContext(), R.color.grey_909090)) | ||
} |
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.
biding이 공통적으로 사용되는 거 같아 보이는데, with(binding)을 사용해 중복되는 단어를 줄여보는 건 어떤가요?? 각 View들의 속성을 설정하는 부분을 따로 메서드로 생성해 가독성을 높이는 것도 좋아 보이네요.
fun setViewPagerButton(nickname: string) {
with (binding.viewpagerButton) {
isEnabled = nickname.isNotEmpty()
if (isEnabled) {
setTextColor(ContextCompat.getColor(requireContext(), R.color.white))
} else {
setTextColor(ContextCompat.getColor(requireContext(), R.color.grey_909090))
}
}
}
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.
with(binding)을 적용해보겠습니다!
<variable | ||
name="vm" | ||
type="com.owori.android.auth.ui.viewmodel.NickNameViewModel" /> | ||
</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.
variable이 NickNameViewModel이군요. 해당 fragment는 NickNameViewModel과 연관이 없는 듯 하니 관련 없는 코드는 삭제 부탁드립니다.
<variable | ||
name="vm" | ||
type="com.owori.android.auth.ui.viewmodel.NickNameViewModel" /> | ||
</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.
마찬가지입니다~
variable이 NickNameViewModel이군요. 해당 fragment는 NickNameViewModel과 연관이 없는 듯 하니 관련 없는 코드는 삭제 부탁드립니다.
|
||
<variable | ||
name="vm" | ||
type="com.owori.android.auth.ui.viewmodel.NickNameViewModel" /> |
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.
이것도요~
variable이 NickNameViewModel이군요. 해당 fragment는 NickNameViewModel과 연관이 없는 듯 하니 관련 없는 코드는 삭제 부탁드립니다.
android:layout_height="wrap_content" | ||
android:textAppearance="@style/TextBodyRegular.03" | ||
android:textColor="@color/black" | ||
app:layout_constraintBottom_toBottomOf="@id/nickname_et" |
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.
nickname_length의 color 변경이 필요해보입니다.
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.
닉네임 길이에따라 바뀌게 변경하겠습니다!
수정 확인 후, conflict resolved 되었을 때, approve 처리하겠습니다~🤗 |
🧨이슈
🔍 상세 내용 (해결 내용)
💡 참고자료 및 공유할만한 자료 (선택)
❕후속 진행 이슈