Skip to content

Commit

Permalink
[chore]: 코드 함수화
Browse files Browse the repository at this point in the history
  • Loading branch information
kangyuri1114 committed Mar 31, 2024
1 parent 2e95ad8 commit 7b43f23
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ class DevInfoFragment : Fragment() {
): View {
_binding = FragmentDevInfoBinding.inflate(inflater, container, false)

initDeveloperAdapter()

return binding.root
}

private fun initDeveloperAdapter() {
val developerInfoAdapter = DeveloperInfoAdapter()
binding.rvDevinfo.adapter = developerInfoAdapter
binding.rvDevinfo.layoutManager = GridLayoutManager(context, 2)
developerInfoAdapter.submitList(DeveloperInfoDummy.developerInfoList)

return binding.root
}

override fun onDestroyView() {
Expand Down

0 comments on commit 7b43f23

Please sign in to comment.