Skip to content

Instantly share code, notes, and snippets.

@gsrathoreniks
Created October 28, 2020 10:23
Show Gist options
  • Save gsrathoreniks/f3b6da41c723287e17851581b8ac3484 to your computer and use it in GitHub Desktop.
Save gsrathoreniks/f3b6da41c723287e17851581b8ac3484 to your computer and use it in GitHub Desktop.
ProfileActivity.kt for ViewBinding blog
private lateinit var binding: ActivityProfileBinding
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
//initializing binding
binding = ActivityProfileBinding.inflate(layoutInflater)
val view = binding.root
setContentView(view)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment