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/12 reccomend view #18

Closed
wants to merge 5 commits into from
Closed

Conversation

Mingmin99
Copy link
Contributor

👻 작업한 내용

추천뷰 fragment recyclerview 구현 검토

🎤 PR Point

코드리뷰 해주세용,,

📸 스크린샷

구현 내용 스크린샷
어쩌고저쩌고 어쩌고저쩌고

📮 관련 이슈

import kr.co.nottodo.databinding.ItemRecommendBinding
import kr.co.nottodo.presentation.toplevel.recommendation.data.Recommendationdata

class RecommendationAdapter(private val tools: List<Recommendationdata>) :
Copy link
Contributor

Choose a reason for hiding this comment

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

Adapter를 생성할 때는 list는 안받습니다!

이렇게 구현이 된다면 순서를 생각해봤을 때

  1. 서버에서 리스트 데이터를 받는다.

  2. 받은 리스트 데이터를 활용해 어댑터를 만든다.

이 순서가 되는데 그게 아니라

  1. 어댑터를 만들어 놓는다.

  2. 서버에서 데이터가 들어오면 어댑터에 비어 있는 리스트에 담아둔다!

는 순서로 바꿔야 됩니다!

import kr.co.nottodo.databinding.ItemRecommendBinding
import kr.co.nottodo.presentation.toplevel.recommendation.data.Recommendationdata

class RecommendViewHolder(val binding: ItemRecommendBinding) : RecyclerView.ViewHolder(binding.root)
Copy link
Contributor

Choose a reason for hiding this comment

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

요건 따로 파일하나 만들어서 관리하는건 어떨까요?!

return binding.root
}

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
Copy link
Contributor

Choose a reason for hiding this comment

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

아마 RecyclerView의 제약조건이 match 로 걸려서 꽉 차보이는 거 일 거같아요.

width = match_parent, height = wrap_content로 변경해보면 어떨까요?

Copy link
Contributor

@SSong-develop SSong-develop left a comment

Choose a reason for hiding this comment

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

아마 pull을 받기 전에 푸시를 한것으로 보이긴해요. 사실 맞는지는 물어봐야 알거 같은데,
develop에 있는 모든 작업을 현재 작업중인 feature/12-reccomand-view 브랜치에 전부 pull 받은다음에 pr을 올려야 할겁니다!

@cbj0010 cbj0010 closed this Jan 7, 2023
@giovannijunseokim giovannijunseokim deleted the feature/12-reccomand-view branch January 9, 2023 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 추천뷰
3 participants