Is it possible to inject a ViewModel into a custom View class?
l
LeoColman
12/18/2019, 6:03 PM
I don't think it's ever good to inject a viewmodel in a view
LeoColman
12/18/2019, 6:03 PM
It's usually done in Fragments and Activities, right? Why do you need to do it for a view?
c
Casey Brooks
12/18/2019, 6:06 PM
I’m wanting to draw on a canvas, with parameters for drawing provided by a ViewModel. I’m still trying to figure out how to properly use ViewModels, so I appreciate the tips