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

Week3 #3

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Week3 #3

wants to merge 6 commits into from

Conversation

lhb8106
Copy link
Contributor

@lhb8106 lhb8106 commented Oct 31, 2021

week3

binding.tvIntroduction.text = data.introduction
Glide.with(itemView.context).load(data.photo)
.apply(RequestOptions.circleCropTransform())
.into(binding.ivProfile)

Choose a reason for hiding this comment

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

Glide.with()
.load()
.apply()
.into()
로 코드를 작성하면 더 가독성이 좋아질 것 같아요

binding.vpSample.currentItem = THIRD_FRAGMENT
return@setOnItemSelectedListener true
}
}

Choose a reason for hiding this comment

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

생각해봤는데 return@setOnItemSelectedListener true는 모든 분기문마다 공통이니까 when문 바깥에서 한 줄만 써도 되지 않을까요?

binding.btnFollower.isSelected = true;
binding.btnRepository.isSelected = false;
}

Choose a reason for hiding this comment

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

childFragmentManager라는 것도 있는데 한 번 찾아보면 좋을 것 같아요

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants