Answers for "viewmodelproviders.of deprecated java"

2

viewmodelproviders deprecated

// With ViewModelFactory   
val viewModel = ViewModelProvider(this, YourViewModelFactory).get(YourViewModel::class.java)


//Without ViewModelFactory
val viewModel = ViewModelProvider(this).get(YourViewModel::class.java)
Posted by: Guest on May-01-2020

Code answers related to "viewmodelproviders.of deprecated java"

Browse Popular Code Answers by Language