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

#23 [UI] 애착인형 이름 수정 뷰 #31

Merged
merged 16 commits into from
Jan 11, 2024

Conversation

stellar-halo
Copy link
Contributor

📑 Work Description

  • 애착 인형 이름 수정 뷰 작업 했습니다!
  • 테마 선택에서 사용자가 설정한 이름 뜨게 코드 수정했습니다.

🛠️ Issue

📷 Screenshot

Screen_recording_20240111_024910.mp4

💬 To Reviewers

  • editText에 filter를 적용해 특수문자 입력 시, editText에 반영되지 않게 했습니다!
  • 인형 선택에 따라 lottie 파일이 달라집니다! (곰탱이들 넘 귀엽다,,)

@stellar-halo stellar-halo added UI ui 관련 작업 Pull Request pr 날림! 강희🐬 강희가 작업함! labels Jan 10, 2024
@stellar-halo stellar-halo self-assigned this Jan 10, 2024
Copy link
Collaborator

@pump9918 pump9918 left a 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 =
Copy link
Collaborator

Choose a reason for hiding this comment

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

viewModelProvider를 사용하는 이유가 알고 싶습니다~

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://kotlinworld.com/89

위의 게시글을 참고해보시면 다양한 viewModel 초기화 방법 중에 하나입니다!

viewModelProvider와 by viewmodels는 동일한 작업을 수행하지만, 위임을 이용한(by viewmodels) 경우, 객체가 처음 사용될 때 인스턴스화가 되기 때문에 fragment의 빠른 로드를 도와줍니다~

Copy link
Member

@emjayMJkim emjayMJkim left a 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)
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

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

이 부분도 companion object 빼주세용 히히 😆

Copy link
Member

@minemi00 minemi00 left a 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, _, _, _, _, _ ->
Copy link
Member

Choose a reason for hiding this comment

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

source 옆에 빈칸은 무슨의미인가요?.?

Copy link
Contributor Author

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
Copy link
Member

Choose a reason for hiding this comment

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

로티 사용하느라 수고하셨슴다

@stellar-halo stellar-halo merged commit facabb4 into develop Jan 11, 2024
1 check passed
@stellar-halo stellar-halo deleted the feature/#23-ui-bear-naming branch January 11, 2024 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pull Request pr 날림! UI ui 관련 작업 강희🐬 강희가 작업함!
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[UI] 애착인형 이름 설정뷰 작업
4 participants