Skip to content

Instantly share code, notes, and snippets.

@kirich1409
Created May 3, 2020 10:09
Show Gist options
  • Save kirich1409/4187aa02a5d0f3a330e2ba37c383f439 to your computer and use it in GitHub Desktop.
Save kirich1409/4187aa02a5d0f3a330e2ba37c383f439 to your computer and use it in GitHub Desktop.
class ProfileFragment : Fragment(R.layout.profile) {
private val viewBinding: ProfileBinding by viewBinding()
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
// Use viewBinding
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment