-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: main
Are you sure you want to change the base?
Conversation
binding.tvIntroduction.text = data.introduction | ||
Glide.with(itemView.context).load(data.photo) | ||
.apply(RequestOptions.circleCropTransform()) | ||
.into(binding.ivProfile) |
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.
Glide.with()
.load()
.apply()
.into()
로 코드를 작성하면 더 가독성이 좋아질 것 같아요
binding.vpSample.currentItem = THIRD_FRAGMENT | ||
return@setOnItemSelectedListener true | ||
} | ||
} |
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.
생각해봤는데 return@setOnItemSelectedListener true는 모든 분기문마다 공통이니까 when문 바깥에서 한 줄만 써도 되지 않을까요?
binding.btnFollower.isSelected = true; | ||
binding.btnRepository.isSelected = false; | ||
} | ||
|
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.
childFragmentManager라는 것도 있는데 한 번 찾아보면 좋을 것 같아요
week3