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

[Feature/mypage_ui] add VIEW_TYPE_EMPTY #89

Merged
merged 10 commits into from
Jul 7, 2023
Merged

Conversation

librarywon
Copy link
Contributor

@librarywon librarywon commented Jul 6, 2023

이슈 코드

📸 스크린샷

스크린샷 2023-07-07 오전 4 10 23

🍀 관련 이슈

  • 기존
    사진이 없을 경우에 fragment xml에 imageView의 visible 속성을 바꾸었습니다.
  • 수정
    VIEW_TYPE_EMPTY 뷰 홀더를 adpater에 추가하였습니다.

@librarywon librarywon requested a review from a team as a code owner July 6, 2023 19:19
@librarywon librarywon self-assigned this Jul 6, 2023
@librarywon librarywon added 🦈서재원 서재원이 했다 🔨 Refactor 코드 리팩토링 labels Jul 6, 2023
Copy link
Member

@l2hyunwoo l2hyunwoo left a 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))
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
}.addItemDecoration(GridSpacingCustomDecoration(3, 2, false))
}.addItemDecoration(GridSpacingCustomDecoration(3, 2.dp, false))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

확인하였습니다!

Comment on lines 23 to 26
ItemDiffCallback<MyPageDisplayItem>(
onItemsTheSame = { old, new -> old == new },
onContentsTheSame = { old, new -> old == new }
)
Copy link
Member

Choose a reason for hiding this comment

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

indent 확인

Copy link
Contributor Author

Choose a reason for hiding this comment

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

반영하였습니다!

Copy link
Member

@kez-lab kez-lab 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 20 to 27
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 }
)
) {
Copy link
Member

Choose a reason for hiding this comment

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

code style 8자를 4자로 변경해주세욤

Copy link
Contributor Author

Choose a reason for hiding this comment

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

확인하였습니다.

@librarywon librarywon merged commit 66e0b9b into develop Jul 7, 2023
1 check passed
@librarywon librarywon deleted the feature/mypage_ui branch July 7, 2023 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 Refactor 코드 리팩토링 🦈서재원 서재원이 했다
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature/mypage_ui] mypage ui 수정사항 반영
3 participants