-
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
[feat] 나의 단체 뷰 구현 #201
[feat] 나의 단체 뷰 구현 #201
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.
복사하기나 공유하기 누르고 나서 띄워져있는 뭐라고 해야하지 네모 박스 안사라져도 되나영?
@@ -55,6 +55,26 @@ class PingleLocalDataSourceImpl @Inject constructor( | |||
get() = pref.getString(GROUP_NAME, "") ?: "" | |||
set(value) = pref.edit { putString(GROUP_NAME, value) } | |||
|
|||
override var meetingCount: 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.
오옹,, 이 정보 서버에서 아무것도 안내려주는건가요..? 어느 api에서도,,?
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.
이거 단체 디테일 조회 API 있어서 그거 사용하면 될 듯 합니다 ~
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.
api 연동하면서 로직도 수정하겠습니다! localStorage에는 정말 필요한 정보만 집어넣어두는 걸로 할게욥!!
|
||
override fun getItemViewType(position: Int): Int { | ||
return if (currentList[position].isOwner) { | ||
2 |
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.
넹 반영해서 상수화 했숨다!!
선생님 이거 지금 빌드가 안 되는 것 같은데 확인 한 번만 부탁드려용 ! 일단 빌드 되게 바꿔놓고 코리 달고 있을게용 |
어 마자요 그 모달 이미 만들어져 있는 거에 detail이 null이어야 작동해서 그렇게 수정해두고 커밋은 안 했거든욥 |
# Conflicts: # app/src/main/res/values/strings.xml
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.
수고하셨숩니당
@@ -55,6 +55,26 @@ class PingleLocalDataSourceImpl @Inject constructor( | |||
get() = pref.getString(GROUP_NAME, "") ?: "" | |||
set(value) = pref.edit { putString(GROUP_NAME, value) } | |||
|
|||
override var meetingCount: 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.
이거 단체 디테일 조회 API 있어서 그거 사용하면 될 듯 합니다 ~
app/src/main/java/org/sopt/pingle/domain/model/GroupListEntity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/sopt/pingle/presentation/ui/mygroup/MyGroupActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/sopt/pingle/presentation/ui/mygroup/MyGroupActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/sopt/pingle/presentation/ui/mygroup/MyGroupActivity.kt
Outdated
Show resolved
Hide resolved
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="20dp" | ||
android:gravity="center" |
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.
wrapcontent로 해줬으면 이거 안 줘도 되지 않나요?
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:id="@+id/tv_my_group_move_new_group" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="20dp" |
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:id="@+id/layout_my_group_menu" | ||
android:layout_width="wrap_content" | ||
android:layout_height="0dp" | ||
android:layout_marginEnd="7dp" |
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.
top margin 없서욤
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.
여기 패딩 때문에 겹치는 영역인데 마진을 뭘로 해야 되는걸까여,,?!
<TextView | ||
android:id="@+id/tv_my_group_menu_share" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginEnd="10dp" | ||
android:text="@string/my_group_menu_share" | ||
android:textAppearance="@style/TextAppearance.Pingle.Body.Med.14" | ||
android:textColor="@color/g_03" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintStart_toStartOf="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.
얘도 마진 end 빼고 좌 우 정렬을 초대코드 복사하기 텍스트에 맞추는 게 좋겠네용
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.
저기 마진end는 의미가 없어서 지웠습니다! 좌우정렬은 어떤 식으로 맞춰야 하나요?? 메뉴가 공유랑 복사 칸 하나씩 묶여있어서요ㅜ
AllModalDialogFragment( | ||
title = getString(R.string.my_group_modal_move_question, viewModel.getGroupName()), | ||
detail = null, | ||
buttonText = getString(R.string.my_group_modal_change), | ||
textButtonText = getString(R.string.my_group_modal_back), | ||
clickBtn = { chageToNewGroup() }, | ||
clickTextBtn = { } | ||
).show(supportFragmentManager, CHANGE_MODAL) |
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.
넹 확인했서요 AllModalFragment 같은 칭구를 하나 더 만들어서 띄우려구요! 테스트용으로 썼습니둥
좀 전에 단 코리 fda97c8 이 커밋까지만 보고 단겁니다 ㅠ..ㅠ |
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.
고생하셨어용~~!!!!!!!!
if (viewModel.getMyGroupIsOwner()) { | ||
ivMyGroupNowOwner.visibility = View.VISIBLE | ||
} else { | ||
ivMyGroupNowOwner.visibility = View.INVISIBLE | ||
} |
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.
코드가 한줄인경우 대괄호를 빼는게 예쁜거같아요!
if (viewModel.getMyGroupIsOwner()) { | |
ivMyGroupNowOwner.visibility = View.VISIBLE | |
} else { | |
ivMyGroupNowOwner.visibility = View.INVISIBLE | |
} | |
if (viewModel.getMyGroupIsOwner()) ivMyGroupNowOwner.visibility = View.VISIBLE | |
else ivMyGroupNowOwner.visibility = View.INVISIBLE |
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.
이게ㅜㅜ 저도 그렇게 쓰고싶은데 컨트롤 엘이었나 린트였나 돌리면 일케 바뀌더라구요.. if~else문에 braces 없으면 안 좋다 어쩌구 하면서•• 참나!!
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.
저는 가독성 때문에 if, else 괄호 치는게 좋음 ㅋㅋ 개취인듯여 ~~
app/src/main/java/org/sopt/pingle/presentation/ui/mygroup/MyGroupActivity.kt
Outdated
Show resolved
Hide resolved
fun Logging() { | ||
Log.e("localStorage", localStorgae.groupId.toString()) | ||
Log.e("localStorage", localStorgae.groupName) | ||
Log.e("localStorage", localStorgae.meetingCount) | ||
Log.e("localStorage", localStorgae.participantCount) | ||
Log.e("localStorage", localStorgae.isOwner.toString()) | ||
Log.e("localStorage", localStorgae.groupKeyword) | ||
Log.e("localStorage", localStorgae.code) | ||
} |
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.
헉스 ㅎㅅㅎ 바로 삭제하게쑴당
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/java/org/sopt/pingle/presentation/ui/mygroup/MyGroupActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/sopt/pingle/presentation/ui/mygroup/MyGroupActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/sopt/pingle/presentation/ui/mygroup/MyGroupActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/sopt/pingle/presentation/ui/mygroup/MyGroupActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/sopt/pingle/presentation/ui/mygroup/MyGroupActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/sopt/pingle/presentation/ui/mygroup/MyGroupActivity.kt
Outdated
Show resolved
Hide resolved
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/java/org/sopt/pingle/presentation/ui/mygroup/MyGroupActivity.kt
Outdated
Show resolved
Hide resolved
if (selectedMyGroup?.isOwner == true) { | ||
ivMyGroupSelectedOwner.visibility = View.VISIBLE | ||
} else { | ||
ivMyGroupSelectedOwner.visibility = View.INVISIBLE | ||
} |
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.
if (selectedMyGroup?.isOwner == true) { | |
ivMyGroupSelectedOwner.visibility = View.VISIBLE | |
} else { | |
ivMyGroupSelectedOwner.visibility = View.INVISIBLE | |
} | |
ivMyGroupSelectedOwner.visibility = if (selectedMyGroup?.isOwner == true) View.VISIBLE else View.INVISIBLE |
이렇게 적을 수도 있답니다
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.
마이 그룹에서만 쓰는 거니까 마이 그룹으로 이동 ㄱㄱ 해주세염
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 intent = Intent(Intent.ACTION_SEND_MULTIPLE).apply { | ||
type = SHARE_TYPE | ||
putExtra(Intent.EXTRA_TEXT, shareContent) | ||
} | ||
startActivity(Intent.createChooser(intent, null)) |
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 intent = Intent(Intent.ACTION_SEND_MULTIPLE).apply { | |
type = SHARE_TYPE | |
putExtra(Intent.EXTRA_TEXT, shareContent) | |
} | |
startActivity(Intent.createChooser(intent, null)) | |
Intent(Intent.ACTION_SEND_MULTIPLE).apply { | |
type = SHARE_TYPE | |
putExtra(Intent.EXTRA_TEXT, shareContent) | |
startActivity(Intent.createChooser(this, null)) | |
} |
요렇게 써도 됩니둥
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.
뒤에 _20 넣어줘용 안 넣은 것들 다
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.
이거 뭔가 다 12인데 디자인 측에서 잘못한 것 같기두,,,??? 한 번 여쭤봐영
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.
이거 뭔가 다 12인데 디자인 측에서 잘못한 것 같기두,,,??? 한 번 여쭤봐영
이거 의도한 거 맞는 것 같기두 해여 그 왕관 visible했을 때 오른쪽 아래가 12면 아래 테두리가 살짝쿵 보이더라구욤??
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.
넹 피그마 코멘트 남겨놔쑴다~!
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.
쏘굿도링
Related issue 🛠
Work Description ✏️
Screenshot 📸
XRecorder_01032024_145050.mp4
Uncompleted Tasks 😅
To Reviewers 📢
단체 변경 프로세스를 구현을 하긴 했는데 더 깔끔하게 바꾸고 싶어요.. 그러나
오늘이 뷰 마감이다보니...... 온보딩 코드리뷰부터 반영하러 갈게욥