-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Feature/mypage_ui] add VIEW_TYPE_EMPTY #89
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.
확인 한번만!
@@ -103,7 +110,7 @@ class MyPageFragment : Fragment() { | |||
layoutManager = gridLayoutManager | |||
adapter = myPageAdapter | |||
isNestedScrollingEnabled = false | |||
}.addItemDecoration(GridSpacingItemDecoration(3, 2, false)) | |||
}.addItemDecoration(GridSpacingCustomDecoration(3, 2, 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.
}.addItemDecoration(GridSpacingCustomDecoration(3, 2, false)) | |
}.addItemDecoration(GridSpacingCustomDecoration(3, 2.dp, 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.
확인하였습니다!
ItemDiffCallback<MyPageDisplayItem>( | ||
onItemsTheSame = { old, new -> old == new }, | ||
onContentsTheSame = { old, new -> old == new } | ||
) |
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.
indent 확인
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.
LGTM 👍
class MyPageAdapter( | ||
private val onItemClicked: (MyPageDisplayItem.Photo) -> Unit | ||
private val onItemClicked: (MyPageDisplayItem.Photo) -> Unit | ||
) : ListAdapter<MyPageDisplayItem, RecyclerView.ViewHolder>( | ||
ItemDiffCallback<MyPageDisplayItem>( | ||
onItemsTheSame = { old, new -> old == new }, | ||
onContentsTheSame = { old, new -> old == new } | ||
) | ||
ItemDiffCallback<MyPageDisplayItem>( | ||
onItemsTheSame = { old, new -> old == new }, | ||
onContentsTheSame = { old, new -> old == new } | ||
) | ||
) { |
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.
code style 8자를 4자로 변경해주세욤
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.
확인하였습니다.
이슈 코드
📸 스크린샷
🍀 관련 이슈
사진이 없을 경우에 fragment xml에 imageView의 visible 속성을 바꾸었습니다.
VIEW_TYPE_EMPTY 뷰 홀더를 adpater에 추가하였습니다.