Created
May 21, 2022 17:02
-
-
Save trevorhackman/e9133bcf79f8cab3344f08206cfe9c29 to your computer and use it in GitHub Desktop.
Android View Binding Without Boilerplate - Part 2 - 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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