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

[refactor] 핑글 카드 커스텀 뷰 분리 및 지도 ViewPager Item 재구현 #185

Merged
merged 10 commits into from
Feb 21, 2024

Conversation

jihyunniiii
Copy link
Collaborator

@jihyunniiii jihyunniiii commented Feb 15, 2024

Related issue 🛠

Work Description ✏️

  • 리스트뷰 카드 부분에서 동일한 부분을 재사용 하기 위해 핑글 카드 커스텀 뷰를 분리하고 이를 활용하여 지도 ViewPager Item을 재구현하였습니다. (기존 -> 카드 전체를 커스텀뷰로 생성, 변경 후 -> 카드 상단, 카드 하단 커스텀뷰 나눠서 제작 (리스트 뷰와 지도 뷰의 카드 배경 색상이 다르기 때문에 background는 제외하고 커스텀뷰를 제작하였습니다.))

Screenshot 📸

Screen_recording_20240216_010429.mp4

Uncompleted Tasks 😅

  • N/A

To Reviewers 📢

운영 서버로 카드 분기처리 확인하였습니다 ~

@jihyunniiii jihyunniiii self-assigned this Feb 15, 2024
@jihyunniiii jihyunniiii requested a review from a team as a code owner February 15, 2024 16:12
@jihyunniiii jihyunniiii changed the title [refactor] 지도 카드 리팩토링 [refactor] 핑글 카드 커스텀 뷰 분리 및 지도 ViewPager Item 재구현 Feb 15, 2024
Copy link
Collaborator

@HAJIEUN02 HAJIEUN02 left a comment

Choose a reason for hiding this comment

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

오오비때는 또 얼마나 잘하시려고 이렇게 하십니까?

tvCardTopInfoName.text = pingleEntity.name
tvCardTopInfoOwnerName.text = pingleEntity.ownerName

(pingleEntity.isCompleted()).let { isCompleted ->
Copy link
Collaborator

Choose a reason for hiding this comment

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

좋네요!! 언니가 코리 달아준 스코프 함수를 이용해서 깔쌈하게 비지블 처리해주기

android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:src="@drawable/ic_all_calendar_24"
app:layout_constraintStart_toStartOf="@+id/btn_card_bottom_map_chat"
Copy link
Collaborator

Choose a reason for hiding this comment

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

오랜만에 @+id를 찾다..

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

아놔 ㅋㅋ 들켜버렸다,,,


<TextView
android:id="@+id/tv_card_top_info_participation_status_title"
android:layout_width="wrap_content"
Copy link
Collaborator

Choose a reason for hiding this comment

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

요거는 4군데에 다 제약을 걸었는데 0dp 사용이 안되나요?!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

wrap_content가 적합한 상황이라 wrap_content 사용했어요
텍스트 길이에 딱 맞는 너비를 가져야 하거든요 (아니면 뷰 깨짐 이슈,, -> 아래 사진 참고해주세요)
스크린샷 2024-02-17 오전 1 12 42

android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:src="@drawable/ic_all_calendar_24"
app:layout_constraintStart_toStartOf="@+id/btn_card_bottom_map_chat"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

아놔 ㅋㅋ 들켜버렸다,,,


<TextView
android:id="@+id/tv_card_top_info_participation_status_title"
android:layout_width="wrap_content"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

wrap_content가 적합한 상황이라 wrap_content 사용했어요
텍스트 길이에 딱 맞는 너비를 가져야 하거든요 (아니면 뷰 깨짐 이슈,, -> 아래 사진 참고해주세요)
스크린샷 2024-02-17 오전 1 12 42

Comment on lines 57 to 61
layoutCardTopParticipationStatus.setOnClickListener {
Intent(context, ParticipantActivity::class.java).apply {
putExtra(MEETING_ID, pingleEntity.id)
context.startActivity(this)
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

[다은] UI 로직 분리 진행

Copy link
Collaborator

@Dan2dani Dan2dani left a comment

Choose a reason for hiding this comment

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

LGTM!

parent,
false
),
navigateToParticipant = navigateToParticipant,
Copy link
Collaborator

Choose a reason for hiding this comment

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

named parameter 좋네여 ~~

Copy link
Member

@DoReMinWoo DoReMinWoo 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 +58 to +62
when {
pingleEntity.isOwner -> stringOf(R.string.pingle_card_delete)
pingleEntity.isParticipating -> stringOf(R.string.pingle_card_cancel)
else -> stringOf(R.string.pingle_card_participate)
}
Copy link
Member

Choose a reason for hiding this comment

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

오옹 이런식으로 when문 사용하는 거 너무 좋네요

Comment on lines 69 to 70


Copy link
Collaborator Author

Choose a reason for hiding this comment

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

[민우] 한 줄로 바꿔주세요 ~

@jihyunniiii jihyunniiii merged commit 41efc2e into develop Feb 21, 2024
1 check passed
@jihyunniiii jihyunniiii deleted the refactor-map-card branch February 21, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[refactor] 핑글 카드 커스텀 뷰 분리 및 지도 ViewPager Item 재구현
4 participants