Skip to content

[UI/#31] OurTodo / 완료, 미완료 투두리스트 구현#32

Merged
Marchbreeze merged 10 commits intodevelopfrom
ui/#31-our-todo-list
Jan 7, 2024
Merged

[UI/#31] OurTodo / 완료, 미완료 투두리스트 구현#32
Marchbreeze merged 10 commits intodevelopfrom
ui/#31-our-todo-list

Conversation

@Marchbreeze
Copy link
Member

@Marchbreeze Marchbreeze commented Jan 7, 2024

⛳️ Work Description

  • OurTodo, MyTodo 연동 가능한 네임 아이템 생성
  • OurTodo, MyTodo 연동 가능한 네임 리사이클러뷰 설정
  • MyTodo 구현
  • 바텀 네비게이션 UI 설정
  • 버튼 리스너 설정
  • collasped 말고 진짜 sticky header로 구현해보기

📸 Screenshot

KakaoTalk_Video_2024-01-08-00-05-44.mp4

📢 To Reviewers

  • OurTodo 뷰 일단 완료 ~

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.

벌써 완료, 미완료 투두리스트를 구현한 그는 그냥 빛........

이제 오빠가 마지막에 두줄 띄고 괄호 닫는 습관까지 알았으니
다음부터 더 야무지게 보겠습니다

멋쥡니다


val mockUncompleteTodoList: List<TodoModel> = listOf(
TodoModel(0,"숙소 예약하기", "2024-01-12", listOf("김상호", "박동민")),
TodoModel(1,"기차 왕복 예약하기", "2024-01-14", listOf("조세연")),
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 Author

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 +9 to +11
class TodoNameAdapter(
private val isCompleted: Boolean
) : ListAdapter<String, TodoNameViewHolder>(diffUtil) {
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 +28 to +32
private fun setRecyclerView() {
_adapter = OurTodoListAdapter(false)
binding.rvOurTodoUncomplete.adapter = adapter
adapter.submitList(viewModel.mockUncompleteTodoList)
}
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 +13 to +14
private val redColor = ContextCompat.getColor(binding.root.context, R.color.red_500)
private val grayColor = ContextCompat.getColor(binding.root.context, R.color.gray_400)
Copy link
Member

Choose a reason for hiding this comment

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

ContextCompat은 어떤 기능인가요..?

Copy link
Member Author

Choose a reason for hiding this comment

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

getColor를 사용하는 과정에서 필요한,,,기능!

Comment on lines +28 to +30
TodoModel(7,"커피 사기", "2024-01-15", listOf("이유빈"))
)

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

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

@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.

LGTM!
조아용~~~~~~~~~~

Comment on lines 24 to 25
Copy link
Member

Choose a reason for hiding this comment

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

보기에는 이 코드가 더 이쁘지만 두번 검사하는 것 보다는 한번만 검사하는 코드가 더 좋지 않을까 싶습니다!

if (item == "김상호"){
     tvTodoName.setTextColor(redColor)
     tvTodoName.isSelected = true
} else  tvTodoName.setTextColor(grayColor)

Copy link
Member Author

Choose a reason for hiding this comment

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

오호 굿굿 수정할겡요

Comment on lines +28 to +30
TodoModel(7,"커피 사기", "2024-01-15", listOf("이유빈"))
)

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 22 to 26
Copy link
Member

@chattymin chattymin Jan 7, 2024

Choose a reason for hiding this comment

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

이게 더 중복이 적어 가독성이 좋아 보이는 것 같습니다!!

tvOurTodoItemDate.setTextColor(ContextCompat.getColor(binding.root.context, 
    if(isCompleted){
        R.color.gray_200
    } else {
        R.color.gray_300
    }
))

Copy link
Member Author

Choose a reason for hiding this comment

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

요것두 ~

@Marchbreeze Marchbreeze merged commit a1ea658 into develop Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UI] OurTodo / 투두 리스트 부분 UI, 기능 구현

4 participants

Comments