Skip to content

Conversation

@JaeYoung290
Copy link
Owner

6주차 과제 PR입니다.

Copy link

@skdud0629 skdud0629 left a comment

Choose a reason for hiding this comment

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

수고하셨어요!

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
arguments?.let {
count = it.getInt(ARG_COUNT)

Choose a reason for hiding this comment

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

null 가능성이 없는 상황에서는
count = requireArguments().getInt(ARG_COUNT)
이런 식으로 써주는 게 좋아용

val view = inflater.inflate(R.layout.fragment_second, container, false)

val randomValue = (0..count).random()
val randomTextView: TextView = view.findViewById(R.id.randomTextView)

Choose a reason for hiding this comment

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

view binding 적용해보시면 좋을 것 같아요!

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