Join Slack
Powered by
`getResources()` belongs to `context`, so you shou...
# android
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
2
Views
Open in Slack
Previous
Next