-
Notifications
You must be signed in to change notification settings - Fork 0
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
#23 [UI] 애착인형 이름 수정 뷰 #31
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.
쇼 앤 프루브
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | ||
super.onViewCreated(view, savedInstanceState) | ||
|
||
activityViewModel = |
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.
viewModelProvider를 사용하는 이유가 알고 싶습니다~
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.
위의 게시글을 참고해보시면 다양한 viewModel 초기화 방법 중에 하나입니다!
viewModelProvider와 by viewmodels는 동일한 작업을 수행하지만, 위임을 이용한(by viewmodels) 경우, 객체가 처음 사용될 때 인스턴스화가 되기 때문에 fragment의 빠른 로드를 도와줍니다~
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.
수고하셨습니당 곰돌이 너무 귀엽네
companion object { | ||
private const val NICKNAME_PATTERN = | ||
"^[ㄱ-ㅣ가-힣a-zA-Z0-9\\u318D\\u119E\\u11A2\\u2022\\u2025a\\u00B7\\uFE55]+$" | ||
val NICKNAME_REGEX: Pattern = Pattern.compile(NICKNAME_PATTERN) |
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.
굿굿
|
||
fun checkIsNicknameValid() { | ||
val nicknameLength = nickname.value?.length ?: 0 | ||
_isNickNameValid.value = nicknameLength in 1..10 |
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.
이 부분도 companion object 빼주세용 히히 😆
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.
너무 기엽다 ㅜ
|
||
val nickname: MutableLiveData<String> = MutableLiveData("") | ||
|
||
var filterSpecialCharacter = InputFilter { source, _, _, _, _, _ -> |
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.
source 옆에 빈칸은 무슨의미인가요?.?
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:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/tv_bear_naming_question" /> | ||
|
||
<com.airbnb.lottie.LottieAnimationView |
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.
로티 사용하느라 수고하셨슴다
📑 Work Description
🛠️ Issue
📷 Screenshot
Screen_recording_20240111_024910.mp4
💬 To Reviewers