Skip to content

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.

4 participants