-
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] 랭킹 뷰 구현 #190
[feat] 랭킹 뷰 구현 #190
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.
너무 깔끔하게 잘 짜셨다고 생각합니다.
} | ||
|
||
private fun initLayout() { | ||
rankingAdapter = RankingAdapter(context = requireContext()) |
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.
원래 매개변수 적을 땐 안 했는데 하는 게 더 깔끔한 것 같아서 바꿔봤숨다 ㅋ.ㅋ
RecyclerView.ViewHolder(binding.root) { | ||
fun onBind(rankingLocationEntity: RankingLocationEntity, ranking: Int) { | ||
with(binding) { | ||
tvRankingRank.text = (ranking).toString() |
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.
여기 ranking에 괄호 없애주는게 좋지 않을까염?
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.
아놔 ㅜ 당장 수정
locationCount = 17 | ||
), | ||
RankingLocationEntity( | ||
name = "동탄시범다은마을월드메르디앙반도유보라아파트경비실", |
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.
ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ 두 줄 확인 해보려고 네이버에 이름 긴 아파트 검색했숨요 ㅋ.ㅋ
@@ -12,41 +12,57 @@ | |||
android:layout_height="match_parent" | |||
tools:context=".presentation.ui.main.ranking.RankingFragment"> | |||
|
|||
<TextView |
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.
다 컸다 ㅋ.ㅋ 이제 내가 알려줄 게 없구만 ㅋㅋ UMC 레포 좀 알려줘봐요 ㅋㅋ 구경 좀 하게
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/tv_ranking_construction_title" /> | ||
app:layout_constraintStart_toStartOf="@+id/gl_start" |
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.
@+id
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.
고생핑고생핑~!
// TODO 서버통신 구현 후 collectData 함수로 해당 로직 이동 | ||
with(viewModel.dummyRanking) { | ||
(meetingCount >= RANKING_VISIBLE_THRESHOLD).let { isRankingVisible -> | ||
if (isRankingVisible) rankingAdapter.submitList(locations) | ||
binding.tvRankingEmpty.visibility = | ||
if (isRankingVisible) View.INVISIBLE else View.VISIBLE | ||
} | ||
} |
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_marginTop="4dp" | ||
android:layout_marginBottom="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.
피그마에서 리사이클러뷰 맨 밑 간격이 16dp인데 이렇게 margin 주게 되면 16dp안되지않나요!?!
조금있다가 자세히 설명할게여...
tvRankingLocationDate.text = context.getString( | ||
R.string.ranking_date, | ||
latestVisitedDate[YEAR_INDEX], | ||
latestVisitedDate[MONTH_INDEX], | ||
latestVisitedDate[DAY_INDEX] | ||
) | ||
} |
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.
이거 스트링으로 변경하는 과정 UI에서 하지 말기
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.
-> 서버통신 구현하면서 수정 예정
import org.sopt.pingle.domain.model.RankingLocationEntity | ||
import org.sopt.pingle.util.view.ItemDiffCallback | ||
|
||
class RankingAdapter(private val context: Context) : |
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.
여기서 context 안 넘기는 방안에 대해서 고민해보기 (parent.context)
Related issue 🛠
Work Description ✏️
Screenshot 📸
Screen_recording_20240217_205919.mp4
Uncompleted Tasks 😅
To Reviewers 📢