Skip to content

Instantly share code, notes, and snippets.

@PatilShreyas
Created March 10, 2021 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PatilShreyas/3513835e881095b98f7e8d2b057b9252 to your computer and use it in GitHub Desktop.
Save PatilShreyas/3513835e881095b98f7e8d2b057b9252 to your computer and use it in GitHub Desktop.
private var _binding: ProfileBinding? = null
private val binding get() = _binding!!
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
_binding = ProfileBinding.inflate(inflater, container, false)
val view = binding.root
return view
}
override fun onDestroyView() {
super.onDestroyView()
_binding = null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment