-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
할말이 없네요~ 너무 잘짠다 이사람...
binding.cbMyTodoUnselected.setOnSingleClickListener { | ||
itemSelect(position) | ||
} | ||
|
||
binding.cbMyTodoSelected.setOnSingleClickListener { | ||
itemUnselect(position) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
binding.run 내부에 binding이 있네용 ㅎㅎㅎㅎ
수정 부탁드려요~~~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵ㅜㅜ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
어려운 것도 척척해내는 리드 칭찬합니다~!!!
class MyTodoListAdapter( | ||
private val isCompleted: Boolean, | ||
private val itemSelect: (Int) -> Unit, | ||
private val itemUnselect: (Int) -> Unit | ||
) : RecyclerView.Adapter<MyTodoListViewHolder>() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
파일 이름은 ListAdapter
인데 RecyclerView
를 상속받은 건가용..?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MyTodoList / Adapter 느낌,,,
fun removeItem(position: Int) { | ||
itemList.removeAt(position) | ||
notifyItemRemoved(position) | ||
notifyItemRangeChanged(position, itemCount) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아이템 삭제하기,, 쉽지 않았을 텐데 수고하셨어요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ㅠㅡㅠㅡㅠㅡㅠㅡㅠㅡㅠ
android:layout_marginHorizontal="24dp" | ||
android:text="우쥬랑 스페인" | ||
app:layout_constraintEnd_toEndOf="parent" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tools 부탁드립니둥
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아직 서버 안붙여서 구현되면 바꿔둘게용~
binding.run { | ||
tvMyTodoItemTitle.text = item.title | ||
tvMyTodoItemDate.text = item.endDate.replace("-", ".") + "까지" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오호 이런 기능이 있었군여
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
멋진 코드 잘 보고 갑니다!!!!!
역시 안드리드 안.리
app/src/main/AndroidManifest.xml
Outdated
@@ -54,7 +54,7 @@ | |||
|
|||
<activity | |||
android:name="com.going.presentation.todo.TodoActivity" | |||
android:exported="false" | |||
android:exported="true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pr 올릴 때는 true말고 false로 올려주세요~!!!! ㅎㅎ
There was a problem hiding this 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("김상호", "박동민"), false), | ||
TodoModel(1, "기차 왕복 예약하기", "2024-01-14", listOf("조세연"), false), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
기차 여행?👁️👁️
There was a problem hiding this comment.
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("-", ".") + "까지" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string으로 빼주셍요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵..
⛳️ Work Description
📸 Screenshot
KakaoTalk_Video_2024-01-08-23-20-03.mp4
📢 To Reviewers