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

[UI/#33] MyTodo UI 구현 #43

Merged
merged 20 commits into from
Jan 8, 2024
Merged

[UI/#33] MyTodo UI 구현 #43

merged 20 commits into from
Jan 8, 2024

Conversation

Marchbreeze
Copy link
Member

⛳️ Work Description

  • 뷰페이저 구현
  • 마이투두 아이템 구현
  • 각 리스트 구현
  • 나만보기 구분 구현
  • fab 구현
  • 체크박스 클릭 시 완료-미완료 변경
  • 마이 투두 투두 개수 반영
  • 날짜 표시 변경
  • 체크 박스 클릭시 삭제 애니메이션 설정
  • 스티키 헤더처럼 보이는 레이아웃 구현

📸 Screenshot

KakaoTalk_Video_2024-01-08-23-20-03.mp4

📢 To Reviewers

  • 투두 메인화면들은 이제 끝 ~

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.

할말이 없네요~ 너무 잘짠다 이사람...

Comment on lines 48 to 54
binding.cbMyTodoUnselected.setOnSingleClickListener {
itemSelect(position)
}

binding.cbMyTodoSelected.setOnSingleClickListener {
itemUnselect(position)
}
Copy link
Member

Choose a reason for hiding this comment

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

binding.run 내부에 binding이 있네용 ㅎㅎㅎㅎ
수정 부탁드려요~~~

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 +13
class MyTodoListAdapter(
private val isCompleted: Boolean,
private val itemSelect: (Int) -> Unit,
private val itemUnselect: (Int) -> Unit
) : RecyclerView.Adapter<MyTodoListViewHolder>() {
Copy link
Member

Choose a reason for hiding this comment

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

파일 이름은 ListAdapter인데 RecyclerView를 상속받은 건가용..?

Copy link
Member Author

Choose a reason for hiding this comment

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

MyTodoList / Adapter 느낌,,,

Comment on lines +29 to +33
fun removeItem(position: Int) {
itemList.removeAt(position)
notifyItemRemoved(position)
notifyItemRangeChanged(position, itemCount)
}
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.

ㅠㅡㅠㅡㅠㅡㅠㅡㅠㅡㅠ

Comment on lines +84 to +86
android:layout_marginHorizontal="24dp"
android:text="우쥬랑 스페인"
app:layout_constraintEnd_toEndOf="parent"
Copy link
Member

Choose a reason for hiding this comment

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

tools 부탁드립니둥

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 +20 to +22
binding.run {
tvMyTodoItemTitle.text = item.title
tvMyTodoItemDate.text = item.endDate.replace("-", ".") + "까지"
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
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.

멋진 코드 잘 보고 갑니다!!!!!
역시 안드리드 안.리

@@ -54,7 +54,7 @@

<activity
android:name="com.going.presentation.todo.TodoActivity"
android:exported="false"
android:exported="true"
Copy link
Contributor

Choose a reason for hiding this comment

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

pr 올릴 때는 true말고 false로 올려주세요~!!!! ㅎㅎ

Copy link
Member Author

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("김상호", "박동민"), false),
TodoModel(1, "기차 왕복 예약하기", "2024-01-14", listOf("조세연"), false),
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.

당장 예약 ㄱ

fun onBind(item: TodoModel, position: Int) {
binding.run {
tvMyTodoItemTitle.text = item.title
tvMyTodoItemDate.text = item.endDate.replace("-", ".") + "까지"
Copy link
Contributor

Choose a reason for hiding this comment

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

string으로 빼주셍요

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 62f8835 into develop Jan 8, 2024
1 check passed
@Marchbreeze Marchbreeze deleted the ui/#33-my-todo branch January 8, 2024 14:54
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] MyTodo / 메인 & 투두 리스트 UI 구현
4 participants