Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trevorhackman/e9133bcf79f8cab3344f08206cfe9c29 to your computer and use it in GitHub Desktop.
Save trevorhackman/e9133bcf79f8cab3344f08206cfe9c29 to your computer and use it in GitHub Desktop.
Android View Binding Without Boilerplate - Part 2 - 2
private var binding: ProfileBinding by nullOnDestroy()
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View {
binding = ProfileBinding.inflate(inflater, container, false)
return binding.root
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment