https://kotlinlang.org logo
e

edwardwongtl

10/31/2017, 3:54 AM
getResources()
belongs to
context
, so you should be using this in
Activity
or
Fragment
. And also setting drawable is something to do with the view, which is not suppose to be done in the
viewModel