Created
October 28, 2020 10:23
-
-
Save gsrathoreniks/f3b6da41c723287e17851581b8ac3484 to your computer and use it in GitHub Desktop.
ProfileActivity.kt for ViewBinding blog
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
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