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

[FEAT/#220] 2차 스프린트 뷰 / 프로필, 확장함수, CustomEtv 전체 삭제 기능 구현 #222

Merged
merged 22 commits into from
Mar 2, 2024

Conversation

chattymin
Copy link
Member

⛳️ Work Description

  • 유형검사 스킵
  • 내 프로필 ui 변경
  • 프로필 정보 수정 임시 ui 구현
  • 프로필 정보 수정 조건부 버튼 활성화 기능 구현
  • customEtv 텍스트 전체삭제 기능 구현

📸 Screenshot

📢 To Reviewers

  • circle Image view 라이브러리를 추가했습니다. 저희 뷰를 보니까 동그란 이미지는 테두리가 있더라구요! 매번 백그라운드 설정하는것보다 이게 더 편할거 같아서 추가했으니 자신의 뷰에 동그란 이미지가 있으면 사용하시면 좋을 것 같아요~
  • 개인정보 수정은 임시 ui 구현했습니다. 수정되면 맞춰서 수정할게용
  • 개인정보 수정 viewModel에 아직 api가 안나와서 hiltViewModel을 적용시키지 않았습니다. api 나오면 연결할게요
  • 성향검사 스킵 버튼도 api 나오면 연결하도록 하겠습니다.

@chattymin chattymin added 동민 🐥 ADD ➕ 부수적인 코드 추가 및 라이브러리 추가, 새로운 파일 생성 FEAT ✨ 새로운 기능 구현 UI 💐 UI 작업 labels Mar 1, 2024
@chattymin chattymin added this to the 2차 스프린트 milestone Mar 1, 2024
@chattymin chattymin self-assigned this Mar 1, 2024
Copy link
Member

@Marchbreeze Marchbreeze left a comment

Choose a reason for hiding this comment

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

후 이제 괴롭힐게 없음 ..

@@ -79,6 +79,7 @@ object ThirdPartyDependencies {
const val amplitude = "com.amplitude:android-sdk:${Versions.amplitudeVersion}"

const val flexbox = "com.google.android.flexbox:flexbox:${Versions.flexboxVersion}"
const val circleImageView = "de.hdodenhof:circleimageview:${Versions.circleImageViewVersion}"
Copy link
Member

Choose a reason for hiding this comment

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

와 보니깐 아워투두 친구목록에도 테두리 있었네 머지하면 쓰겟삼 최고~~

Comment on lines 79 to 81
btnDeleteText.setOnClickListener {
etEmojiCounterEtContent.text = null
}
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

Choose a reason for hiding this comment

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

넹~ 수정했습니당!

근데 혹시 이유를 알 수 있을까요??
저는 이 버튼이 클릭 하는 순간 사라지기 때문에 굳이 싱글클릭을 안해도 될 것 같다 생각해서 그냥 클릭 리스너로 했습니다!

Copy link
Member

Choose a reason for hiding this comment

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

사실 상관없습니다! ㅋㅋ

Comment on lines 86 to 87
const val NICKNAME = "NICKNAME"
const val INFO = "INFO"
Copy link
Member

Choose a reason for hiding this comment

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

createIntent를 활용하면 키값을 private으로 돌려도 작동함당 !
그것이... 캡슐화...

Copy link
Member Author

Choose a reason for hiding this comment

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

private 했습니다... 그것이..캡슐화니까...

android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHeight_percent="0.23"
Copy link
Member

Choose a reason for hiding this comment

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

오호

@chattymin chattymin changed the title [FEAT/#220] 2차 스프린트 뷰 / 프로필, 확장함수, [FEAT/#220] 2차 스프린트 뷰 / 프로필, 확장함수, CustomEtv 전체 삭제 기능 구현 Mar 1, 2024
Copy link
Member

@leeeyubin leeeyubin left a comment

Choose a reason for hiding this comment

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

깔꼼하고 좋습니다!!! 굿굿~

Comment on lines 86 to +87
implementation(flexbox)
implementation(circleImageView)
Copy link
Member

Choose a reason for hiding this comment

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

좋아요!!

Comment on lines +50 to +60
private fun observeNameTextChanged() {
binding.etProfileEditNickname.editText.doAfterTextChanged { name ->
viewModel.checkIsNameChanged(name.toString())
}
}

private fun observeInfoTextChanged() {
binding.etProfileEditInfo.editText.doAfterTextChanged { info ->
viewModel.checkIsInfoChanged(info.toString())
}
}
Copy link
Member

Choose a reason for hiding this comment

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

오,,,doAfterTextChanged를 사용해서 검사할 수도 있군요?!

Comment on lines +20 to +26
fun setDefaultValues(name: String, info: String) {
nowName = name
nowInfo = info

defaultName = name
defaultInfo = info
}
Copy link
Member

Choose a reason for hiding this comment

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

아하 요렇게 디폴트 값으로 이름이랑 정보 넣어두고 검사하는 로직이군여!!

Comment on lines +35 to +36
private fun setEtNameArguments() {
with(binding.etProfileEditNickname) {
Copy link
Member

Choose a reason for hiding this comment

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

with()를 이렇게 쓰니 코드가 간결하네욤

Copy link
Contributor

Choose a reason for hiding this comment

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

근데 진심 이거 쩌는 것 같아요...... 확 간결해지는 마법

Copy link
Contributor

@crownjoe crownjoe left a comment

Choose a reason for hiding this comment

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

역시!!! 수고하셨습니다👍👍👍👍최고최고

binding.btnTendencySplashStart.setOnSingleClickListener {
navigateToScreen<TendencyTestActivity>(listOf(Intent.FLAG_ACTIVITY_CLEAR_TOP))
navigateToScreenClear<TendencyTestActivity>()
Copy link
Contributor

Choose a reason for hiding this comment

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

좋습니다!! 만들어주신 확장함수 유용하게 잘 쓰고 있어요!!

Comment on lines +35 to +36
private fun setEtNameArguments() {
with(binding.etProfileEditNickname) {
Copy link
Contributor

Choose a reason for hiding this comment

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

근데 진심 이거 쩌는 것 같아요...... 확 간결해지는 마법

@chattymin chattymin merged commit 72a996b into develop Mar 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADD ➕ 부수적인 코드 추가 및 라이브러리 추가, 새로운 파일 생성 FEAT ✨ 새로운 기능 구현 UI 💐 UI 작업 동민 🐥
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 2차 스프린트 / 스킵, 정보수정, customEtv 전체삭제
4 participants