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

[FIX/#148] OurTodo, MyTodo / QA 이슈 대응, Empty뷰 위치 설정 #154

Merged
merged 17 commits into from
Jan 17, 2024

Conversation

Marchbreeze
Copy link
Member

⛳️ Work Description

  • 여행 중인 여행 isCompleted 값 따라 OurTodo 뷰 구성
  • Handler Delayed 설정
  • 여행 캐릭터랑 친구들 캐릭터 이미지 통일
  • 나만 선택된 할일이 마이 투두에서는 무조건 나만보기로 생성되는 이슈
  • 여행 입장 완료에서 대시보드 말고 여행으로 바로 입장하도록 설정
  • 친구 초대 다이얼로그 이후 다시 서버통신해서 친구 목록 업데이트 진행
  • 함께하는 친구들 클릭 영역 크게 설정
  • Empty 레이아웃 위치 동적으로 설정

📸 Screenshot

KakaoTalk_Video_2024-01-17-23-54-15.mp4

📢 To Reviewers

  • 내가 해냄 ~

@Marchbreeze Marchbreeze requested review from leeeyubin, crownjoe and chattymin and removed request for leeeyubin and crownjoe January 17, 2024 14:55
@Marchbreeze Marchbreeze self-assigned this Jan 17, 2024
@Marchbreeze Marchbreeze added 상호 🍀 FEAT ✨ 새로운 기능 구현 labels Jan 17, 2024
@Marchbreeze Marchbreeze requested a review from crownjoe January 17, 2024 14:55
Copy link
Member

@chattymin chattymin left a comment

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.

오늘부터 이름 갓상호로 바꾸세요!

Comment on lines +16 to +27
fun Activity.getWindowHeight(): Int {
val wm = this.getSystemService(Context.WINDOW_SERVICE) as WindowManager
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
val windowMetrics = wm.currentWindowMetrics
val insets = windowMetrics.windowInsets
.getInsetsIgnoringVisibility(WindowInsets.Type.systemBars())
windowMetrics.bounds.height() - insets.bottom - insets.top
} else {
val displayMetrics = DisplayMetrics()
wm.defaultDisplay.getMetrics(displayMetrics)
displayMetrics.heightPixels
}
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 +18 to 26
0 -> R.drawable.img_profile_6
1 -> R.drawable.img_profile_1
2 -> R.drawable.img_profile_2
3 -> R.drawable.img_profile_4
4 -> R.drawable.img_profile_5
5 -> R.drawable.img_profile_6
4 -> R.drawable.img_profile_8
5 -> R.drawable.img_profile_5
6 -> R.drawable.img_profile_7
else -> R.drawable.img_profile_8
else -> R.drawable.img_profile_3
}
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
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 +102 to +103

const val IS_FIRST_ENTERED = "isFirstEntered"
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 +211 to +217
private fun setEmptyViewHeight() {
binding.appbarOurTodo.addOnOffsetChangedListener { appBarLayout, verticalOffset ->
val displayHeight = activity?.getWindowHeight() ?: return@addOnOffsetChangedListener
val toolbarHeight = binding.toolbarOurTodo.height
val appBarHeight = appBarLayout.totalScrollRange + verticalOffset
binding.vpOurTodo.layoutParams = (binding.vpOurTodo.layoutParams).also {
it.height = displayHeight - toolbarHeight - appBarHeight - 300
Copy link
Member

Choose a reason for hiding this comment

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

크,,, 최고다!!!!!!!!

@Marchbreeze Marchbreeze merged commit 76353e9 into develop Jan 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEAT ✨ 새로운 기능 구현 상호 🍀
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FIX] OurTodo, MyTodo / QA 이슈 대응
4 participants