Skip to content

Instantly share code, notes, and snippets.

@PatilShreyas

PatilShreyas/MainFragment.kt Secret

Created Mar 10, 2021
Embed
What would you like to do?
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