Skip to content

Instantly share code, notes, and snippets.

@andersu
Created August 22, 2020 16:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andersu/8d5baef0403145a7476ceaee287672d6 to your computer and use it in GitHub Desktop.
Save andersu/8d5baef0403145a7476ceaee287672d6 to your computer and use it in GitHub Desktop.
class FirstFragment : Fragment(R.layout.fragment_first) {
private val binding: FragmentFirstBinding by viewBinding()
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
// Any code we used to do in onCreateView can go here instead
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment