Created
May 3, 2020 10:06
-
-
Save kirich1409/98d8573904905f2dc561fe561d0f2310 to your computer and use it in GitHub Desktop.
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
class ProfileFragment : Fragment(R.layout.profile) { | |
private var viewBinding: ProfileBinding? = null | |
override fun onViewCreated(view: View, savedState: Bundle?) { | |
super.onViewCreated(view, savedInstanceState) | |
viewBinding = ProfileBinding.bind(view) | |
// Use viewBinding | |
} | |
override fun onDestroyView() { | |
super.onDestroyView() | |
viewBinding = null | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment